Solved dovecot - cannot resync between two servers

IPTRACE

Well-Known Member

Reaction score: 20
Messages: 257

Hello!

Did someone encounter the following issue?
I cannot resync mails between two servers (Dovecot v2.3.4).

I used as follow on both machines:
Code:
# service dovecot stop
# rm -Rd /home/user/Maildir/index
# service dovecot start
# sudo doveadm sync -u user tcp:imap11.server
# sudo doveadm sync -u user tcp:imap21.server
I see the below errors on one of the server (imap11.server).
Code:
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Error: Mailbox INBOX: UID=18464: read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464) (read reason=mail stream)
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Error: Corrupted record in index cache file /home/user/Maildir/index/.INBOX/dovecot.index.cache: UID 18464: Broken physical size in mailbox INBOX: read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464)
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Error: Mailbox INBOX: Saving mail: save: read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464)
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Error: Mailbox INBOX: copy: i_stream_read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464)
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Error: Mailbox INBOX: UID=18464: read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464) (read reason=copying)
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Error: Mailbox INBOX: UID=18464: read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464) (read reason=copying)
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Warning: Failed to copy mail from UID=18464: Mailbox INBOX: UID=18464: read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464) (read reason=copying) - falling back to other means
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Error: Mailbox INBOX: UID=18464: read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464) (read reason=copying)
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Warning: Failed to copy source UID=18464 mail: Mailbox INBOX: UID=18464: read(/home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S) failed: Cached message size larger than expected (23576 > 0, box=INBOX, UID=18464) (read reason=copying) - falling back to regular saving
dsync-local(user)<WEvKGApfVFxe4AAA0bNjvw>: Panic: file dsync-ibc.c: line 166 (dsync_ibc_send_mail_request): assertion failed: (request->guid != NULL || request->uid != 0)
And another error on the second one.
Code:
dovecot[60160]: dsync-local(user)<1idMA4ZgVFx3UQEAqOpULw>: Error: read(imap11) failed: EOF (last sent=mail_request (EOL), last recv=mail_request)
Thank you for any help or suggestions.
 
OP
OP
IPTRACE

IPTRACE

Well-Known Member

Reaction score: 20
Messages: 257

Solved.
I've just deleted the file /home/user/Maildir/cur/1548758927.M613873P4465.imap21.server,S=23576,W=23972:2,S and then everything just started to work.
This file had 0 bytes of size.
 
Top