Articles in this section

Unable to create or migrate a domain in Plesk: System error 2: No such file or directory webstatmng: Unable to copy the file /etc/awstats/awstats.model.conf

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • An attempt to create a Domain in Plesk fails with:

    PLESK_ERROR: hosting update is failed: webstatmng: Unable to open file /opt/psa/etc/awstats/awstats.example.com-http.conf: No such file or directory
    System error 2: No such file or directory 
    webstatmng: Unable to copy the file /etc/awstats/awstats.model.conf to /opt/psa/etc/awstats/awstats.example.com-http.conf 

    System error 2: No such file or directory

  • Plesk has been recently updated to 18.0.79 or later
  • No domains are hosted on the server 
  • A domain(s) migration fails with the same error if the target server was also updated and has no domain hosted on it.

Cause

An awstats required directory is missing on the affected Plesk server or from the target in case of a migration.

On next reuse please contact Gabriel Aznarez for further investigation on possible support driver.

Resolution

  1. Connect to the Plesk server via SSH.
  2. Recreate the missing directory as follows:

    CentOS/RHEL:

    # mkdir /usr/local/psa/etc/awstats

    Debian/Ubuntu:

    # mkdir /opt/psa/etc/awstats

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.