[Dovecot] Subject: IMAP crash on index
I'm running Dovecot 1.2.15 as an IMAP server on an up-to-date Debian v6 VM. I've recently upgraded the server from a pretty crusty old Debian v4 installation, though I don't recall exactly which version of Dovecot that would have been running. I guess I could try crawling through the old logs to check if it is likely to be useful. The upgrade seemed to have gone fine and I've been using the new server for about a week, but this morning I'm finding that whilst I can successfully connect to the IMAP server using Mutt, it can't display a mail index and a quick peek at the logs shows the IMAP process falling over:
(account and server IP replaced)
Jun 6 10:39:27 xen dovecot: Dovecot v1.2.15 starting up (core dumps disabled) Jun 6 10:39:27 xen dovecot: auth-worker(default): mysql: Connected to localhost (mail) Jun 6 10:39:34 xen dovecot: imap-login: Login: user=example@example.org, method=PLAIN, rip=::1, lip=::1, TLS Jun 6 10:39:35 xen dovecot: IMAP(example@example.org): Panic: file mail-index-view.c: line 264 (view_lookup_seq_range): assertion failed: (first_uid > 0) Jun 6 10:39:35 xen dovecot: IMAP(example@example.org): Raw backtrace: imap() [0x80f0e1e] -> imap() [0x80f0e82] -> imap() [0x80f0809] -> imap() [0x80ceb17] -> imap(mail_index_lookup_seq+0x26) [0x80ce5f6] -> imap() [0x80c481d] -> imap(mail_index_modseq_hdr_update+0x2e) [0x80c48ee] -> imap(mail_index_sync_ext_hdr_update+0xbb) [0x80de91b] -> imap(mail_index_sync_record+0x40f) [0x80cd57f] -> imap(mail_index_sync_map+0x2dd) [0x80cdfed] -> imap(mail_index_map+0x5c7) [0x80c3557] -> imap() [0x80bfd87] -> imap(mail_index_open+0x23f) [0x80c01ff] -> imap(index_storage_mailbox_open+0x71) [0x80abc81] -> imap(maildir_storage_sync_init+0x188) [0x8086c18] -> imap(mailbox_sync+0x31) [0x80b59d1] -> imap(imap_status_get+0x8a) [0x806f0ea] -> imap(cmd_status+0x123) [0x8065dd3] -> imap() [0x8067b5c] -> imap() [0x8067c32] -> imap(client_handle_input+0x175) [0x8067eb5] -> imap(client_input+0x5f) [0x80686ef] -> imap(io_loop_handler_run+0xd6) [0x80f9aa6] -> imap(io_loop_run+0x20) [0x80f8f20] -> imap(main+0x5b4) [0x8070f24] -> /lib/i Jun 6 10:39:35 xen dovecot: IMAP(example@example.org): 76] -> imap() [0x80603a1] Jun 6 10:39:35 xen dovecot: dovecot: child 20617 (imap) killed with signal 6 (core dumps disabled)
I've not been able to find any mentions of this error occurring for other people. I've not looked at the source to see what the server is trying to do at this point. Restarting the IMAP service doesn't help.
Any suggestions or advice?
On Mon, 2011-06-06 at 11:09 +0100, Ruan Kendall wrote:
Jun 6 10:39:27 xen dovecot: Dovecot v1.2.15 starting up (core dumps disabled) Jun 6 10:39:35 xen dovecot: IMAP(example@example.org): Panic: file mail-index-view.c: line 264 (view_lookup_seq_range): assertion failed: (first_uid > 0)
rm dovecot.index* from this user's maildirs should fix the crash. There's a good chance this has already been fixed in v2.0.
On 6 June 2011 15:26, Timo Sirainen tss@iki.fi wrote:
rm dovecot.index* from this user's maildirs should fix the crash. There's a good chance this has already been fixed in v2.0.
Deleteing the index files doesn't seem to help; firing up mutt shows me a message saying that the index is being rebuilt but once that process has completed the connection closes and the log shows the same error message as before.
I did consider testing out v2, but alas there are no convenient packages in any of the stable debian releases.
On Mon, 2011-06-06 at 16:17 +0100, Ruan Kendall wrote:
On 6 June 2011 15:26, Timo Sirainen tss@iki.fi wrote:
rm dovecot.index* from this user's maildirs should fix the crash. There's a good chance this has already been fixed in v2.0.
Deleteing the index files doesn't seem to help;
Are you sure you deleted the right index? Each folder has one. This error really should go away with deleting the correct dovecot.index.log file.
firing up mutt shows me a message saying that the index is being rebuilt
That's mutt's index, not Dovecot's.
Ahh, I'd failed to get rid of the index files in all of the subfolders. My bad.
Everything seems to be working fine now. Thanks for your help!
On 6 June 2011 16:29, Timo Sirainen tss@iki.fi wrote:
On Mon, 2011-06-06 at 16:17 +0100, Ruan Kendall wrote:
On 6 June 2011 15:26, Timo Sirainen tss@iki.fi wrote:
rm dovecot.index* from this user's maildirs should fix the crash. There's a good chance this has already been fixed in v2.0.
Deleteing the index files doesn't seem to help;
Are you sure you deleted the right index? Each folder has one. This error really should go away with deleting the correct dovecot.index.log file.
firing up mutt shows me a message saying that the index is being rebuilt
That's mutt's index, not Dovecot's.
participants (2)
-
Ruan Kendall
-
Timo Sirainen