Plesk Migrator transfer fails: Incorrect padding


2016-11-16 13:19:32 UTC


2017-08-17 03:09:16 UTC


Was this article helpful?

Have more questions?

Submit a request

Plesk Migrator transfer fails: Incorrect padding

Applicable to:

  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Note: This article has the reference to the issue with the fix available:

  • #PMT-2933 "Migration failed if a subscription contained additional users with passwords in wrong Base64 encoding."
    Fixed in:
Please consider updating your server:


When running

# panel-migrator generate-migration list config.ini

it fails with the following error message

[ERROR]  | Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/parallels/common/cli/", line 34, in run
options.method(migrator, options)
File "/usr/lib/python2.7/site-packages/parallels/common/cli/", line 108, in <lambda>
lambda m, o: m.generate_migration_list(o),
File "/usr/lib/python2.7/site-packages/parallels/plesks_migrator/", line 2038, in generate_migration_list
subscription_names += [ for s in backup.iter_all_subscriptions() ]
File "/usr/lib/python2.7/site-packages/parallels/common/plesk_backup/", line 131, in iter_all_subscriptions
for subscription, _, _ in self.iter_all_subscriptions_with_owner_and_reseller():
File "/usr/lib/python2.7/site-packages/parallels/common/plesk_backup/", line 114, in iter_all_subscriptions_with_owner_and_reseller
for client in self.iter_clients():
File "/usr/lib/python2.7/site-packages/parallels/common/plesk_backup/", line 453, in iter_clients
yield self.get_client(client_name)
File "/usr/lib/python2.7/site-packages/parallels/common/plesk_backup/", line 461, in get_client
auxiliary_users, auxiliary_roles = self._get_auxiliary_users_and_roles(info)
File "/usr/lib/python2.7/site-packages/parallels/common/plesk_backup/", line 480, in _get_auxiliary_users_and_roles
return cls._get_auxiliary_users(client_info), cls._get_auxiliary_user_roles(client_info)
File "/usr/lib/python2.7/site-packages/parallels/common/plesk_backup/", line 484, in _get_auxiliary_users
return list(cls._parse_users_node(client_info.find('users'), "client '%s'" % client_info.attrib['name']))
File "/usr/lib/python2.7/site-packages/parallels/common/plesk_backup/", line 514, in _parse_users_node
password = read_password(password_node)
File "/usr/lib/python2.7/site-packages/parallels/common/plesk_backup/", line 93, in read_password
return Password('plain', base64.b64decode(password_node.text))
File "/usr/lib/python2.7/", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding
[ERROR] | Unexpected error: 'Incorrect padding', migration is aborted. See the traceback above for more information.


This is Plesk internal issue with ID #PMT-2933 , which was fixed in Plesk Migrator version 1.12 (Plesk 12.5.30 MU#39) .


Apply the latest MU.

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