[Dovecot] mbox-sync-update.c error
Hi,
I think the problem is in Dovecot. I'm using both Evolution and Thunderbird on a Gentoo box.
One of my folders keeps locking up and the clients can't retrieve the messages. The situation appears to be triggered by trying to move a message into that folder. Deleting the index files (under /var/log/dovecot/xxx/) solves the problem (temporarily).
I get these error messages in the logs:
Mar 31 15:10:34 dovecot: imap(cvicente): mbox sync: UID inserted in the middle of mailbox /home/xxx/Mail/xxx (93 > 3, seq=93, idx_msgs=3455) Mar 31 15:10:34 dovecot: imap(cvicente): file mbox-sync-update.c: line 55 (mbox_sync_move_buffer): assertion failed: (ctx->mail.offset + ctx->mail.space <= ctx->hdr_offset + pos || ctx->mail.offset > ctx->hdr_offset + pos + have) Mar 31 15:10:35 dovecot: child 32373 (imap) killed with signal 6 M
I'm running dovecot-1.0_beta3
Hope this gets some attention from the developers.
cv
On Fri, 2006-03-31 at 15:20 -0800, Carlos Vicente wrote:
Mar 31 15:10:34 dovecot: imap(cvicente): mbox sync: UID inserted in the middle of mailbox /home/xxx/Mail/xxx (93 > 3, seq=93, idx_msgs=3455)
This is the real problem. It shouldn't be happening. Either something outside Dovecot is breaking mboxes in a way Dovecot doesn't expect, or Dovecot's index files are being broken, or locking is broken.
Are you using NFS? What other software than Dovecot touches the mboxes? Do users have direct access to the mboxes? Try changing lock_method=fcntl?
This isn't good, but it's most likely caused by the above problem.
Hi Timo, thanks for replying to this.
Timo Sirainen wrote:
Nothing else is accessing my mboxes other than dovecot.
I am not using NFS and I tried changing the lock_method. The problem persists. It appears to happen each time the mbox contents are modified, i.e. when deleting a message or when moving a message into the problematic folder. BTW, this only happens with one of the folders. I can only fix it (temporarily) by removing the indexes and the lock file.
Any other ideas?
cv
On Sun, 2006-04-02 at 12:35 -0700, Carlos Vicente wrote:
So you can easily reproduce this with an IMAP clien?
Could you put the problematic mbox through http://dovecot.org/tools/mbox-anonymize.pl and send it to me?
Timo Sirainen wrote:
OK - more extensive testing today with
lock_method=fcntl?
Seems to indicate that this overcomes the problem I was having. I will now switch one of my servers (with a small number of users) over to FC5 (which includes dovecot beta3) and see if any problems arise - in which case I let you know!
Many tks for the help and also for the dovecot itself!
-- Robert Hart hartr@interweft.com.au +61 (0)438 385 533 http://www.hart.wattle.id.au
participants (3)
-
Carlos Vicente
-
Robert Hart
-
Timo Sirainen