- Plesk Onyx for Linux
Note: This article has the reference to the issues with the fixes available:
- #PPPM-9538 "Daily Maintenance Task fails one part and others after are failing too (as PPP-39142)"
- Plesk Obsidian Release Candidate 1.0 04 June 2019
- #PPP-39142 "Failure in the OptimizeStatistics task of Daily Maintenance Task no longer stops execution of subsequent tasks."
Some separate maintenance task is not executed automatically when DailyMaintenance task ran;
- For example, if
UpdateApsApplicationstask fails, Applications in Tools & Settings > Application Vault do not update automatically;
There are a lot of domains on the server (more than 4000 domains);
The following error appears in
/var/log/plesk/panel.logwhen DailyMaintenance task ran with debug log enabled (How to enable logging of daily maintenance task) :
CONFIG_TEXT: PHP Warning: Error while sending QUERY packet. PID=1234; File: /usr/local/psa/admin/plib/vendor/plesk/zendframework/library/Zend/Db/Statement/Pdo.php, Line: 228
Exception: PHP Warning: Error while sending QUERY packet. PID=1234; File: /usr/local/psa/admin/plib/vendor/plesk/zendframework/library/Zend/Db/Statement/Pdo.php, Line: 228
This is Plesk bug with ID #PPPM-9538 which is planned to be fixed in a future product update.
As a workaround run the tasks manually that did not run automatically How to rerun daily maintenance tasks separately for Plesk on Linux?
The workaround above can be automated, for example for the separate task
UpdateApsApplications, by setting up a Scheduled task with the following settings:
CONFIG_TEXT: Run a command
CONFIG_TEXT: /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateApsApplications