Web server is down - Error 521?

April 5, 2019 1.5k views
Ubuntu 18.04 WordPress

I just opened my website today and saw that “Error 521” web server is down! Also I’ve been using digital ocean for the past 5 months with cloudflare and haven’t seen such an error? So any help would be much appreciated.

2 comments
  • Can you share us some logs? You can find these in /var/log - perhaps give us the last few lines of the apache2/error.log if you run apache. Please let us know some more information about the software your server is running and your stack. Thanks

  • my apache2/error.log is showing something like this

    [Fri Apr 05 06:25:02.852346 2019] [mpm_prefork:notice] [pid 24151] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured – resuming normal operations
    [Fri Apr 05 06:25:02.852372 2019] [core:notice] [pid 24151] AH00094: Command line: ’/usr/sbin/apache2’
    [Fri Apr 05 06:48:52.348663 2019] [mpm_prefork:notice] [pid 24151] AH00169: caught SIGTERM, shutting down
    [Fri Apr 05 06:48:55.399082 2019] [mpm_prefork:notice] [pid 16198] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured – resuming normal operations
    [Fri Apr 05 06:48:55.399141 2019] [core:notice] [pid 16198] AH00094: Command line: ’/usr/sbin/apache2’
    [Fri Apr 05 06:48:55.962026 2019] [mpm_prefork:notice] [pid 16198] AH00169: caught SIGTERM, shutting down
    [Fri Apr 05 06:49:01.739451 2019] [mpm_prefork:notice] [pid 16738] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured – resuming normal operations
    [Fri Apr 05 06:49:01.739508 2019] [core:notice] [pid 16738] AH00094: Command line: ’/usr/sbin/apache2’
    [Fri Apr 05 06:49:02.115546 2019] [mpm_prefork:notice] [pid 16738] AH00169: caught SIGTERM, shutting down
    [Fri Apr 05 12:30:16.792425 2019] [mpm_prefork:notice] [pid 18682] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured – resuming normal operations
    [Fri Apr 05 12:30:16.792484 2019] [core:notice] [pid 18682] AH00094: Command line: ’/usr/sbin/apache2’
    [Fri Apr 05 12:30:23.594864 2019] [mpm_prefork:notice] [pid 18682] AH00171: Graceful restart requested, doing restart
    [Fri Apr 05 12:30:23.675523 2019] [mpm_prefork:notice] [pid 18682] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured – resuming normal operations
    [Fri Apr 05 12:30:23.675537 2019] [core:notice] [pid 18682] AH00094: Command line: ’/usr/sbin/apache2’
    [Fri Apr 05 12:30:23.909395 2019] [mpm_prefork:notice] [pid 18682] AH00169: caught SIGTERM, shutting down

3 Answers

Thanks to you! I just somehow found out that I need to reboot my droplet. For anyone who is facing such an issue try rebooting your droplet.

To reboot a server from the command line, run:

sudo shutdown -r now

To restart Apache, run:

sudo service apache2 restart

https://www.digitalocean.com/community/questions/how-to-reboot-droplet-through-the-command-line-restart-apache-server

Everything is working fine! BTW DigitalOcean support was not helpfull at all! They cant even suggest a thing apart from repeating one thing! “its not our problem”

Hello There

Im having the same issue, ive logging in to the website of DO. Ive also raised a ticket but no luck. The Site has been down since 2 hours. Can you help in a laymans language what to do.

Im getting the same Error 521 need urgent help.

I’m no expert myself but just like mburdett555 said check what the error is! To do that you need to access your error.log file that you can find it in /var/log/apache2/ and can acess it via FileZilla. After that anyone can tell whats causing the Error 521.

Have another answer? Share your knowledge.