Domain is restored without hosting

Created:

2017-05-08 21:13:20 UTC

Modified:

2017-08-16 16:43:14 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Domain is restored without hosting

Applicable to:

  • Plesk for Linux

Symptoms

Subscription is restored from backup created on the another Plesk server without hosting with the following warning:

Warning: Restore domain "example.com"
Execution of /opt/psa/admin/plib/api-cli/domain.php --update example.com -guid 485673ef-3d0a-4708-af84-511f27aec30a -creation-date 2016-07-20 -description '' -hosting true -hst_type phys -do-not-apply-skeleton -ip 203.0.113.2 -www-root httpdocs/johndoe -login johndoe -passwd '' -passwd_type sym -ignore-nonexistent-options failed with return code 1. Stderr is An error occurred during domain update: An error occurred during changing of hosting settings: The user johndoe already exists.

Cause

The system user johndoe has left from the previous attempt to restore the subsription.

Resolution

  1. Remove orphaned Plesk system user from the Plesk database and from the system:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin psa > /root/psa`date +%F_%H.%M`.sql
    # plesk db
    mysql> delete from sys_users where login = "johndoe";
    mysql> quit
    # deluser johndoe
    
  2. Try to restore the subsription once again
Have more questions? Submit a request
Please sign in to leave a comment.