systemd nginx service start request failed status once per week

3 posts / 0 new
Last post
#1 Mon, 04/04/2016 - 02:16
gnnpls

systemd nginx service start request failed status once per week

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

Sun, 04/17/2016 - 05:03
vishnunuk

I have almost the same problem (http://pastebin.com/QpDWt8ib) Got any fix?

Sun, 04/17/2016 - 06:34 (Reply to #2)
vishnunuk

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!

Topic locked