error: stat of /var/log/cron failed: No such file or directory
by dino on Jul.29, 2008, under Basics, Command Line, Uncategorized, Virtuozzo, WebMin
Hi guys… Today I faced a issue with a new VPS installed with EZ template Centos 5.2. I was preparing the VPS with logwatch, apf and other security and got cron error under roots mail.
Cron errors shows log errors :
/etc/cron.daily/logrotate:
error: stat of /var/log/boot.log failed: No such file or directory
error: stat of /var/log/cron failed: No such file or directory
OR
You do not find log files updating
This was due to the syslog daemon not running. Check if the service is running and restart. Your server may have syslogd daemon on rsyslogd depending on your OS.
I had rsyslogd on Centos 5.2
# /etc/init.d/rsyslog status
rsyslogd is stopped
rklogd is stopped# /etc/init.d/rsyslog start
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
Check if the service is being started at the starup :
# chkconfig –list | grep rsyslog
rsyslog 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Use Command to enable the daemon at startup
# chkconfig rsyslog on
The log files were not being created due to the daemons stopped, after restart all started generating.
Cheers!

May 13th, 2009 on 4:14 am
Good work! You saved my night!
Many Thanks.
Diego
August 17th, 2009 on 11:24 pm
I tried what you recommended. Let’s see if it resolves the issue. I hope so. Thanks!
August 18th, 2009 on 12:41 pm
Ron,
Let me know if it worked.
Regards
dino