Hi. Once every week (mostly on weekends) nginx suddenly stops. Mostly ealry in the morning and weekend. If I start it manually everything is working fine.
I checked the syslog file and find the following:
Apr 4 06:25:04 ns1 systemd[1]: Stopping A high performance web server and a reverse proxy server...
Apr 4 06:25:04 ns1 systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 4 06:25:04 ns1 systemd[1]: Started A high performance web server and a reverse proxy server.
Apr 4 06:25:04 ns1 systemd[1]: Stopping A high performance web server and a reverse proxy server...
Apr 4 06:25:04 ns1 systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 4 06:25:04 ns1 systemd[1]: nginx.service start request repeated too quickly, refusing to start.
Apr 4 06:25:04 ns1 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Apr 4 06:25:04 ns1 systemd[1]: Unit nginx.service entered failed state.
I tested nginx configuration and everything work fine. No error messages apperared. If i reboot manually the nginx service everything work fine too.
What I am missing?
Thanks in advance
I have almost the same problem (http://pastebin.com/QpDWt8ib) Got any fix?
I found a quick fix for this issue! got to Webmin>>System>> Log File Rotation if you have Multiple domains hosted on your vps you will see "service nginx restart" for each domain as a post command Remove every post command and keep the last one. Done ! You can test force logfile rotation by selecting all domains!