• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

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