Domain is restored without hosting


2017-05-08 21:13:20 UTC


2017-08-16 16:43:14 UTC


Was this article helpful?

Have more questions?

Submit a request

Domain is restored without hosting

Applicable to:

  • Plesk for Linux


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

Warning: Restore domain ""
Execution of /opt/psa/admin/plib/api-cli/domain.php --update -guid 485673ef-3d0a-4708-af84-511f27aec30a -creation-date 2016-07-20 -description '' -hosting true -hst_type phys -do-not-apply-skeleton -ip -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.


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


  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.