Log rotation doesn't work on a daily basis: error creating output file

Created:

2016-11-16 13:15:26 UTC

Modified:

2017-08-08 13:43:11 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Log rotation doesn't work on a daily basis: error creating output file

Applicable to:

  • Plesk 12.0 for Linux

Symptoms

Logs are not being rotated on daily basis. Running logrotate utility fails with the following error:

# /usr/local/psa/logrotate/sbin/logrotate -v -f /usr/local/psa/etc/logrotate.conf
copying /var/www/vhosts/system/example.com/logs/error_log to /var/www/vhosts/system/example.com/logs/error_log.1
error: error creating output file /var/www/vhosts/system/example.com/logs/error_log.1: File exists

Cause

Corrupted files due to unexpected interruption of logrotate process by server restart or filesystem issues.

Resolution

Remove corrupted file /var/www/vhosts/system/example.com/logs/error_log.1

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