DailyMaintainance statistics execution task hangs

Created:

2016-11-16 12:49:35 UTC

Modified:

2017-05-15 18:24:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

DailyMaintainance statistics execution task hangs

Applicable to:

  • Plesk 11.5 for Linux

Symptoms

  1. DailyMaintainance statistics execution task

    /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily

    hangs. The following process(es) have been running for a few days:

    root 672381 0.0 0.0 19492 920 ? Ss 03:01 0:00 /usr/sbin/anacron -s
    root 677454 0.0 0.0 106064 1404 ? SN 03:27 0:00 \\_ /bin/bash /usr/bin/run-parts /etc/cron.daily
    root 677582 0.0 0.0 106064 1272 ? SN 03:28 0:00 \\_ /bin/sh /etc/cron.daily/50plesk-daily
    root 677584 0.0 0.5 343644 32804 ? SN 03:28 0:00 | \\_ /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/script.php
    root 677956 0.0 0.4 339800 29588 ? SN 03:28 0:02 | \\_ /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 677960 0.0 0.5 340332 29984 ? SN 03:28 0:02 | \\_ /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/sbin/statistics --no-webstat
    root 677965 0.0 0.8 365860 51152 ? SN 03:28 0:01 | \\_ /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/sbin/statistics --calculate-list --domain-ids 1,2,3,15,99,17,20,21,22,23,24,25,26,27,28,29,30,31 no-webstat
    root 690133 0.0 0.0 155724 3144 ? SN 03:34 0:00 | \\_ /usr/local/psa/admin/bin/web_statistic_executor
  2. The context switches for web_statistic_executor process do not change:

    # grep ctx /proc/`pidof web_statistic_executor`/status
    voluntary_ctxt_switches: 19108
    nonvoluntary_ctxt_switches: 736

    # grep ctx /proc/`pidof web_statistic_executor`/status
    voluntary_ctxt_switches: 19108
    nonvoluntary_ctxt_switches: 736

Cause

Such behavior is considered to be a software issue with ID PPPM-1619 and it has been fixed in Plesk 12 .

Workaround For Plesk 11.5:

  1. Kill all DailyMaintainance related processes.

  2. Backup original plib_common_func.php3 file and replace it with the fixed one :

    # cp /usr/local/psa/admin/plib/common_func.php3{,.orig}
    # wget https://support.plesk.com/hc/article_attachments/115004384309/plib_common_func.zip
    # unzip plib_common_func.zip
    # mv plib_common_func.php3 /usr/local/psa/admin/plib/common_func.php3

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.