Applicable to:
- Plesk Onyx for Linux
Symptoms
- There are a lot of domains on the server (more than 750 domains);
- Some separate maintenance task is not executed automatically when DailyMaintenance task ran;
- For example, if
UpdateApsApplications
task fails, Applications in Tools & Settings > Application Vault do not update automatically; -
The following error appears in
/var/log/plesk/panel.log
when debug log enabled: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
file: /usr/local/psa/admin/plib/Smb/Exception/Syntax.php
line: 56
code: 0
Cause
Product issue:
-
#PPPM-9538 "Failure in the OptimizeStatistics task of Daily Maintenance Task no longer stops execution of subsequent tasks."
Fixed in:- Plesk Obsidian 20 November 2018 (fixed as PPP-39142)
Resolution
Workaround
If update is not possible for some reason you may try the following
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:
-
Task type:
CONFIG_TEXT: Run a command
-
Command:
CONFIG_TEXT: /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateApsApplications
Comments
2 comments
Hello,
I'm getting the referenced error message. If it is caused by a daily scheduled task that fails, how do I determine which of the daily tasks is failing?
Best Regards,
Bob
Hello Bob,
1. Enable debug for Plesk
2. Run daily Maintenance manually:
# plesk daily
3. It will write what task started and you'll know which one fails, e.g. below entries indicates that Plesk start checking for updates:
[2019-05-25 07:22:17.248] INFO [panel] Starting: Daily Maintainance
[2019-05-25 07:22:17.250] INFO [panel] == Task run Check for updates: '/usr/local/psa/admin/bin/php' '/usr/local/psa/admin/plib/DailyMaintainance/task-script.php' 'CheckForUpdates' '--period=daily'
[2019-05-25 07:22:17.397] INFO [panel] == Begin Check for updates
Please sign in to leave a comment.