- Plesk for Linux
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.
The system user johndoe has left from the previous attempt to restore the subsription.
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
- Try to restore the subsription once again