• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Nginx autostart does not work properly

asterixus

New Pleskian
Hi,

My Plesk server installation has following issue:

2015/11/11 11:16:27 [emerg] 1675#0: bind() to <IPv4>:80 failed (99: Cannot assign requested address)
2015/11/11 11:47:15 [emerg] 1722#0: bind() to [IPv6]:80 failed (99: Cannot assign requested address)


Nginx works fine, if I start it manually. But when I reboot the server, it does not!
I tried the solution from this thread: http://talk.plesk.com/threads/solve...-37-187-211-80-443-failed.333998/#post-784024
but it did not help!

Hope, someone can give me advice!

Thanks!
 
Last edited:
Hi,

such issues may appear, when systemd boots very fast, but the network is not yet ready and fully initialized.

You might be intersted in reading: http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ ( external link, please inform me, when the link goes dead, so I could adjust the link with another one! )


Consider to investigate your "/var/log/messages" - log and use systemd - commands ( as for example "systemd-analyze" ), to investigate your issue:

http://www.freedesktop.org/software/systemd/man/systemd-analyze.html ( external link, please inform me, when the link goes dead, so I could adjust the link with another one! )
 
Well, I was able to solve ipv4 issue with:
net.ipv4.ip_nonlocal_bind=1
The server indeed might start to fast for the network interfaces to become ready, because of the HW raid1+ssd, and it also uses NetworkManager, but in my opinion it is still a bug, that I cannot understand. My other server, same config Centos7+plesk125, but with SOFT RAID1 + Sata HDD works fine with no such modification for ipv4. I am still not able to find a solution for this ipv6 issue.

Nov 12 22:54:49 SRV systemd: Starting Startup script for nginx service...
Nov 12 22:54:49 SRV nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Nov 12 22:54:49 SRV nginx: nginx: [emerg] bind() to [ipv6]:80 failed (99: Cannot assign requested address)

So I assume, it is not the boot time, which causes the issue(or is a part of the problem).
 
Hi asterixus,

sorry, but without any investigations, you can't "assume" conflicts, failures, issues and problems. You never will get to the root cause, if you "assume" something, just by having a look at the nginx error and by compairing two different servers hardware... but ... it's up to you... :)
 
Back
Top