AWStats fails to calculate statistics for domain

Created:

2016-11-16 13:11:28 UTC

Modified:

2017-04-21 08:00:40 UTC

1

Was this article helpful?


Have more questions?

Submit a request

AWStats fails to calculate statistics for domain

Symptoms

Statistics calculation for a domain fails. When launching statistics utility the following output is given:

# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.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

Cause

Tomcat is not installed and logrotate daemon fails to find its logs while processing statistics calculation.

Resolution

  1. Install Tomcat

    OR

  2. Change the logrotate daemon's Tomcat configuration so that Tomcat logs are not processed anymore:

    # mv /usr/local/psa/etc/logrotate.d/tomcat /root/logrotate_backup/

and calculate statistics again:

    # /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.tld
Have more questions? Submit a request
Please sign in to leave a comment.