1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Stats not shown even if I generate it manually

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by SalvadorS, Feb 11, 2011.

  1. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    Hello,

    I have a domain under Plesk 9.3 (Debian) which I generarted the stats manually correctly:

    /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.com

    Than if I go to:

    https://domain.com/plesk-stat/webstat

    I receive a 404 error. However logs rotated under /var/www/vhosts/domain.com/statistics/logs

    -rw-r--r-- 1 root root 495 feb 11 10:33 access_log
    -rw-r--r-- 1 root root 140153628 feb 11 10:31 access_log.processed

    Also under webstat folder:

    lrwxrwxrwx 1 root root 7 feb 11 10:31 current -> 2011-02
    -rwxr-xr-x 1 root psaserv 457 feb 11 10:31 index.html

    Wait your answer

    Regards
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Can you find a reason of 404 error in /var/www/vhosts/domain.com/statistics/logs/access_log ?
     
  3. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    Thanks Igor for your reply.

    No I couldn´t find any reason:

    /var/www/vhosts/domain.com/statistics/logs# grep xxx.xxx.xxx.xxx access_log

    Where xxx.xxx.xxx.xxx is my IP

    And no results

    However I found this on error_log

    /var/www/vhosts/domain.com/statistics/logs# grep xxx.xxx.xxx.xxx error_log
    [Fri Feb 11 10:33:49 2011] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/vhosts/domain.com/httpsdocs/plesk-stat/webstat
    [Fri Feb 11 10:56:48 2011] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/vhosts/domain.com/httpsdocs/plesk-stat/webstat
    [Fri Feb 11 12:28:56 2011] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/vhosts/domain.com/httpsdocs/plesk-stat/webstat

    In other domains that folder is empty too but stats works...
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Try to reset it with

     
  5. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    I execute both commands:

    # /usr/local/psa/admin/bin/webstatmng --unset-configs --stat-prog=webalizer --domain-name=domain.com
    # /usr/local/psa/admin/bin/webstatmng --set-configs --stat-prog=webalizer --domain-name=domain.com
    #

    Then I regenerate the stats:

    # /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.com
    Create/Update database for config "/opt/psa/etc/awstats/awstats.domain.com-http.conf" by AWStats version 6.7 (build 1.892)
    From data in log file "-"...
    Phase 1 : First bypass old records, searching new record...
    Searching new records from beginning of log file...
    Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
    Jumped lines in file: 0
    Parsed lines in file: 824
    Found 0 dropped records,
    Found 0 corrupted records,
    Found 0 old records,
    Found 824 new qualified records.

    ...

    Found this error at the end:

    sh: line 1: 4356 segment violation /usr/lib/plesk-9.0/mailsrvanalog > /opt/psa/var/log/smtp_parsed.log 5> /opt/psa/var/log/smtp_pendings.tmp

    And still error 404.

    Thanks a lot for your time.
     
Loading...