- Plesk Onyx for Linux
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