Nginx failed to start: (99: Cannot assign requested address)

Created:

2016-11-16 13:03:57 UTC

Modified:

2017-08-16 16:15:48 UTC

13

Was this article helpful?


Have more questions?

Submit a request

Nginx failed to start: (99: Cannot assign requested address)

Applicable to:

  • Plesk for Linux

Symptoms

nginx cannot be started with the following error message:

nginx: [emerg] bind() to [2001:db8:f61:a1ff:0:0:0:80]:80 failed (99: Cannot assign requested address)

Attempt to enable nginx also fails:

# /usr/local/psa/admin/bin/nginxmng -e
[2015-12-04 16:33:47] ERR [util_exec] proc_close() failed
[2015-12-04 16:33:50] ERR [panel] Apache config (14492432250.75591700) generation failed: Template_Exception: nginx: [emerg] bind() to [2001:db8:f61:a1ff:0:0:0:80]:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
nginx: [emerg] bind() to [2001:db8:f61:a1ff:0:0:0:80]:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed

Cause

Unsynced IP address between Plesk and OS or IP address was removed/changed manually in OS.

Resolution

  1. Sync IP addresses between Plesk and OS. For that go to Tools & Settings > IP Addresses > Reread IP and select Repair or remove if it is no longer required.
  2. Enable nginx service:

    # /usr/local/psa/admin/bin/nginxmng -e
Have more questions? Submit a request
Please sign in to leave a comment.