• 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.

AWStats statistics is not updated for all domains

MislavO

Regular Pleskian
Hi, I've searched this problem and i saw it's very common problem, but sign, I didn't find solution to my problem.

E.g. my situation: i have domain "xy.com" which statistics update e.g. like this:
- 19th November - statistics updated
- 20th November - statistics updated
- 21st Novemeber - no statistics, all values zero

end so on. I've seen this on many websites, few days is ok, maybe whole month, then few days nothing, then again it happens and so on in circle. Problem is that this doesn't happen to all domains in the same day (for some domains i can see statistics for current date, and some of them don't have them, very weird indeed).

Firstly I've checked latest article which i got trough email, and it's this one.
http://kb.parallels.com/en/115166
# cat /usr/local/psa/version
11.0.9 Debian 6.0 110120608.16

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"select * from upgrade_history"
+---------------------+--------------+------------+
| upgrade_date | version_info | db_version |
+---------------------+--------------+------------+
| 2012-02-26 17:38:22 | 10.4.4 | 10.4.4 |
| 2012-02-26 17:38:24 | 10.4.4 | 10.4.4 |
| 2012-05-26 09:50:17 | 10.4.4 | 10.4.4 |
| 2012-07-22 05:14:16 | 10.4.4 | 10.4.4 |
| 2012-07-22 21:05:19 | 10.4.4 | 10.4.4 |
| 2012-07-22 22:01:39 | 11.0.9 | 11.0.9 |
| 2012-07-22 22:08:48 | 11.0.9 | 11.0.9 |
| 2012-07-22 22:19:17 | 11.0.9 | 11.0.9 |
| 2012-07-28 12:47:09 | 11.0.9 | 11.0.9 |
| 2012-07-28 12:53:17 | 11.0.9 | 11.0.9 |
| 2012-08-15 04:48:21 | 11.0.9 | 11.0.9 |
| 2012-09-13 11:30:04 | 11.0.9 | 11.0.9 |
| 2012-09-16 04:57:34 | 11.0.9 | 11.0.9 |
| 2012-09-16 12:08:50 | 11.0.9 | 11.0.9 |
| 2012-10-02 05:11:57 | 11.0.9 | 11.0.9

Resolution
Change the AWSTATS_BIN_D value from /srv/www/cgi-bin to /srv/www/cgi-bin/awstats.

This directory doesn't exist on my server, this is my /etc/psa/psa.conf file:
# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstats

Output of:
# locate awstats.pl
/usr/lib/cgi-bin/awstats.pl

# locate awstats_buildstaticpages.pl
/usr/share/awstats/tools/awstats_buildstaticpages.pl

I've also changed value in /etc/awstats/awstats.conf.local (LogFormat) as suggested here:
http://forum.parallels.com/showthread.php?t=107751
- i changed before in /etc/awstats/awstats.conf but there is no difference, i guess something is wrong (log format was 4 before)

Any suggestions what to do? I've read that there are some problems with file linking and updates and some people solved their problems with creating new directories and doing symlink.

EDIT:
# aptitude show awstats
Package: awstats
State: installed
Automatically installed: no
Version: 6.9.5~dfsg-5

There is no ".swsoft" extension at the end, so i guess this this awstats are not the ones who came with plesk it self, probably installed manually from some other "admin". Could this be the problem?

# aptitude show psa-awstats-configurator
Package: psa-awstats-configurator
New: yes
State: installed
Automatically installed: no
Version: 11.0.9-debian6.0.build110120606.19
Priority: extra
Section: non-free/net
Maintainer: Parallels <info@parallels.com>
Uncompressed Size: 61.4 k
Depends: plesk-base (>= 11.0.9), awstats
Description: Parallels Panel v11.0.9 awstats configurator
Parallels Panel configurator for awstats statistics
 
Last edited:
After running command:
# /usr/local/psa/admin/bin/statistics --calculate-one --domain-name=<DOMAIN.TLD>

I saw errors regarding tomcat, and i fixed that with this:
http://kb.parallels.com/en/113090

But then again, i still have problem with this:
http://kb.parallels.com/en/115166

Build errors404 page: "/usr/lib/cgi-bin/awstats.pl" -config=<DOMAIN.TLD>-ftp -staticlinks -configdir=/opt/psa/etc/awstats -output=errors404

Which comes to this:
http://forum.parallels.com/showthread.php?t=70202

And i'm still getting that error:
Build errors404 page: "/var/www/cgi-bin/awstats/awstats.pl" -config=<DOMAIN.TLD>u-ftp -staticlinks -configdir=/opt/psa/etc/awstats -output=errors404


Running:
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php

I didnt get error like post #3 here:
http://forum.parallels.com/showthread.php?t=98163
but when i run above command to calculate statistics for one domain, i get that error (Build errors404 page....etc.).

So i created some extra symlinks as suggested here:
http://forum.parallels.com/showthread.php?t=110985

and i'm still getting the error "Build errors404 page".

In addition, i've also tried to rebuild AWstats pages with the following command:
# /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=domain.com-http -dir=/var/www/vhosts/domain.com/statistics/webstat/current

and this also failed with error "Build errors404 page".
 
Last edited:
My friend said: "try to redirect output of daily script to a file and check if something happens during its daily execution", but still no result:
http://kb.parallels.com/en/114065

I'll submit ticket to support and then i will come back here and post solution, if we find one.
 
Back
Top