• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved daily maintenance script hangs running statistics

gijsbert

Basic Pleskian
For some reason the daily maintenance tasks of plesk doesn't finish the process correctly. Using ps -aux |grep period=daily I see the following processes:

===
root 1457 0.0 0.0 359540 4056 ? S Feb22 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 2303 0.0 0.0 359540 4056 ? S Feb19 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 7966 0.0 0.0 359540 4056 ? S Feb24 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 7971 0.0 0.0 359540 4056 ? S Feb20 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 9933 0.0 0.0 359540 4056 ? S Mar02 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 10138 0.0 0.1 359540 18664 ? S Mar08 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 11938 0.0 0.0 359540 4056 ? S Feb25 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 12829 0.0 0.0 359540 4056 ? S Feb26 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 14273 0.0 0.0 359540 4056 ? S Feb21 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 15893 0.0 0.0 359540 4056 ? S Mar05 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 16442 0.0 0.0 359540 4112 ? S Mar07 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 17178 0.0 0.0 359540 4056 ? S Feb27 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 17620 0.0 0.0 359540 4056 ? S Mar04 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 22588 0.0 0.1 359540 22752 ? S Mar09 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 23316 0.0 0.0 359540 4056 ? S Feb28 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 26743 0.0 0.1 359540 28196 ? S 04:09 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 28721 0.0 0.0 359540 4056 ? S Mar03 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 28808 0.0 0.0 359532 4056 ? S Feb18 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 29031 0.0 0.0 359540 4056 ? S Feb23 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 29501 0.0 0.0 359540 4112 ? S Mar06 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root 29677 0.0 0.0 359540 4056 ? S Mar01 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
===

It looks like processing of statistics doesn't finish. I enabled logging following this thread:

How to enable logging of daily maintenance task

But nothing strange appears in the log:

===
+ export PLESK_DEBUG_LEVEL=4
+ PLESK_DEBUG_LEVEL=4
+ /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
+ export PLESK_DEBUG_LEVEL=4
+ PLESK_DEBUG_LEVEL=4
+ /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
+ export PLESK_DEBUG_LEVEL=4
+ PLESK_DEBUG_LEVEL=4
+ /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
+
===

Anyone have an idea how to find out what's going wrong with the daily maintenance script or how to clean up the running processes?

Gijsbert
 
anyone? Is there a way to reset? The statistics (webalizer) are not being updated anymore because the daily maintenance script hangs.
 
I have a similar problem when I enter manually the command Plesk daily ExecuteStatistic im receiving an error message
[2019-09-19 15:24:04.450] ERR [panel] Task named ExecuteStatistic is not found.
exit status 1

is like this whole week and I can't find the problem.

Need help
 

Attachments

  • ssh.PNG
    ssh.PNG
    10.3 KB · Views: 11
Back
Top