SOLVED The server failed to synchronize “[email protected]”’s mail because an error happened

rardark

Member
Oct 9, 2019
12
5
3
Japan
cPanel Access Level
Root Administrator
Hi All,

I tried to transfer a cpanel account to a new server by transfer tool but I received a following warning:

The server failed to synchronize “[email protected]”’s mail because an error happened: (XID bd3hhg) “/usr/bin/dsync” reported error code “75” when it ended: Cpanel::Exception/(XID 75ajcy) Access Denied at /usr/local/cpanel/Cpanel/CpXferClient.pm line 273. Cpanel::CpXferClient::read_headers_from_socket(Cpanel::CpXferClient=HASH(0xf340d8)) called at /usr/local/cpanel/Cpanel/CLI/DsyncCpsrvdClient.pm line 64 Cpanel::CLI::DsyncCpsrvdClient::run(bin::dsync_cpsrvd_client_whm=HASH(0xa3cb20)) called at bin/dsync_cpsrvd_client_whm.pl line 55 doveadm([email protected])<31740><Yt1kCcEk1GH8ewAA+DqisA>: Error: read(remote) failed: EOF (version not received) doveadm(31740): Error: Remote command returned error 255: /usr/local/cpanel/bin/dsync_cpsrvd_client_whm xxx.xxx.xxx.xxx root 98DAQ8NNLP44XCV4PPB4J1IPKVIJB93S [email protected] server

However, I checked the mailbox of [email protected] and all the mail were successfully transfered. May I ask if this warning can be ignored or not?

Thank you very much!

Tom
 
Last edited:

andrew.n

Well-Known Member
Jun 9, 2020
875
325
63
EU
cPanel Access Level
Root Administrator
If all the mails are there then it can be ignored. The error says that dovecot (IMAP server) returned an error while synchronising the mails:

Error: read(remote) failed: EOF (version not received) doveadm(31740): Error: Remote command returned

Are you transferring from an EOL server like CentOS 6 to a newer server?
 
  • Like
Reactions: cPanelAnthony

rardark

Member
Oct 9, 2019
12
5
3
Japan
cPanel Access Level
Root Administrator
If all the mails are there then it can be ignored. The error says that dovecot (IMAP server) returned an error while synchronising the mails:

Error: read(remote) failed: EOF (version not received) doveadm(31740): Error: Remote command returned

Are you transferring from an EOL server like CentOS 6 to a newer server?
Yea, both old and new server are running CentOS v7.9.2009.

By the way, may I know if I can "Pretransfer" the account to the new server so I can use the option "overwrite" to only update the modified files in order to speed up the migration process?

Thank you very much!

Tom
 
Last edited:

andrew.n

Well-Known Member
Jun 9, 2020
875
325
63
EU
cPanel Access Level
Root Administrator
Overwrite will transfer everything again so unfortunately you can't pre-transfer easily from WHM but manually using rsync.
 

andrew.n

Well-Known Member
Jun 9, 2020
875
325
63
EU
cPanel Access Level
Root Administrator
I was wrong, I apologise. You are absolutely correct. It does rsync the data what has changed and won't transfer everything over again. There was an old thread about this as well:


Sorry for the wrong info
 
  • Like
Reactions: rardark

rardark

Member
Oct 9, 2019
12
5
3
Japan
cPanel Access Level
Root Administrator
I was wrong, I apologise. You are absolutely correct. It does rsync the data what has changed and won't transfer everything over again. There was an old thread about this as well:


Sorry for the wrong info
Never mind, thanks for your reply!

So I believe it is ok to pretransfer the account for speeding up the migration?
 
  • Like
Reactions: andrew.n

rardark

Member
Oct 9, 2019
12
5
3
Japan
cPanel Access Level
Root Administrator
Yes it is certainly!
MailSync
[2022-01-07 21:22:05 +0800] warn [Internal Warning while parsing [stdin] 9333] doveadm(ACCOUNT1): Warning: Maildir /home/ACCOUNT1/mail/[email protected]_com: Expunged message reappeared, giving a new UID (old uid=3598, file=1641462448.M226082P30979.abc.acc.com,S=83153,W=85120)
doveadm(ACCOUNT1): Warning: Maildir /home/ACCOUNT1/mail/[email protected]_com: Expunged message reappeared, giving a new UID (old uid=3599, file=1641462830.M388725P31567.abc.acc.com,S=6481,W=6670)
doveadm(ACCOUNT1): Warning: Maildir /home/ACCOUNT1/mail/[email protected]_com: Expunged message reappeared, giving a new UID (old uid=2650, file=1640402617.M439562P13063.abc.acc.com,S=44893,W=45700:2,S)
doveadm(ACCOUNT1): Warning: Maildir /home/ACCOUNT1/mail/[email protected]_com: Expunged message reappeared, giving a new UID (old uid=2651, file=1640467957.M704303P25559.abc.acc.com,S=16911,W=17173:2,S)
doveadm(ACCOUNT1): Warning: Maildir /home/ACCOUNT1/mail/[email protected]_com: Expunged message reappeared, giving a new UID (old uid=2652,
.
.
.
.
Too many errors from “item-RESTORE_AccountRemoteRoot_ACCOUNT1”. Future errors will be suppressed.
[A warning occurred while processing this directive.]
[A warning occurred while processing this directive.]
[A warning occurred while processing this directive.]
[A warning occurred while processing this directive.]

I got so many duplicated mail after the overwrite process, strange...Do I have to remove all the emails in the new server before transferring?
 
Last edited:

andrew.n

Well-Known Member
Jun 9, 2020
875
325
63
EU
cPanel Access Level
Root Administrator
May I ask if I can remove all emails by deleting all folders and files in /home/user/mail via ssh?
You can easily remove all email accounts from cPanel, that would be safer.
 
  • Like
Reactions: rardark