The website is not accessible:
Nginx service is crashed. The following error is present in
CONFIG_TEXT: [emerg] 1204#0: bind() to [2001:db8:f61:a1ff:0:0:0:80]:80 failed (99: Cannot assign requested address)
/var/log/messages contains entries that IPv6 network interface got up before nginx was trying to start after the system reboot:
CONFIG_TEXT: network: Bringing up interface eth0:
dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67 (xid=0x4b684081)
dhclient: DHCPACK from 2001:db8:f61:a1ff:0:0:0:80 (xid=0x4b684081)
network: [ OK ]
nginx: nginx: [emerg] bind() to [2001:db8:f61:a1ff:0:0:0:80]:80 failed (99: Cannot assign requested address)
systemd: Failed to start Startup script for nginx service.
systemd: Unit nginx.service entered failed state.
Misconfiguration of IPv6 network interface: it is not available after the system reboot despite the fact, the network interface was already started, and it should be possible to bind to it.
To solve the issue, contact network administrator in order to identify why IPv6 is not available after the system reboot.
As a workaround, do the following:
- Connect to server over SSH.
- Add the following string to file
CONFIG_TEXT: net.ipv6.ip_nonlocal_bind = 1
This directive allows daemons to bind to non-existing IPv6 network interfaces.
- Restart nginx service:
# service nginx restart