Articles in this section

Statistics calculation fails: The system cannot find the path specified

Plesk for Windows kb: technical ABT: Group B

Applicable to:

  • Plesk for Windows

Symptoms

Statistics calculation fails with the following message:

C:\> "%plesk_bin%\web_statistics_executor.exe"
The system cannot find the path specified. (Error code 3) at Open file 'C:\Inetpub\vhosts\example.com\.plesk\statistics\example.com\webstat\CopyAWStats.lock'
  at (VFile::open line 104)
  at Calculate web statistics by config 'C:\Inetpub\vhosts\example.com\logs\iis\W3SVC14\web_stat_executor.conf'(WebStatisticsExecutor::calculate line 82)

Cause

  1. Domain/subdomain folder structure is not correct.

  2. Incorrect removal of a domain/subdomain that leads to an incorrect Web statistics engine configuration.

Resolution

  1. Connect to a Plesk server via RDP.
  2. Start a command prompt as an Administrator and run the following commands:

    • If it's Plesk 12.x or lower:

      C:\> cd "%plesk_cli%"
      repair.exe --update-vhosts-structure
      repair.exe --update-all-domains-web-stat

    • If it's Plesk Onyx:

      C:\> plesk repair fs

  3. If the problem is not resolved, check that the domain example.com exists in Plesk and that the file system contains the following directory:

    C:\> C:\Inetpub\vhosts\example.com\.plesk\statistics\example.com\webstat\

  4. Make sure that in IIS there's a domain with ID 14 (from folder name W3SVC14):

    C:\> C:\inetpub\vhosts\example.com\logs\W3SVC14

    • Open IIS: Start > Windows Administrative Tools > Internet Information Services (IIS) Manager

    • At <Server_Name> > Sites, ordered by ID, check if there's a domain with ID 14 (according to this example).

      A- If it does not exist: move the folder W3SVC14 out of C:\Inetpub\vhosts, for example to Administrator's desktop.

      B- If it exists in IIS: verify that the domain example.com is in the content of the file C:\Inetpub\vhosts\example.com\logs\iis\W3SVC14\web_stat_executor.conf as follows:

      CONFIG_TEXT: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <config><domain name="example.com" webspaceName="subscription.com" default_doc=""><webstat type="awstats"/><alias name="example.com"/><alias name="www.example.com"/></domain></config>

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.