• 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

Issue Stats work on some domains but not others

Pantek

New Pleskian
Onyx on Ubuntu. For some domains, the stats work just fine. For others, when I visit the stats page such as https://domain.com/plesk-stat/webstat/, I get

Unable to open plesk-stat/webstat/index.html

I've compared the directory structure, ownership and permissions on domains for which stats work to those where it does not and I can find no differences. Any ideas?
 
Do you have something suspicious in the output of the following command for affected domain:

# /usr/local/psa/admin/sbin/web_statistic_executor --calculate-domain domain.com
 
Hi - nothing that looks strange to me:


# /usr/local/psa/admin/sbin/web_statistic_executor --calculate-domain domain.com Starting...
Executing logs preparation...

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

/usr/lib/cgi-bin/awstats.pl -update -configdir=/opt/psa/etc/awstats -config=domain.com-http -LogFile=/var/www/vhosts/system/domain.com/logs/access_log.webstat
Stat_ttl for the domain is 3.
Processing the log /var/www/vhosts/system/domain.com/logs/access_ssl_log.webstat

/usr/lib/cgi-bin/awstats.pl -update -configdir=/opt/psa/etc/awstats -config=domain.com-https -LogFile=/var/www/vhosts/system/domain.com/logs/access_ssl_log.webstat
Stat_ttl for the domain is 3.
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/domain.com/logs/xferlog.webstat because it is empty or does not exist
Skip log/var/www/vhosts/system/domain.com/logs/xferlog_regular.webstat because it is empty or does not exist
Finished.
 
I've compared the directory structure, ownership and permissions on domains for which stats work to those where it does not and I can find no differences. Any ideas?
Do you have rewrite rules in Nginx or Apache (.htaccess) that could affect subdirectories to the domain?
 
same problem here.
Code:
 /usr/local/psa/admin/sbin/web_statistic_executor --calculate-domain arrufat-si.com
Starting...
Executing logs preparation...

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

/var/www/cgi-bin/awstats/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=arrufat-si.com-http -LogFile=/var/www/vhosts/system/arrufat-si.com/logs/access_log.webstat
Execution of /var/www/cgi-bin/awstats/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=arrufat-si.com-http -LogFile=/var/www/vhosts/system/arrufat-si.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/arrufat-si.com/logs/access_log.webstat
Stat_ttl for the domain is 12.
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No existe el fichero o el directorio
popen_exec: command failed code: 127 , error: none

System error 2: 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/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=arrufat-si.com-http -dir=/var/www/vhosts/system/arrufat-si.com/statistics//webstat/current
Processing the log /var/www/vhosts/system/arrufat-si.com/logs/access_ssl_log.webstat

/var/www/cgi-bin/awstats/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=arrufat-si.com-https -LogFile=/var/www/vhosts/system/arrufat-si.com/logs/access_ssl_log.webstat
Execution of /var/www/cgi-bin/awstats/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=arrufat-si.com-https -LogFile=/var/www/vhosts/system/arrufat-si.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/arrufat-si.com/logs/access_ssl_log.webstat
Stat_ttl for the domain is 12.
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No existe el fichero o el directorio
popen_exec: command failed code: 127 , error: none

System error 2: 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/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=arrufat-si.com-https -dir=/var/www/vhosts/system/arrufat-si.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/arrufat-si.com/logs/xferlog.webstat because it is empty or does not exist
Skip log/var/www/vhosts/system/arrufat-si.com/logs/xferlog_regular.webstat because it is empty or does not exist
Finished.
 
Back
Top