• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Plesk 10 doesn't count disk usage and traffic, at all

Renev

New Pleskian
We've recently spun up a new Plesk 10.x server in our Virtuozzo 4.6 cluster and have run into something strange.

For all clients the disk usage reads as '0'.
When I check the traffic usage screens under 'Tools & Utilities' everything reads 0 as well.

The only things that are counted are mailboxes and databases.

Could it be that there's some kind of cronjob that's not running or failing? Are there any log files that could provide more information?

The quotas work fine on our other VE's.
 
Try to manually recalculate disk usage statistics for domain with
# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.tld

and check output.
 
Thanks. The first steps, HTTP and FTP stats seem to work fine, then it quits with this error:

error: error accessing /usr/share/tomcat6/logs: No such file or directory
error: tomcat:2 glob failed for /usr/share/tomcat6/logs/*.log

Naturally, Tomcat is not installed on this server. However, now the quotas do show up in Plesk for this domain!
 
Hi IgorG,

It seems if you use the --calculate-one it does update the Disk Usage in Plesk, however, it doesn't appear to when using --calculate-all (although it does do the AWStats update for all domains).

Also, the statistics_collector process seems to hang about:

root 19351 0.0 0.1 64848 3300 ? S 04:03 0:04 /usr/local/psa/admin/bin/statistics_collector

It's not doing anything:

#strace -p 19351
Process 19351 attached - interrupt to quit
wait4(13865,

Is this normal?

Thanks
Matt
 
1. do not strace sbin/statistics - in not binary now.
if U will strace sbin/statistics process results will be not satisfied )

2. statistics corectly calculated only during daily mainteinance script
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
 
Hi,

When is this script supposed to run, because statistics are not being calculated at all automatically.

When you try and do it manually, it just runs for HOURS, which was never a problem previously.

Thanks
Matt
 
Same Problem Here

I just noticed statistics have not been calculated for months!

Output of:
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=mydomain.tld

WARNING during statistics_collector execution: : error: error accessing /usr/share/tomcat5/logs: No such file or directory
error: tomcat:2 glob failed for /usr/share/tomcat5/logs/*.log

Help!
 
Just go to Home>Tools & Settings> Server settings and uncheck "Java applications" in "Include in the disk space usage calculation" if you haven't installed Tomcat.
 
Hello,

We are having the same issue with our server (10.4 migrated from 8.6).

I've disabled the Java Application in "Include in the disk space usage calculation" , but i receive the tomcat6 logs no such file error if i execute manually /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domainltd . Is this expected behavior?

The upside is the stats are now shown for domainltd.
 
Yes, it expected. Actually this utilitu is not for public execution. But if U exec it by Urself be ready to see some warns.
 
/usr/local/psa/admin/sbin/statistics --calculate-all FAILS

/usr/local/psa/admin/sbin/statistics --calculate-all

fails with:

MySQL query failed: MySQL server has gone away

I have increased MySQL wait_timeout to wait_timeout = 3600 and I still have the problem.
 
>It depends on number of sites and their popularity in Internet.

Actually it just minor part of problem. Main goal here - is the webstat backend for site. By result of my tests (1000 domains with 1000 HTTP requests per domain) - if U use awstats calculation time is too long, webalizer is more fast. Minutes/seconds for webalizer (C backend) and hours for awstats(Perl backend).

If U want fast calculation - change statistics for all domains (simply shell-script). Results will be very nice.
 
Last edited:
Hello.

/usr/local/psa/admin/sbin/statistics --calculate-all

thereis no output

when I can see it log?
or can i change log to my file?
 
In 11x sbin/statistics - is the PHP wrapper over sbin/statistics_collector. Wrapper is hides statistics_collector output.
 
In 11x sbin/statistics - is the PHP wrapper over sbin/statistics_collector. Wrapper is hides statistics_collector output.

I'm not sure what this means.
Can you explain a bit more? Does it help with the problem of the statistics command timing out?
 
look:
[xxx@yyy.com]# ls /usr/local/psa/admin/sbin | grep statistics
statistics - php script (wrapper over statistic_collector) - it call statistic_collector, parse and analyze its output
statistics_collector - binary for direct calculation, produces output, do not called directly
[xxx@yyy.com]#
 
Back
Top