Kurt Ludikovsky
Basic Pleskian
Problem:
Logrotation does not work for error_log for domains migrated from a previous version.
Plesk Version 12.5
When I checked my error_log's I found that those where not rotated and have reached huge sizes.
Whilel only the error log's where not rotated, the other log's (e.g. access_log, xfer_log, ..) seemed ok.
I futhermore figured out that non of the 'newer' domains where affected. 'Newer', as created on this installation. Only domains migrated from a previous installation (and version) where affected.
Resolution:
When trying to figure out the reason I got trough some KB articles here, and finally found KB Article 129196 which brought me to the solution.
Running the command's
and analysing the output brought the following errors
only for the migrated domains.
A previously attempt to rename the error_log.1 in the
directory did not yield a result.
After the renaming and re-running of the manual logrotate all seems ok now in the var/www/vhosts/system/domain.tld/logs/ directory. The log's in the var/www/vhosts/domain.tld/logs/ are not up to date yet, but this is minor, and might be ok after a scheduled run.
Hope this helps somebody.
Logrotation does not work for error_log for domains migrated from a previous version.
Plesk Version 12.5
When I checked my error_log's I found that those where not rotated and have reached huge sizes.
Whilel only the error log's where not rotated, the other log's (e.g. access_log, xfer_log, ..) seemed ok.
I futhermore figured out that non of the 'newer' domains where affected. 'Newer', as created on this installation. Only domains migrated from a previous installation (and version) where affected.
Resolution:
When trying to figure out the reason I got trough some KB articles here, and finally found KB Article 129196 which brought me to the solution.
Running the command's
Code:
/usr/local/psa/logrotate/sbin/logrotate -v -f /usr/local/psa/etc/logrotate.conf 2> logrotate.debug
grep 'error:' logrotate.debug
Code:
error: error creating output file /var/www/vhosts/system/domain.tld/logs/error_log.1: File exists
A previously attempt to rename the error_log.1 in the
Code:
var/www/vhosts/domain.tld/logs/
After the renaming and re-running of the manual logrotate all seems ok now in the var/www/vhosts/system/domain.tld/logs/ directory. The log's in the var/www/vhosts/domain.tld/logs/ are not up to date yet, but this is minor, and might be ok after a scheduled run.
Hope this helps somebody.