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

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