503 Service Temporarily Unavailable Nginix? Can anyone Help

September 8, 2019 168 views
Nginx WordPress Ubuntu 18.04

I have installed the wordpress through easy-engine and getting this issue. Can anyone help.

Logs

root@fn:~# journalctl -xe | grep nginx
Sep 08 04:09:48 fn sudo[24157]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/apt-get install python-certbot-nginx
Sep 08 04:10:40 fn sudo[25139]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/nano /etc/nginx/sites-available/default
Sep 08 04:11:26 fn sudo[25141]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/nano /etc/nginx/sites-available/default
Sep 08 04:11:42 fn sudo[25144]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/nginx -t
Sep 08 04:11:52 fn sudo[25146]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl reload nginx
Sep 08 04:11:52 fn systemd[1]: nginx.service: Unit cannot be reloaded because it is inactive.
Sep 08 04:11:58 fn sudo[25149]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl reload nginx
Sep 08 04:11:58 fn systemd[1]: nginx.service: Unit cannot be reloaded because it is inactive.
Sep 08 04:15:43 fn sudo[25156]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl start nginx
– Subject: Unit nginx.service has begun start-up
– Unit nginx.service has begun starting up.
Sep 08 04:15:43 fn nginx[25168]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:15:43 fn nginx[25168]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:15:43 fn nginx[25168]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:15:43 fn nginx[25168]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:15:44 fn nginx[25168]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:15:44 fn nginx[25168]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:15:44 fn nginx[25168]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:15:44 fn nginx[25168]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:15:45 fn nginx[25168]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:15:45 fn nginx[25168]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:15:45 fn nginx[25168]: nginx: [emerg] still could not bind()
Sep 08 04:15:45 fn systemd[1]: nginx.service: Control process exited, code=exited status=1
Sep 08 04:15:45 fn systemd[1]: nginx.service: Failed with result ‘exit-code’.
– Subject: Unit nginx.service has failed
– Unit nginx.service has failed.
Sep 08 04:23:57 fn sudo[25266]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/etc/init.d/nginx start
– Subject: Unit nginx.service has begun start-up
– Unit nginx.service has begun starting up.
Sep 08 04:23:58 fn nginx[25285]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:23:58 fn nginx[25285]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:23:58 fn nginx[25285]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:23:58 fn nginx[25285]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:23:59 fn nginx[25285]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:23:59 fn nginx[25285]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:23:59 fn nginx[25285]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:23:59 fn nginx[25285]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:24:00 fn nginx[25285]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 08 04:24:00 fn nginx[25285]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Sep 08 04:24:00 fn nginx[25285]: nginx: [emerg] still could not bind()
Sep 08 04:24:00 fn systemd[1]: nginx.service: Control process exited, code=exited status=1
Sep 08 04:24:00 fn systemd[1]: nginx.service: Failed with result 'exit-code’.
– Subject: Unit nginx.service has failed
– Unit nginx.service has failed.

1 Answer

Hi @feedknock,

It seems like your port is already taken. Please type the following command

netstat -tulpen | grep 80

You’ll see what’s actually running on port 80. If’s not needed, you can actually kill it.

  • Now I installed with the digital ocean’s wordpress.

    But now one issue that I am not able to migrate with All-In-One-Migration plugin as its showing only 16MB file. I have 130MB file.

    Any idea on this?

    • Hi @feedknock,

      I would imagine you are comparing a .tar.gz files to the directory your website is located, correct?

      If that’s the case, .tar.gz files are actually compressed and that’s why they are smaller in size.

Have another answer? Share your knowledge.