Topic: Awstats Not Running From CRON
Seems that my setup is fine, except that awstats does not seem to be updating.
Extract from the /var/log/syslog:
Mar 7 14:10:01 mail /USR/SBIN/CRON[10129]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Mar 7 14:10:01 mail /USR/SBIN/CRON[10127]: (CRON) error (grandchild #10129 failed with exit status 1)
Mar 7 14:17:01 mail /USR/SBIN/CRON[10135]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Mar 7 14:20:01 mail /USR/SBIN/CRON[10140]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Mar 7 14:20:01 mail /USR/SBIN/CRON[10138]: (CRON) error (grandchild #10140 failed with exit status 1)
Mar 7 14:30:01 mail /USR/SBIN/CRON[10146]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Mar 7 14:30:01 mail /USR/SBIN/CRON[10144]: (CRON) error (grandchild #10146 failed with exit status 1)
Mar 7 14:39:01 mail /USR/SBIN/CRON[10157]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Mar 7 14:40:01 mail /USR/SBIN/CRON[10167]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Mar 7 14:40:01 mail /USR/SBIN/CRON[10165]: (CRON) error (grandchild #10167 failed with exit status 1)
Mar 7 14:50:01 mail /USR/SBIN/CRON[10214]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Mar 7 14:50:01 mail /USR/SBIN/CRON[10212]: (CRON) error (grandchild #10214 failed with exit status 1)
Entry in the /etc/cron,d/awstats file:
root@mail:/etc/cron.d# cat awstats
*/10 * * * * www-data [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
# Generate static reports:
10 03 * * * www-data [ -x /usr/share/awstats/tools/buildstatic.sh ] && /usr/share/awstats/tools/buildstatic.sh
Regards,
Larry
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.