- Plesk for Linux
Statistic recalculation fails with the following error:
# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com
WARNING during statistics_collector execution: : statistics_collector: Log rotation `/usr/local/psa/logrotate/sbin/logrotate /usr/local/psa/etc/logrotate.conf -s /usr/local/psa/var/logrotate.status' failed with code 1.
Stderr:error: line 5290 too long in state file /usr/local/psa/var/logrotate.status
error: could not read state file, will not attempt to write into it
is corrupted, e.g. extra symbols in line 5290
- Connect to the server via SSH
# mv /opt/psa/var/logrotate.status /opt/psa/var/logrotate.status_bak
logrotate.statusfile using Daily Maintenance Script:
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
Note: Running of DailyMaintenance script can take a significant time since it includes a number of tasks like update license keys, installing of microupdates, statistics calculation and it can cause the server load. It is recommended to run this script during maintenance hours.