• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved awstats not updating since update

riddlenl

New Pleskian
Hi,

Since the update, awstats did not update and this month gives a 404 Error (the update was on Oct 26). When I do a manual forced update for one domain, it gives this error. I tried to remove awstats and install it again, but with the same issue. When I choose webalizer for the domain, the stats get updated correctly without errors.

[root@plesk02 ~]# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=DOMAINHERE.com
Starting...
Executing logs preparation...

-----[ DOMAINHERE.com
Webstat: awstats
Executing awstats...
Processing the log /var/www/vhosts/system/DOMAINHERE.com/logs/access_log.webstat

/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-http -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/access_log.webstat
Execution of /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-http -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/access_log.webstat failed with return code 1.
Stdout is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory
Stderr is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory

The log will not be truncated because of errors above: /var/www/vhosts/system/DOMAINHERE.com/logs/access_log.webstat
sh: /usr/share/awstats/tools/awstats_buildstaticpages.pl: No such file or directory
popen_exec: command failed code: 127 , error: none

System error 2: No such file or directory
Error: Unable to execute /usr/share/awstats/tools/awstats_buildstaticpages.pl -awstatsprog=/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-http -dir=/var/www/vhosts/system/DOMAINHERE.com/statistics//webstat/current
Processing the log /var/www/vhosts/system/DOMAINHERE.com/logs/access_ssl_log.webstat

/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-https -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/access_ssl_log.webstat
Execution of /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-https -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/access_ssl_log.webstat failed with return code 1.
Stdout is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory
Stderr is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory

The log will not be truncated because of errors above: /var/www/vhosts/system/DOMAINHERE.com/logs/access_ssl_log.webstat
sh: /usr/share/awstats/tools/awstats_buildstaticpages.pl: No such file or directory
popen_exec: command failed code: 127 , error: none

System error 2: No such file or directory
Error: Unable to execute /usr/share/awstats/tools/awstats_buildstaticpages.pl -awstatsprog=/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-https -dir=/var/www/vhosts/system/DOMAINHERE.com/statistics//webstat-ssl/current
Skip log `proxy_access_log' because it has parent `access_log'
Skip log `proxy_access_ssl_log' because it has parent `access_ssl_log'
Skip log/var/www/vhosts/system/DOMAINHERE.com/logs/xferlog.webstat because it is empty or does not exist
Processing the log /var/www/vhosts/system/DOMAINHERE.com/logs/xferlog_regular.webstat

/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-ftp -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/xferlog_regular.webstat
Execution of /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-ftp -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/xferlog_regular.webstat failed with return code 1.
Stdout is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory
Stderr is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory

The log will not be truncated because of errors above: /var/www/vhosts/system/DOMAINHERE.com/logs/xferlog_regular.webstat
sh: /usr/share/awstats/tools/awstats_buildstaticpages.pl: No such file or directory
popen_exec: command failed code: 127 , error: none

System error 2: No such file or directory
Error: Unable to execute /usr/share/awstats/tools/awstats_buildstaticpages.pl -awstatsprog=/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-ftp -dir=/var/www/vhosts/system/DOMAINHERE.com/statistics//ftpstat/current
[root@plesk02 ~]#
 
With command

# yum history info awstats | grep -A1 awstats | head -n2

make sure that awstats was installed from Plesk but not from any other third-party repository.
 
[root@plesk02 ~]# yum history info awstats | grep -A1 awstats | head -n2
Install awstats-7.7-2.centos.7+p18.0.19.0+t190904.1310.noarch @PLESK_18_0_20-dist
Erase plesk-php70-7.0.33-centos7.18120712.x86_64 @PLESK_17_PHP70
[root@plesk02 ~]#

I removed it through the Plesk installer and installed it again, but same errors show up. I have it on the 2 Plesk servers I have...

I saw that the "tools" dir does not exist and all the .pl fiiles are just in /usr/share/awstats but creating the tools directory and copying them into that dir doesn't fix it completely:

[root@plesk02 awstats]# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=DOMAINHERE.com
Starting...
Executing logs preparation...

-----[ DOMAINHERE.com
Webstat: awstats
Executing awstats...
Processing the log /var/www/vhosts/system/DOMAINHERE.com/logs/access_log.webstat

/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-http -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/access_log.webstat
Execution of /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-http -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/access_log.webstat failed with return code 1.
Stdout is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory
Stderr is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory

The log will not be truncated because of errors above: /var/www/vhosts/system/DOMAINHERE.com/logs/access_log.webstat
Processing the log /var/www/vhosts/system/DOMAINHERE.com/logs/access_ssl_log.webstat

/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-https -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/access_ssl_log.webstat
Execution of /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-https -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/access_ssl_log.webstat failed with return code 1.
Stdout is
Stat_ttl for the domain is 3.
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory
Stderr is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory

The log will not be truncated because of errors above: /var/www/vhosts/system/DOMAINHERE.com/logs/access_ssl_log.webstat
Skip log `proxy_access_log' because it has parent `access_log'
Skip log `proxy_access_ssl_log' because it has parent `access_ssl_log'
Skip log/var/www/vhosts/system/DOMAINHERE.com/logs/xferlog.webstat because it is empty or does not exist
Processing the log /var/www/vhosts/system/DOMAINHERE.com/logs/xferlog_regular.webstat

/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-ftp -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/xferlog_regular.webstat
Execution of /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=DOMAINHERE.com-ftp -LogFile=/var/www/vhosts/system/DOMAINHERE.com/logs/xferlog_regular.webstat failed with return code 1.
Stdout is
Stat_ttl for the domain is 3.
Stat_ttl for the domain is 3.
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory
Stderr is
forkExecvPipes: execv() failed: No such file or directory

System error 2: No such file or directory

The log will not be truncated because of errors above: /var/www/vhosts/system/DOMAINHERE.com/logs/xferlog_regular.webstat
 
Last edited:
I just seem to have "fixed" it:

- I created the "tools" directory manually and put the .pl files in there (copied)
- In psa.conf, the "AWSTATS_BIN_D" directive was wrong. The 'awstats.pl' file is in /var/www/cgi-bin/awstats now, the variable was set on /usr/share/awstats/cgi-bin or something.

Changed that, and it works now.

This sure
 
Last edited:
Does anyone have a simple fix for this AwStats not working in Plesk 17.8.11 - stopped working about 6 months ago! And just need a simple fix to get it going. If there is one! Thanks in advance.
 
Back
Top