• 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

Stats not shown even if I generate it manually

SalvadorS

Regular Pleskian
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
 
Can you find a reason of 404 error in /var/www/vhosts/domain.com/statistics/logs/access_log ?
 
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...
 
Try to reset it with

# /usr/local/psa/admin/bin/webstatmng --unset-configs --stat-prog=webalizer --domain-name=<domain_name>
# /usr/local/psa/admin/bin/webstatmng --set-configs --stat-prog=webalizer --domain-name=<domain_name>
 
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.
 
Back
Top