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

This is the Plesk bug PPPM-15433: "Creation/migration of domain in Plesk fails due to missing awstats directory after upgrading to 18.0.79 on empty Plesk". Which will be fixed in future Plesk updates.

Resolution

Until the bug be fixed, as a workaround consider recreating the missing Awstats directories as follows:

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

    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.