Plesk

Statistics calculation fails: The system cannot find the path specified

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:Inetpubvhostsexample.com.pleskstatisticsexample.comwebstatCopyAWStats.lock'
  at (VFile::open line 104)
  at Calculate web statistics by config 'C:Inetpubvhostsexample.comlogsiisW3SVC14web_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:Inetpubvhostsexample.com.pleskstatisticsexample.comwebstat

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

    C:> C:inetpubvhostsexample.comlogsW3SVC14

    • 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:Inetpubvhosts, 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:Inetpubvhostsexample.comlogsiisW3SVC14web_stat_executor.conf as follows:

      <?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>

Exit mobile version