• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Migration: backup_encrypt was finished with exit code 1

Ipswise

New Pleskian
Hello,

I have two dedicated servers with Plesk 11.5.30 #23. The old server is with Debian 6.0.8, the new one with Debian 7.2.
I tried several times to migrate. The migration of all or of individual accounts and domains, however, suggests unfortunately fail. The error is always the same.
The transfer of the data seems to be correct.

Here is the error from log:
[2013-11-21 14:12:52.391|4195] DEBUG: migration dump successfully created: /opt/psa/PMM/var/20131121141015655/backup_info_1311211412.xml
[2013-11-21 14:12:52.412|4195] INFO: Executing <subprocess[4230] '/opt/psa/admin/bin/pmm-ras --get-child-dumps --dump-storage=/opt/psa/PMM/var/20131121141015655/ --dump-specification=backup_info_1311211412.xml --session-path=/opt/psa/PMM/logs'>
[2013-11-21 14:12:52.442|4195] INFO: Execution of <subprocess[4230] '/opt/psa/admin/bin/pmm-ras --get-child-dumps --dump-storage=/opt/psa/PMM/var/20131121141015655/ --dump-specification=backup_info_1311211412.xml --session-path=/opt/psa/PMM/logs'> finished successfully.
[2013-11-21 14:12:52.454|4195] INFO: Executing <subprocess[4231] '/opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/api-cli/backup_encrypt.php --encrypt-by-plesk -files-list /opt/psa/tmp/mh_files_list532 -allow-reset-passwords'>
[2013-11-21 14:12:52.985|4195] INFO: Subprocess raised ExecuteException: Subprocess <subprocess[4231] '/opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/api-cli/backup_encrypt.php --encrypt-by-plesk -files-list /opt/psa/tmp/mh_files_list532 -allow-reset-passwords'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================
The source file is not a valid XML file.
If you supplied an archive file containing a backup from Plesk version 9 or later, then extract the contents of this archive, and process the extracted XML file with the converter.
If you want to convert a backup file from a Plesk version earlier than 9, then you first need to process it with the pre9-backup-convert utility, and then process the resulting file with the pre10-backup-convert utility.


[2013-11-21 14:12:52.989|4195] CRITICAL: Runtime error in migration handler:
<class 'pmmcli_exceptions.PMMUtilityException'> backup_encrypt was finished with exit code 1
Traceback (most recent call last):
File "/opt/psa/admin/share/migration-handler/migration_handler.py", line 1946, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
File "/opt/psa/admin/share/migration-handler/migration_handler.py", line 1828, in migration_start
return MigrationHandlerActionRunner(MigrationStartAction, None, migration_session_id).doActivity()
File "/opt/psa/admin/share/migration-handler/migration_handler.py", line 106, in doActivity
result = self.processor.doActivity()
File "/opt/psa/admin/share/migration-handler/migration_handler.py", line 1050, in doActivity
response_data_task_id, restore_task_id = restore_service.beginRestore()
File "/opt/psa/admin/share/migration-handler/migration_handler_restore.py", line 576, in beginRestore
self.encryptReceivedDump()
File "/opt/psa/admin/share/migration-handler/migration_handler_restore.py", line 571, in encryptReceivedDump
raise PMMUtilityException('backup_encrypt', x)
PMMUtilityException: backup_encrypt was finished with exit code 1

[2013-11-21 14:12:52.990|4195] INFO: Outgoing packet:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>1001</errcode>
<errmsg>Runtime error in migration handler:
&lt;class 'pmmcli_exceptions.PMMUtilityException'&gt; backup_encrypt was finished with exit code 1
Traceback (most recent call last):
File "/opt/psa/admin/share/migration-handler/migration_handler.py", line 1946, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
File "/opt/psa/admin/share/migration-handler/migration_handler.py", line 1828, in migration_start
return MigrationHandlerActionRunner(MigrationStartAction, None, migration_session_id).doActivity()
File "/opt/psa/admin/share/migration-handler/migration_handler.py", line 106, in doActivity
result = self.processor.doActivity()
File "/opt/psa/admin/share/migration-handler/migration_handler.py", line 1050, in doActivity
response_data_task_id, restore_task_id = restore_service.beginRestore()
File "/opt/psa/admin/share/migration-handler/migration_handler_restore.py", line 576, in beginRestore
self.encryptReceivedDump()
File "/opt/psa/admin/share/migration-handler/migration_handler_restore.py", line 571, in encryptReceivedDump
raise PMMUtilityException('backup_encrypt', x)
PMMUtilityException: backup_encrypt was finished with exit code 1
</errmsg>
</response>


Please help.. i have no further ideas. :(


Best regards,
Patrick
 
Last edited:
First of all try to find domain with non-UTF character in settings with:

# grep -ir 'Input is not proper UTF-8' /usr/local/psa/PMM/sessions/

and correct these symbols. After that try migration again.
 
Hi Igor,

thanks for your reply. With this command there is no output. But with this tip I have the idea to check the xml file/files of backup.
For additional information: the enhanced security mode of plesk on both servers are on. On the new server per default (clean install of Plesk) and on the old server since a few month.

The reason for the error is, that some passwords are not correct decrypted and have after decryption not proper UTF-8 chars in xml file.
After a few test it seems, that only the passwords of the mail accounts are affected. All accounts of customer with no email adresses I can migrate without error!
For testing I migrate with all possible options. Only config and content, config and content without mail, ... The error is always the same.
Also I tried to restore a full backup from old server to new server. Here is all fine, but it resets all passwords - this is also not an option.

Additional the contact-information of the customer is wrong - but this causes no error. On the old server there is, as example, an "Max Möller". On the new server the migration transform it to "Max Möller".
At this point I tried to set the default character set and collation in mysql for connection, results, server, system, etc. to UTF-8 and restart the server. But this has no effect, so I deleted this changes now again.

As you can understand, I can't change the password of all of my customer's mail for migration.
Is there any solution for this problem? I need help fast as well, because the contract of the old server quits in the end of november.


Best regards,
Patrick
 
Last edited:
The command from above (UTF-8) does not help to fix the problem.
Please provide a solution to migrate the accounts flawlessly.

Note: we are trying to migrate from RHEL 5 (Plesk 11.5.30 Update #33) to RHEL 6 (Plesk 11.5.30 Update #33)

We receive the following error messages while migrating to the new server.

File:
/usr/local/psa/PMM/msessions/<date-time>/failed-restore.result

Message:
<?xml version="1.0" encoding="UTF-8"?>
<restore status="error" log-location="">
<deploy status="error" log-location="">
<message code="" severity="error" id="">
<description>backup_encrypt was finished with exit code 1</description>
</message>
</deploy>
</restore>


File:
/usr/local/psa/PMM/logs/migration-<date-time>/migration_handler.log

Message:
[2014-02-24 15:01:09.410|1320] INFO: Executing <subprocess[1414] '/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/api-cli/backup_encrypt.php --encrypt-by-plesk -files-list /usr/local/psa/tmp/mh_files_list276 -allow-reset-passwords'>
[2014-02-24 15:01:09.659|1320] INFO: Subprocess raised ExecuteException: Subprocess <subprocess[1414] '/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/api-cli/backup_encrypt.php --encrypt-by-plesk -files-list /usr/local/psa/tmp/mh_files_list276 -allow-reset-passwords'> was finished with exit code 1


== STDERR ====================
The source file is not a valid XML file.
If you supplied an archive file containing a backup from Plesk version 9 or later, then extract the contents of this archive, and process the extracted XML file with the converter.
If you want to convert a backup file from a Plesk version earlier than 9, then you first need to process it with the pre9-backup-convert utility, and then process the resulting file with the pre10-backup-convert utility.


[2014-02-24 15:01:09.660|1320] CRITICAL: Runtime error in migration handler:
<class 'pmmcli_exceptions.PMMUtilityException'> backup_encrypt was finished with exit code 1
Traceback (most recent call last):
File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 1946, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 1828, in migration_start
return MigrationHandlerActionRunner(MigrationStartAction, None, migration_session_id).doActivity()
File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 106, in doActivity
result = self.processor.doActivity()
File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 1050, in doActivity
response_data_task_id, restore_task_id = restore_service.beginRestore()
File "/usr/local/psa/admin/share/migration-handler/migration_handler_restore.py", line 576, in beginRestore
self.encryptReceivedDump()
File "/usr/local/psa/admin/share/migration-handler/migration_handler_restore.py", line 571, in encryptReceivedDump
raise PMMUtilityException('backup_encrypt', x)
PMMUtilityException: backup_encrypt was finished with exit code 1

[2014-02-24 15:01:09.661|1320] INFO: Outgoing packet:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>1001</errcode>
<errmsg>Runtime error in migration handler:
&lt;class 'pmmcli_exceptions.PMMUtilityException'&gt; backup_encrypt was finished with exit code 1
Traceback (most recent call last):
File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 1946, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 1828, in migration_start
return MigrationHandlerActionRunner(MigrationStartAction, None, migration_session_id).doActivity()
File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 106, in doActivity
result = self.processor.doActivity()
File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 1050, in doActivity
response_data_task_id, restore_task_id = restore_service.beginRestore()
File "/usr/local/psa/admin/share/migration-handler/migration_handler_restore.py", line 576, in beginRestore
self.encryptReceivedDump()
File "/usr/local/psa/admin/share/migration-handler/migration_handler_restore.py", line 571, in encryptReceivedDump
raise PMMUtilityException('backup_encrypt', x)
PMMUtilityException: backup_encrypt was finished with exit code 1


Since the migration is from Plesk 11.5 to Plesk 11.5 the error from above does not make much sense.

Please provide a fix as soon as possible.

Many thanks.
 
Last edited:
Back
Top