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:
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:
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:
/etc/init.d/sw-engine restart
/etc/init.d/sw-cp-server restart
Disable debug log.