Unable to swap domain and domain alias names: boost::filesystem::filesystem_error Directory not empty

Created:

2016-12-12 03:47:08 UTC

Modified:

2017-08-08 13:10:53 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to swap domain and domain alias names: boost::filesystem::filesystem_error Directory not empty

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Unable to swap domain and domain alias names in Plesk, the following can be found in /var/log/plesk/panel.log :

    ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/mailmng-core' '--rename-domain' '--old-domain-name=domain-example.com' '--new-domain-name=alias-example.com'] with exit code [1]
ERR [1] '/opt/psa/admin/bin/mailmng-core' '--rename-domain' '--old-domain-name=domain-example.com' '--new-domain-name=alias-example.com' failed with code 1.

stdout:
Fatal error: boost::filesystem::filesystem_error(boost::filesystem::rename: Directory not empty: "/var/qmail/mailnames/domain-example.com", /var/qmail/mailnames/alias-example.com)

Cause

For some reasons mailnames directory for alias was not empty.

Resolution

In order to archive the goal to swap domain and domain alias names remove incorrect folder for alias:

  • Move current mailnames folder for alias:

    # mv /var/qmail/mailnames/alias-example.com/ /root/alias-example.com_mailnames_backup
  • Try to proceed with renaming operation again.

Please contact Plesk Tecnical Support if you face with other issues during this operation.

Have more questions? Submit a request
Please sign in to leave a comment.