[Dovecot] Unsolved : mbox-sync-rewrite.c : assertion failed
Some days ago I wrote about an inaccessible mailbox after an upgrade from 0.99.14 to 1.0rc10. Today I get this problem with another mailbox but it seems to be it is not only related to the upgrade :
- user comes back from holiday, does not see his inbox :
dovecot: Oct 24 18:51:09 Error: IMAP(abcd): file mbox-sync-rewrite.c: line 405 (mbox_sync_read_and_move): assertion failed: (need_space == (uoff_t)-mails[idx].space)
(he accessed it last with the old dc version)
Solution : moving account to other server, copy everything over to the old account and it worked. This is what I did and afterwards the mailbox was readable.
Now the user goes back to his PC (I made my work from another machine) and opens his mailclient (with the still existing account) and BINGO dovecot crashes again on the mailbox as berfore. Once ist has crashed on it, it than crashes always, even if you make a new account or remove the index. So I suppose it has rather to do with cached information in the client than with the upgrade itself. But nothing the client sends should be able to crash the server !
Hoping for an idea,
Jakob Curdes
On Tue, 2006-10-24 at 19:11 +0200, Jakob Curdes wrote:
dovecot: Oct 24 18:51:09 Error: IMAP(abcd): file mbox-sync-rewrite.c: line 405 (mbox_sync_read_and_move): assertion failed: (need_space == (uoff_t)-mails[idx].space) .. Now the user goes back to his PC (I made my work from another machine) and opens his mailclient (with the still existing account) and BINGO dovecot crashes again on the mailbox as berfore. Once ist has crashed on it, it than crashes always, even if you make a new account or remove the index.
If you still have such a mbox, could you put it though:
http://dovecot.org/tools/mbox-anonymize.pl
And try if it still crashes, and if so send me the mbox? The script replaces pretty much everything with "x" letters, so its output should be pretty safe to send to me.
Otherwise it probably takes a long time for me to figure out a way to reproduce it and fix it.. And currently I don't really have time to even try to do it.
Hi Timo,
On Tue, Oct 24, 2006 at 23:12:46 +0300, Timo Sirainen wrote:
If you still have such a mbox, could you put it though:
I have the same problem (assertion failed in mbox-sync-rewrite.c) and I tried to reproduce the problem with a anonymized mailbox but it didn't work. I am only getting:
Oct 25 07:18:42 tardis dovecot: IMAP(dws): UIDVALIDITY changed (1161752427 -> 1159892018) in mbox file /home/dws/Mail/test2
Whereas, if I open the original mbox file I get:
Oct 25 07:28:09 tardis dovecot: IMAP(dws): UIDs broken with partial sync in mbox file /home/dws/Mail/test Oct 25 07:28:09 tardis dovecot: IMAP(dws): mbox sync: UID inserted in the middle of mailbox /home/dws/Mail/test (10300 > 9604, seq=4, idx_msgs=257) Oct 25 07:28:10 tardis dovecot: IMAP(dws): file mbox-sync-rewrite.c: line 405 (mbox_sync_read_and_move): assertion failed: (need_space == (uoff_t)-mails[idx].space)
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 (3)
-
David Schweikert
-
Jakob Curdes
-
Timo Sirainen