Backup restore failed: User already exists

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Created:

2016-11-16 13:08:50 UTC

Modified:

2017-01-20 14:36:55 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Backup restore failed: User already exists

Symptoms

Backup restore:

"%plesk_cli%\\pleskrestore.exe" --restore "c:\\backup_domain.tld.zip" -ignore-sign -level domains -verbose

Failed with the following error:

Stderr is
An error occurred during domain update: An error occurred during changing of hosting settings: User "foobar" already exists.

Cause

Plesk internal issue #PPPM-2936, which is expected to be fixed in future product updates.

There is mail user 'foobar' , same as sysuser ' foobar ' in backup_domain.tld_info_1506120444.xml .

C:\\findstr /N foobar backup_domain.tld_info_1506120444.xml

241: <mailuser id="5" name="foobar" forwarding-enabled="false" mailbox-quota="-1" user-guid="0833e883-fc11-4d2b-bf35-9b35e6cca675" cp-access-default="true">
248: <cid type="mailmsg" path="" referrer="true" offset="foobar@domain.tld">
262: <cid type="spam-assasin" path="" unpacksize="0" referrer="true" offset="foobar@domain.tld">
962: <sysuser name="foobar" quota="52428800" shell="Login Disabled" home="/">
970: <pduser name="foobar">
979: <iis-application-pool turned-on="true" identity="IWPD_8(foobar)">

Resolution

Restore the backup via Plesk user interface:

  1. In Plesk create a new domain. Use the same domain name and sysuser name as were used for the backed up domain. For example, the domain name is example.com .

  2. Upload the backup:

    Domains > example.com > Backup Manager > Upload

  3. Restore the uploaded backup.

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