Recent problem with anacron cron.daily hanging.

Adam Funk a24061 at yahoo.com
Mon Feb 19 14:06:52 UTC 2007


On 2007-02-19, Georg Sauthoff wrote:

> - Do you have looked at the log files under /var/log ? Perhaps this
> helps to identify a reason.

Well, by grepping the syslog file for anacron I've figured out that
the first cron.daily not to work was the one that started on 15 Feb:


Feb 14 07:50:40 bunsen anacron[19877]: Job `cron.daily' terminated (mailing output)
Feb 14 07:50:40 bunsen anacron[19877]: Normal exit (1 job run)
Feb 15 06:25:01 bunsen /USR/SBIN/CRON[14775]: (root) CMD (test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily)
Feb 15 07:30:01 bunsen /USR/SBIN/CRON[15693]: (root) CMD (test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null)
Feb 15 07:30:02 bunsen anacron[15716]: Anacron 2.3 started on 2007-02-15
Feb 15 07:30:02 bunsen anacron[15716]: Will run job `cron.daily' in 5 min.
Feb 15 07:30:02 bunsen anacron[15716]: Will run job `cron.weekly' in 10 min.
Feb 15 07:30:02 bunsen anacron[15716]: Jobs will be executed sequentially
Feb 15 07:35:02 bunsen anacron[15716]: Job `cron.daily' started
Feb 15 07:35:02 bunsen anacron[15724]: Updated timestamp for job `cron.daily' to 2007-02-15
Feb 16 06:25:01 bunsen /USR/SBIN/CRON[7163]: (root) CMD (test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily)
Feb 16 07:30:01 bunsen /USR/SBIN/CRON[8081]: (root) CMD (test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null)
Feb 16 07:30:01 bunsen anacron[8104]: Anacron 2.3 started on 2007-02-16
Feb 16 07:30:02 bunsen anacron[8104]: Job `cron.daily' locked by another anacron - skipping
Feb 16 07:30:02 bunsen anacron[8104]: Job `cron.weekly' locked by another anacron - skipping

but I can't find anything else that changed that day.



> - Do you have set a mail alias for root?[1] Anacron mails output from jobs
> (i.e. errors) to the root user.  

Yes, but the mails I've been getting just list the processes I know I
had to interfere with to get cron.daily to finish:

/etc/cron.daily/logrotate:
error: error running shared postrotate script for /var/log/apache2/*.log 
sh: line 1: 17938 Terminated              /etc/init.d/clamav-freshclam reload-log >/dev/null
error: error running postrotate script for /var/log/clamav/freshclam.log
error: error running shared postrotate script for /var/log/cups/*log 
error: error running postrotate script for /var/log/samba/log.smbd
run-parts: /etc/cron.daily/logrotate exited with return code 1
run-parts: /etc/cron.daily/sysklogd exited because of uncaught signal 15





More information about the ubuntu-users mailing list