Applicable to:
- Plesk for Linux
Symptoms
-
Logs are not being rotated on daily basis for a particular domain, e.g example.com.
-
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
Temporary files were not removed due to unexpected interruption of logrotate.
Resolution
-
Connect to the server via SSH.
-
Remove the corrupted file
/var/www/vhosts/system/example.com/logs/error_log.1
:# rm /var/www/vhosts/system/example.com/logs/error_log.1
Note: If other files are mentioned in the error, e.g
/var/www/vhosts/system/example.com/logs/proxy_error_log.1
, they also should be removed.
Comments
0 comments
Please sign in to leave a comment.