Migration failed: not well-formed (invalid token)

Created:

2016-11-16 12:56:20 UTC

Modified:

2017-08-16 18:33:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration failed: not well-formed (invalid token)

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Symptoms

Migration failed with the following errors:

Unable to check the ability to migrate the selected domains. The migration of these domains will likely be blocked. Refer to logs for details: download the info log, download the debug log

[ERROR] Failed to perform action: Fetch information from target servers
Cause: not well-formed (invalid token): line 322, column 33
That is a critical error, migration was stopped.

Cause

This is an internal issue with ID #PPPM-3752 , which is planned to be fixed in future product updates. There are some passwords on the source server that cannot be decrypted using the current Plesk encryption key.

Workaround

Use the script attached for Plesk 12.5 in order to find what users have passwords that cannot be encrypted:

  1. Extract regenerate-broken-passwords.php file from the archive

  2. Place it to /usr/local/psa/admin/plib/scripts directory

  3. Run the script:

    # /usr/local/psa/bin/sw-engine-pleskrun regenerate-broken-passwords.php --help

    There are two options: * show - Show entities (db users, mail users, ftp users) with passwords which cannot be encrypted; * run - Regenerate passwords which cannot be encrypted (db users, mail users, ftp users)

    • Use show option to get the list of users with broken passwords.

    • Use run option to regenerate affected passwords so that migration could be completed

If you use older Plesk version, refer to:

#213379849 Migration fails: ParseError: not well-formed invalid token

Attachments:

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