0

Nginx failing to start (Ajenti V behind nginx proxy)

Robert Bethke 4 years ago updated 4 years ago 1

If I reboot my server nginx is failing to start properly. I get a ip binding error and have to stop nginx and start it to get things going. (I'm running ajenti behind an nginx proxy). If I check the status of ajenti through systemctl I see only the panel list. Once I do this I can restart ajenti v and the websites just fine. If I reboot the websites then Ajenti will have all the expected child process listed. Any idea how I might be able to resolve?

Just a follow-up this was caused by nginx trying to bind to an ipv6 address prior to it being available. I added :

Restart=on-failure

RestartSec=5

To my systemd service file for nginx and that resolved the problem.