Article ID: 126907, created on Sep 15, 2015, last review on Feb 20, 2016

  • Applies to:
  • Plesk Automation 11.5


Subscription moving fails with the following error:

[2015-04-24 08:58:49,100] [ERROR] parallels.move_subscriptions.migrator |copy-hosting/copy-databases| Failed to perform an action on the following subscription(s): ''. Exception message:
[2015-04-24 08:58:49,100] [DEBUG] parallels.move_subscriptions.migrator |copy-hosting/copy-databases| Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/parallels/move_subscriptions/", line 607, in _execute_command_for_subscriptions
    command.run_function(subscription_names, try_subscription)
  File "/usr/lib/python2.7/site-packages/parallels/move_subscriptions/", line 496, in run_function
    getattr(self, function_name)(move_services, try_subscription)
  File "/usr/lib/python2.7/site-packages/parallels/move_subscriptions/", line 876, in copy_databases
    self.copy_databases_content(move_services, try_subscription)
  File "/usr/lib/python2.7/site-packages/parallels/move_subscriptions/", line 880, in copy_databases_content
    db_server_by_host = group_by_id(db_servers, lambda d:
  File "/usr/lib/python2.7/site-packages/parallels/utils/", line 177, in group_by_id
    assert key not in d # assert that key is really "id" - so it is unique


The behavior was considered as internal software issue with PPA-3160 and will be fixed in future Plesk Automation updates.

Migration tool fails to copy database content in case of there are MySQL and PostgreSQL database servers located on the same server.


As a workaround you can apply following steps:

For example, MySQL and PostgreSQL database servers installed on service node, - IP address of service node.

  1. Login to psa database on Plesk Automation Management node with command:

    `mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa`
  2. Select database servers information for

    mysql> select id,host,port,type from DatabaseServers where host='';
    | id | host        | port | type       |
    |  3 | | 3306 | mysql      |
    | 14 | | 5432 | postgresql |
    2 rows in set (0.00 sec)
  3. Change from IP address to Service node hostname for one of DatabaseServers records. For example:

    mysql> update DatabaseServers set host = '' where id = 14;
  4. Add to /etc/hosts file on PA Management node.

  5. Restart ppa-move-subscriptions copy-hosting config.ini.

  6. Once transfer will be completed, login to psa database and change parameter for id '14' to the original state.

Search Words



assert key not in d # assert that key is really "id" - so it is unique

ppa-move-subscriptions copy-databases

ppa-migrator just freeze

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF