Migration fails when email data is large: Failed to register restored messages

Created:

2017-07-21 11:18:22 UTC

Modified:

2017-08-16 17:11:20 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration fails when email data is large: Failed to register restored messages

Applicable to:

  • Plesk Onyx for Windows

Symptoms

  • Email migration fails when the mail data for the subscription as about 1.4Gb or more:
    Error when restoring mail messages of mailbox 'john.doe@example.com' on the target server.
    Command (mail backup was provided to standard input): "C:\Program Files (x86)\Plesk\var\modules\panel-migrator\sessions\20170721181945\target-server\MailMigrator.exe" restore --account-description-file="C:\Program Files (x86)\Plesk\var\modules\panel-migrator\sessions\20170721181945\target-server\mail\example.com\john.doe\mailbox-description" --log-file="C:\Program Files (x86)\Plesk\var\modules\panel-migrator\sessions\20170721181945\target-server\mail\example.com\john.doe\mail-restore.log"
    Exit code: 0
    Stderr: Failed to register restored messages for mailbox john.doe@example.com. Possible impact: messages could be unavailable via IMAP, or IMAP flags could not be restored. Reason: Server response timeout exceeded.
  • Errors in C:\Program Files (x86)\Plesk\var\modules\panel-migrator\sessions\20170721181945\target-server\mail\example.com\john.doe\mail-restore.log with enabled debug:
    [DEBUG] MigrTcpClient::ReadSocket: MailMigrator.Core.Exceptions.MailMigratorTimeOutException: Server response timeout exceeded.
      at MailMigrator.Providers.TCP.TCPClient.ReadSocket(Int32 count)
    [WARNING] Exception: Server response timeout exceeded.
    [DEBUG] MailMigrator.Core.Exceptions.MailMigratorTimeOutException: Server response timeout exceeded.
      at MailMigrator.Providers.TCP.TCPClient.ReadSocket(Int32 count)
      at MailMigrator.Providers.TCP.TCPClient.ReadBytes(Byte[] data, Int32 offset, Int32 count, Boolean Peek)
      at MailMigrator.Providers.TCP.TCPClient.ReadByteLine(Boolean SkipCLRF)
      at MailMigrator.Providers.TCP.TCPClient.ReadLine()
      at MailMigrator.Providers.TCP.TCPProvider.ReadLine()
      at MailMigrator.Providers.TCP.IMAPProvider.ReadAnswers(String InfoMsg)
      at MailMigrator.Providers.TCP.IMAPProvider.SelectBox(MailAccount MailAccount, String Box)
      at MailMigrator.Providers.MailEnable.MailEnableProvider.RegisterRestoredMessages(MailAccount mailAccount, StringDictionary flags)
      at MailMigrator.MailMigrator.PerformRestore(IDumpReader dumpReader, MailAccount account, IRestoreProvider provider)
    [ERROR] Failed to register restored messages for mailbox john.doe@example.com. Possible impact: messages could be unavailable via IMAP, or IMAP flags could not be restored. Reason: Server response timeout exceeded.

Cause

This is bug with ID PMT-3866 which is planned to be fixed in the next Plesk Migrator update.

Resolution

Until a fix become available, use the following workaround:

  1. Connect to the server using RDP.
  2. Rename %plesk_dir%\var\modules\panel-migrator\thirdparties\MailMigratorWindows_1.6\MailMigrator.exe into MailMigrator.exe.bk
  3. Download and unpack the attached custom fix and place it into %plesk_dir%\var\modules\panel-migrator\thirdparties\MailMigratorWindows_1.6 directory.

Attachments:

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