Migration fails: Failed to perform operation on subscription(s):

Created:

2016-11-16 13:01:55 UTC

Modified:

2016-12-21 19:47:36 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration fails: Failed to perform operation on subscription(s):

Symptoms

  • Migration fails with error:

    Warning: Unable to restore the original username for the system user of the subscription domain.tld: a system user named domaintld is already present on target panel
  • Domain is properly removed but sysuser is present:

    mysql> SELECT id FROM domains WHERE name='damain.tld';
    Empty set (0.00 sec)
    mysql> SELECT id FROM sys_users WHERE login="domain";
    +-----+
    | id |
    +-----+
    | 906 |
    +-----+
    1 row in set (0.00 sec)

    removing sysuser from database does not resolve the issue.

Cause

Database inconsistency.

Resolution

  1. Run the following commands:

    #plesk repair ftp
    #plesk repair db
  2. Delete broken custom templates from "Webserver Configuration" (domainVhost.php, domainWebmail.php):

    mv /usr/local/psa/admin/conf/templates/custom/domainVhost.php{,_}
    mv /usr/local/psa/admin/conf/templates/custom/domainWebmail.php{,_}
Have more questions? Submit a request
Please sign in to leave a comment.