Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Statistics could not be updated automatically  (Read 3592 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
Statistics could not be updated automatically
« on: May 18, 2014, 07:11:35 pm »

Automatic web-statistic calculation does not work. To be more precisely the values in Tools & Settings > Statistics > Traffic Usage by Domains are not updated. It shows the same traffic as of the previous week.

Executing manually "/usr/local/psa/admin/sbin/statistics --calculate-all" fixed the issue. However statistics is not getting updated automatically.

The problem does not relate to 'cron' tasks. According to 'cron' logs the tasks has been started and completed:

Code: [Select]
grep 50plesk-daily /var/log/cron
May 14 13:22:01 ppp115 run-parts(/etc/cron.daily)[1287]: starting 50plesk-daily
May 14 13:23:13 ppp115 run-parts(/etc/cron.daily)[2867]: finished 50plesk-daily


Automatic web-statistic calculation runs from '50plesk-daily' cron task. When trying to enable daily maintenance (statistics) script logging, following error in '/root/50plesk-daily.log' appears:

Code: [Select]
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /usr/local/psa/admin/plib/common_func.php3 on line 1157
Resolution

Increase "memory_limit" in '/usr/local/psa/admin/conf/php.ini'

Then restart sw-engine and sw-cp-server services:

Code: [Select]
/etc/init.d/sw-engine restart
/etc/init.d/sw-cp-server restart
Disable debug log.