• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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