[Dovecot] Assertion failure with Dovecot 1.0rc10
Hi,
I am seeing the following (with Dovecot 1.0 rc10):
Oct 18 07:35:58 dovecot: IMAP(user): UIDs broken with partial sync in mbox file /var/mail/user Oct 18 07:35:58 dovecot: IMAP(user): mbox sync: UID inserted in the middle of mailbox /var/mail/user (15314 > 9604, seq=5, idx_msgs=224) Oct 18 07:35:59 dovecot: IMAP(user): file mbox-sync-rewrite.c: line 405 (mbox_sync_read_and_move): assertion failed: (need_space == (uoff_t)-mails[idx].space) Oct 18 07:37:42 dovecot: IMAP(user): mbox sync: UID inserted in the middle of mailbox /var/mail/user (15314 > 9604, seq=5, idx_msgs=224)
Any idea of what this could be?
The user is reporting that he is seeing multiple times the same mails and that the new flag is not being unset after he reads a mail.
Cheers David
David Schweikert | phone: +41 44 632 7019 System manager ISG.EE | walk: ETH Zentrum, ETL F24.1 ETH Zurich, Switzerland | web: http://people.ee.ethz.ch/dws
Hi,
Maybe the following additional information can help in debugging... The error messages were:
Oct 18 07:35:58 dovecot: IMAP(user): UIDs broken with partial sync in mbox file /var/mail/user Oct 18 07:35:58 dovecot: IMAP(user): mbox sync: UID inserted in the middle of mailbox /var/mail/user (15314 > 9604, seq=5, idx_msgs=224) Oct 18 07:35:59 dovecot: IMAP(user): file mbox-sync-rewrite.c: line 405 (mbox_sync_read_and_move): assertion failed: (need_space == (uoff_t)-mails[idx].space) Oct 18 07:37:42 dovecot: IMAP(user): mbox sync: UID inserted in the middle of mailbox /var/mail/user (15314 > 9604, seq=5, idx_msgs=224)
We just switched from UW-IMAP to Dovecot, so the mailbox has been created by UW-IMAP.
It doesn't help if I delete the dovecot indexes and kill the user's dovecot process.
It doesn't help if I copy all the mails singularly from the old folder to a new folder (with mutt).
It helps to move the folder away and start with an empty folder.
Maybe it has something to do with the X-UID headers by UW-IMAP? I noticed that the folder contains mails with duplicate X-UID headers.
Attached is the output of 'grep X-UID /var/mail/user'.
Next time that this happens, I will try to grep out all the X-UID headers from the mailbox.
Cheers David
David Schweikert | phone: +41 44 632 7019 System manager ISG.EE | walk: ETH Zentrum, ETL F24.1 ETH Zurich, Switzerland | web: http://people.ee.ethz.ch/dws
participants (1)
-
David Schweikert