Product:
Search Type:

[FIX] Web statistics on the server do not get updated

Article ID: 1998 
Last Review: Aug,24 2007
APPLIES TO:
  • Plesk 8.1 for Windows

SYMPTOMS

Statistics page has frozen at some specific date and doesn’t get updated.

RESOLUTION

Please make sure that Plesk is running with the latest patch level before applying the solution below.

To check why statistics do not get updated use the following instructions:

Check values the following values in the registry

HKEY_LOCAL_MACHINE\SOFTWARE\PLESK\PSA Config\Config\Statistics\DomainIds

LastHttpStatisticsRun

OfflineLockStatus

The LastHttpStatisticsRun indicates the last time when statistics were calculated and completed successfully. If web-statistics are still incorrect, most probably domain web logs were not updated.

There are three possible reasons of that

1. There were no visits of the domain since last statistics updating.

2. Log file hasn’t been updated for some internal IIS issues. In Plesk it is located in domain home folder %plesk_vhosts%\<domain>\statistics\logs\V3SVC<web site ID in IIS>

Or it can be retrieved using the following Plesk utility:

“%plesk_bin%\websrvmng.exe” --get-vhost-log-dir --vhost-name=<domain>
3. Domain name resolves to a different IP address.

To check the second possibility browse through the websites and check that webserver log files get updated (receive new records). If the log files do not get updated make sure that the domain name resolves to correct IP. Restating web-sites in IIS should address the logging problem in by the web server.

If LastHttpStatisticsRun doesn’t indicate  the last time when statistics was launched, then statistics calculation did not finish properly. There are several reasons of this problem:

1. Statistics calculation scheduled task did not start.

Statistics scheduled task must be present in the Windows Scheduler. The task is represented as a GUID and contains ‘statistics.exe’ in the command line. The last result should be equal to 0x0, what indicates that statistics calculation scheduled task launched successfully.

2. Statistics process was terminated.

If the task stared properly then an error message should have been sent to administrator’s email address.

If there are no error messages in the notification, the OfflineLockStatus key can be checked as it contains a PID of the process that has locked the domain. If the process with this PID is running, it should be statistics.exe. Restart the process to renew the PID.

3. The server was restarted or shut down.

Additional information

All the statistics in Plesk are generated by the Plesk statistics.exe utility. It is located in %plesk_bin% folderdefault and is configured to launch once  in  24 hours by default. But its schedule can be changed by Plesk administrator via Plesk panel, Server, Scheduled Tasks, Statistics calculation. If statistics.exe process is killed while running, domain statistics would not get updated.

Statistics stores all necessary information in the registry, in the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\PLESK\PSA Config\Config\Statistics\DomainIds

This branch contains Plesk domains ID with necessary information for statistics. Every key with a domain ID contains the following values

LastHttpStatisticsRun

Shows date and time when HTTP statistics on a domain was updated last time.

LastFtpStatisticsRun

Shows date and time when FTP statistics on a domain was updated last time.

OfflineLockStatus

This value claims that calculation of HTTP traffic on a domain is locked by statistics. If this value is zero, then domain is not locked and ready for new statistics updating. Otherwise, it is set to process ID that has locked the domain and statistics skips updating this domain.

DiskUsageStatus

The same as OfflineLockStatus but is applied to disk usage calculation.

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields