Skip to content

Digitalocean server throws 521

Daisho Komiyama edited this page Oct 31, 2021 · 2 revisions

Error 521 Digitalocean server for my portfolio

Droplet: ubuntu-s-1vcpu-1gb-nyc3-01

When I added a new ssh key to ./ssh/authorized_keys for my macbook pro late 2013 to enable ssh login, instead of password login (Oct 31, 2021).

The page for https://daishodesign.com started showing the error below.

Error 521 The web server is not returning a connection. As a result, the web page is not displaying.

I restarted PM2 by following this article, but it didn't fix the problem.

So I even tried to restart the droplet from Digitalocean website, but it didn't work.

Upon investigation, I found that Nginx was dead. systemctl nginx status shows

Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:nginx(8)

Nginx dead. How come?

I started Nginx with systemctl start nginx. I was required a password so I entered it.

Problem fixed.

Clone this wiki locally