Statisics calculation fails: No such file or directory

Created:

2016-11-16 12:49:09 UTC

Modified:

2017-04-24 11:30:20 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Statisics calculation fails: No such file or directory

Applicable to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

Symptoms

The following messages appear if execute the following command:

# /usr/local/psa/admin/sbin/statistics --calculate-all
WARNING during statistics_collector execution: error: error accessing /var/www/vhosts/system/example.com/logs: No such file or directory
error: example.com:5 glob failed for /var/www/vhosts/system/example.com/logs/*.processed

where example.com is domain alias.

File /usr/local/psa/etc/logrotate.d/example.com exists on the server.

Cause

The statistics utility calculates the statistics and rotates the logs using /usr/local/psa/etc/logrotate.d/example.com configuration file. It tried to find logs for example.com that are not present on the system, because the example.com is a domain alias. It is possible that example.com previously was a real domain, but then it was changed to a domain alias and /usr/local/psa/etc/logrotate.d/example.com was not removed for some reason.

Resolution

Move /usr/local/psa/etc/logrotate.d/example.com to a different directory:

# mv /usr/local/psa/etc/logrotate.d/example.com /root/
Have more questions? Submit a request
Please sign in to leave a comment.