Issue Stats work on some domains but not others

Discussion in 'Plesk Onyx' started by Pantek, Mar 17, 2017 at 11:47 AM.

  1. Pantek

    Pantek New Pleskian

    6
    20%
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    62
    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?
     
  2. IgorG

    IgorG Forums Analyst Plesk Team

    37
     
    Messages:
    22,649
    Likes Received:
    675
    Trophy Points:
    882
    Location:
    Novosibirsk, Russia
    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
     
  3. Pantek

    Pantek New Pleskian

    6
    20%
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    62
    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.
     
  4. Peter Debik

    Peter Debik Golden Pleskian Plesk Guru

    32
    80%
    Messages:
    1,124
    Likes Received:
    144
    Trophy Points:
    712
    Location:
    Berlin, Germany
    Do you have rewrite rules in Nginx or Apache (.htaccess) that could affect subdirectories to the domain?
     
  5. Pantek

    Pantek New Pleskian

    6
    20%
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    62
Loading...