Symptoms
Error message in Plesk Migrator logs:
CONFIG_TEXT: Subscription 'example.com'
error: Failed to copy content of database 'example_db'
Migration tools tried to perform operation in 3 attempts: a bytes-like object is required, not 'str'
...
error: Unable to restore Plesk extension 'wp-toolkit' for subscription 'example.com' on target Plesk server; subscription data of this extension will not be deployed
Cause
Plesk Migrator bug with ID PMT-5355.
Resolution
As a workaround, until the bug is resolved, export necessary databases from the source server and import them on the target server manually:
-
Log in to Plesk on the source server.
-
Save a copy of a database mentioned in the error message (example_db in the error message from the Symptoms section):
2.1. Go to Websites & Domains > Databases > Export Dump in the database tools pane.
2.2. Save a dump:
To save a dump in a certain directory on the server, select the directory. The home directory of your subscription is used by default.
Select Automatically download dump after creation. -
Log in to Plesk on the target server.
-
Deploy your copy of a database in Plesk:
4.1. Go to Websites & Domains > Databases > Import Dump in the database tools pane.
4.2. Select a dump to deploy:
To deploy a dump from your local computer, select Upload and click Browse. Then select the ZIP archive containing the dump file.
To deploy a dump from a directory on the server, select Import and select the dump file.
To deploy the dump into a newly created database, select Recreate the database. The old database will be deleted and a new one, with the same name, created.
Comments
4 comments
The restore steps make no sense. Should we first manually create the missing domain in the new plesk and then import the db there?
or Maybe steps are different for this error?
is there not any workaround avaible? we need to migrate 400+ databases/sites... :-(
Your insights are always valuable. Keep them coming! URL
Please sign in to leave a comment.