Nginx service fails to start on CentOS 7 boot: Cannot assign requested address

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:10:31 UTC

Modified:

2017-01-19 21:20:26 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Nginx service fails to start on CentOS 7 boot: Cannot assign requested address

Symptoms

Nginx service fails to start on CentOS 7 boot.
The following error can be found in /var/log/nginx/error.log :

2015/07/28 01:47:51 [emerg] 941#0: bind() to 1.1.1.1:80 failed (99: Cannot assign requested address)

Systemctl shows the following nginx status:

# systemctl status nginx.service
nginx.service - Startup script for nginx service
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Fri 2015-08-21 13:41:36 EDT; 1h 17min ago

Aug 21 13:41:36 example.com echo[1509]: Starting nginx service
Aug 21 13:41:36 example.com nginx[1559]: nginx: [emerg] bind() to 1.1.1.1:80 failed (99: Cannot ass...ress)
Aug 21 13:41:36 example.com nginx[1559]: nginx: configuration file /etc/nginx/nginx.conf test failed
Aug 21 13:41:36 example.com systemd[1]: nginx.service: control process exited, code=exited status=1
Aug 21 13:41:36 example.com systemd[1]: Failed to start Startup script for nginx service.
Aug 21 13:41:36 example.com systemd[1]: Unit nginx.service entered failed state.
Aug 21 13:46:22 example.com systemd[1]: Unit nginx.service cannot be reloaded because it is inactive.

Cause

Such behavior as known as software issue #PPPM-3112 and is fixed in Plesk 12 MU#62

Resolution

  1. Apply latest Plesk microupdates by following article # 213943585 instructions.

  2. Make sure that systemd-networkd package is installed. The service ensures that network interfaces are up and have IP addresses bound.

    Additional details are available here

Have more questions? Submit a request
Please sign in to leave a comment.