Hello,
Nginx stop every once in a while (usually weekly, but there is no fixed period) at the same time, 6:25 AM.
At this same time (6:25 AM) there is scheduled a cron.daily
I´m using the latest virtualmin version with Ubuntu 18.04. Everything with the deafult packages.
Here is the var/log/syslog after 6:25 AM:
Oct 15 06:25:01 li4001 CRON[5412]: (root) CMD (/etc/webmin/status/monitor.pl)
Oct 15 06:25:01 li4001 CRON[5413]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Oct 15 06:25:01 li4001 CRON[5414]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Oct 15 06:25:09 li4001 systemd[1]: Stopping A high performance web server and a reverse proxy server…
Oct 15 06:25:09 li4001 systemd[1]: Stopped A high performance web server and a reverse proxy server.
Oct 15 06:25:09 li4001 systemd[1]: Starting A high performance web server and a reverse proxy server…
Oct 15 06:25:09 li4001 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Oct 15 06:25:09 li4001 systemd[1]: Started A high performance web server and a reverse proxy server.
Oct 15 06:25:09 li4001 systemd[1]: Stopping A high performance web server and a reverse proxy server…
Oct 15 06:25:09 li4001 systemd[1]: Stopped A high performance web server and a reverse proxy server.
Oct 15 06:25:09 li4001 systemd[1]: Starting A high performance web server and a reverse proxy server…
Oct 15 06:25:10 li4001 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Oct 15 06:25:10 li4001 systemd[1]: Started A high performance web server and a reverse proxy server.
Oct 15 06:25:10 li4001 systemd[1]: Stopping A high performance web server and a reverse proxy server…
Oct 15 06:25:10 li4001 systemd[1]: Stopped A high performance web server and a reverse proxy server.
Oct 15 06:25:10 li4001 systemd[1]: Starting A high performance web server and a reverse proxy server…
Oct 15 06:25:10 li4001 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Oct 15 06:25:10 li4001 systemd[1]: Started A high performance web server and a reverse proxy server.
Oct 15 06:25:10 li4001 systemd[1]: Stopping A high performance web server and a reverse proxy server…
Oct 15 06:25:10 li4001 systemd[1]: Stopped A high performance web server and a reverse proxy server.
Oct 15 06:25:10 li4001 systemd[1]: Starting A high performance web server and a reverse proxy server…
Oct 15 06:25:10 li4001 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Oct 15 06:25:10 li4001 systemd[1]: Started A high performance web server and a reverse proxy server.
Oct 15 06:25:10 li4001 systemd[1]: Stopping A high performance web server and a reverse proxy server…
Oct 15 06:25:10 li4001 systemd[1]: Stopped A high performance web server and a reverse proxy server.
Oct 15 06:25:10 li4001 systemd[1]: Starting A high performance web server and a reverse proxy server…
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Oct 15 06:25:11 li4001 systemd[1]: Started A high performance web server and a reverse proxy server.
Oct 15 06:25:11 li4001 systemd[1]: Stopping A high performance web server and a reverse proxy server…
Oct 15 06:25:11 li4001 systemd[1]: Stopped A high performance web server and a reverse proxy server.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Start request repeated too quickly.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Failed with result ‘start-limit-hit’.
Oct 15 06:25:11 li4001 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Start request repeated too quickly.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Failed with result ‘start-limit-hit’.
Oct 15 06:25:11 li4001 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Start request repeated too quickly.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Failed with result ‘start-limit-hit’.
Oct 15 06:25:11 li4001 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Start request repeated too quickly.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Failed with result ‘start-limit-hit’.
Oct 15 06:25:11 li4001 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Start request repeated too quickly.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Failed with result ‘start-limit-hit’.
Oct 15 06:25:11 li4001 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Oct 15 06:25:11 li4001 systemd[1]: Stopping LSB: Starts ProFTPD daemon…
Oct 15 06:25:11 li4001 proftpd[5733]: * Stopping ftp server proftpd
Oct 15 06:25:11 li4001 proftpd[5733]: …done.
Oct 15 06:25:11 li4001 systemd[1]: Stopped LSB: Starts ProFTPD daemon.
Oct 15 06:25:11 li4001 systemd[1]: Starting LSB: Starts ProFTPD daemon…
Oct 15 06:25:11 li4001 proftpd[5744]: * Starting ftp server proftpd
Oct 15 06:25:11 li4001 proftpd[5744]: 2018-10-15 06:25:11,706 li4001 proftpd[5762]: mod_dso/0.5: module ‘mod_tls.c’ already loaded
Oct 15 06:25:11 li4001 proftpd[5744]: 2018-10-15 06:25:11,711 li4001 proftpd[5762]: mod_dso/0.5: module ‘mod_sftp.c’ already loaded
Oct 15 06:25:11 li4001 proftpd[5744]: 2018-10-15 06:25:11,711 li4001 proftpd[5762]: warning: “li4001.domain.com” address/port (ip:21) already in use by “Debian”
Oct 15 06:25:11 li4001 proftpd[5744]: …done.
Oct 15 06:25:11 li4001 systemd[1]: Started LSB: Starts ProFTPD daemon.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Start request repeated too quickly.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Failed with result ‘start-limit-hit’.
Oct 15 06:25:11 li4001 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Start request repeated too quickly.
Oct 15 06:25:11 li4001 systemd[1]: nginx.service: Failed with result ‘start-limit-hit’.
Oct 15 06:25:11 li4001 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
List of cron.daily:
/etc/cron.daily/quota
/etc/cron.daily/apport
/etc/cron.daily/man-db
/etc/cron.daily/logrotate
/etc/cron.daily/ubuntu-advantage-tools
/etc/cron.daily/mlocate
/etc/cron.daily/update-notifier-common
/etc/cron.daily/passwd
/etc/cron.daily/popularity-contest
/etc/cron.daily/mdadm
/etc/cron.daily/bsdmainutils
/etc/cron.daily/apt-compat
/etc/cron.daily/apt-show-versions
/etc/cron.daily/apache2
/etc/cron.daily/sysstat
/etc/cron.daily/webalizer
/etc/cron.daily/dpkg
I have 2 server with the same configuration and it happens in both - at the same time.
Reading some other posts in this forum, some people suspect it is the logrotate.
Digging the logration, there is a log file with title “/var/log/apache2/*.log” with the post-rotation command:
if invoke-rc.d apache2 status > /dev/null 2>&1; then
invoke-rc.d apache2 reload > /dev/null 2>&1;
fi;
Please, I need help. And some direction.
Thank you,
Luiz