E
elger
Guest
Today on one of our Plesk servers a new bug came up and saw the light. The other 8.6 servers do not seem to have the same problem.
At the AWStats page (under http://example.com/webstat/) there is a "select period" option as usual. Today the options are:
- current
- 2009-06
- 2009-6
The other months are gone missing.
On the server this translates to
/var/www/vhosts/example.com/statistics/webstat/ (as it should be)
In the select box : current is on the file system a symlink to 2009-06 (as it should be) but the data in 2009-06 holds only today. Which is of course also reflected by the web page.
If you select 2009-06 : the same thing happens (of course, it is a symlink)
If you select 2009-6 : you get an additional select box; the missing months can now be selected.
On the file system you see in the sub-directory called
/var/www/vhosts/example.com/statistics/webstat/2009-6
you seen the files and directories which are supposed to be in
/var/www/vhosts/example.com/statistics/webstat/
So somehow Plesk moved the contents from /var/www/vhosts/example.com/statistics/webstat/ to the sub-directory 2009-6
- This happened today (on the 23-06-2009) so no it is not when creating the new month directory
- This happened for all AWStats enabled domains on this server, not on the other servers.
My fix for now is :
cd /var/www/vhosts/example.com/statistics/
cp -R webstat webstat-backup
cd webstat
rm -f 2009-6/current
cp -Rf 2009-6/* .
rm -Rf 2009-6
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com
My question:
Does anybody else have this problem, and what is the real fix?
Please help.
Elger
At the AWStats page (under http://example.com/webstat/) there is a "select period" option as usual. Today the options are:
- current
- 2009-06
- 2009-6
The other months are gone missing.
On the server this translates to
/var/www/vhosts/example.com/statistics/webstat/ (as it should be)
In the select box : current is on the file system a symlink to 2009-06 (as it should be) but the data in 2009-06 holds only today. Which is of course also reflected by the web page.
If you select 2009-06 : the same thing happens (of course, it is a symlink)
If you select 2009-6 : you get an additional select box; the missing months can now be selected.
On the file system you see in the sub-directory called
/var/www/vhosts/example.com/statistics/webstat/2009-6
you seen the files and directories which are supposed to be in
/var/www/vhosts/example.com/statistics/webstat/
So somehow Plesk moved the contents from /var/www/vhosts/example.com/statistics/webstat/ to the sub-directory 2009-6
- This happened today (on the 23-06-2009) so no it is not when creating the new month directory
- This happened for all AWStats enabled domains on this server, not on the other servers.
My fix for now is :
cd /var/www/vhosts/example.com/statistics/
cp -R webstat webstat-backup
cd webstat
rm -f 2009-6/current
cp -Rf 2009-6/* .
rm -Rf 2009-6
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com
My question:
Does anybody else have this problem, and what is the real fix?
Please help.
Elger