Crontab does not rotate log files

Created:

2016-11-16 13:21:48 UTC

Modified:

2017-08-08 13:39:40 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Crontab does not rotate log files

Applicable to:

  • Plesk 11.5 for Linux

Symptoms

  1. Cron does not rotate logs. Administrator's email account receives the following:

    /etc/cron.daily/logrotate:

    error: bad top line in state file /var/lib/logrotate.status
    error: could not read state file, will not attempt to write into it
  2. Server is running Red Hat Enterprise Linux 5

Cause

The /var/lib/logrotate.status file is corrupted due to Red Hat software issue # 447022 .

Resolution

Implement official fix by installing logrotate-3.7.4-9 or make sure to update your system to latest version.

Have more questions? Submit a request
Please sign in to leave a comment.