rija / docker-nginx-fpm-caches-wordpress

Wordpress (no DB server included) running with Nginx in a Docker container with caching and encryption enabled
Other
23 stars 7 forks source link

cron crashes in supervisor #4

Closed rija closed 8 years ago

rija commented 8 years ago

cron cannot be stopped or started again after initial launch by supervisord.

$ supervisorctl
supervisor> status
cron                             FATAL     Exited too quickly (process log may have details)
nginx                            RUNNING   pid 27, uptime 0:00:21
php5-fpm                         RUNNING   pid 29, uptime 0:00:21
php5-fpm-log                     RUNNING   pid 28, uptime 0:00:21
stdout                           RUNNING   pid 25, uptime 0:00:21
$ tail -f /tmp/supervisord.log 
2016-01-30 14:41:24,161 INFO gave up: cron entered FATAL state, too many start retries too quickly
2016-01-30 14:41:29,167 INFO spawned: 'cron' with pid 57
2016-01-30 14:41:29,172 INFO exited: cron (exit status 1; not expected)
2016-01-30 14:41:30,178 INFO spawned: 'cron' with pid 58
2016-01-30 14:41:30,184 INFO exited: cron (exit status 1; not expected)
2016-01-30 14:41:32,193 INFO spawned: 'cron' with pid 59
2016-01-30 14:41:32,199 INFO exited: cron (exit status 1; not expected)
2016-01-30 14:41:35,206 INFO spawned: 'cron' with pid 60
2016-01-30 14:41:35,211 INFO exited: cron (exit status 1; not expected)
2016-01-30 14:41:35,212 INFO gave up: cron entered FATAL state, too many start retries too quickly

The supervisord configuration for cron:

[program:cron]
command=/usr/sbin/cron
stdout_events_enabled=true
stderr_events_enabled=true