Symptoms
- Trying to transfer or re-sync mail accounts using the Site Import extension fails with the following error:
ERROR: PleskMigrationLibV8CommonExceptionNonZeroExitCode: Command returned non-zero exit code. Command: 'plesk-migrator' 'add-mail-migration-tasks' '/opt/psa/var/modules/site-import/sessions/mail-migration-142/config.ini' '--mail-migration-list=/opt/psa/var/modules/site-import/sessions/mail-migration-142/mail_migration_list_2024-05-16-11-46-58.json' '--async-status-report' '--quiet' Exit code: 1 stdout: stderr: (Tool.php:110)
- Errors like the following can be found in the Mail Import debug log (
/usr/local/psa/var/modules/site-import/sessions/mail-migration-XXX/tasks/manager.debug.log
):
=|2024-05-16_11:05:31,236|D|MT|core.cli.common_cli|||MigrationError: Failed to add mail migration tasks for specified mail address pairs
=|2024-05-16_11:05:31,236|D|MT|core.cli.common_cli|||Cause: 'NoneType' object has no attribute 'task_id'
=|2024-05-16_11:05:31,236|D|MT|core.cli.common_cli|||That is a critical error, migration was stopped.
+|2024-05-16_11:05:31,237|E|MT|core.cli.common_cli|||Failed to add mail migration tasks for specified mail address pairs
=|2024-05-16_11:05:31,237|E|MT|core.cli.common_cli|||Cause: 'NoneType' object has no attribute 'task_id'
=|2024-05-16_11:05:31,237|E|MT|core.cli.common_cli|||That is a critical error, migration was stopped.
Cause
Product issue:
-
#PMT-5301 "After the mail import, re-sync of emails no longer fails with the Command returned non-zero exit code error."
Fixed in:- Site Import 1.7.3 17 May 2024