Nginx failed to start: 99: Cannot assign requested address

Created:

2016-11-16 13:03:57 UTC

Modified:

2017-04-24 11:02:43 UTC

5

Was this article helpful?


Have more questions?

Submit a request

Nginx failed to start: 99: Cannot assign requested address

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 12.0 for Linux

Symptoms

nginx startup fail with the following error message:

nginx: [emerg] bind() to [2a03:3880:2a00:0:20c:29ff:fe5e:cbc8]:80 failed (99: Cannot assign requested address)

Attempt to enable nginx also failed:

# /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 IPv6 address between Plesk and OS or IP address was removed/changed manually in OS.

Resolution

  1. Sync IP addresses between Plesk and OS:
    Go to Tools & Settings -> IP Addresses - Reread IP and select Repair or remove if it is no longer required.
  2. Set NGINX_ENABLED=yes in /etc/sysconfig/nginx
  3. Start nginx
    service nginx start
  4. Rebuild sites configurations

    /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Have more questions? Submit a request
Please sign in to leave a comment.