[Dovecot] Dovecot 1.1.2
Hello,
I upgraded dovecot to 1.1.2 this weekend and i get those errors: grep dovecot /var/log/net/maillog |grep Panic | cut -d " " -f 11-100| sort | uniq -c | sort -rn 7547 file index-sync.c: line 39: assertion failed: (seq_range_exists(&ibox->recent_flags, uid)) 89 file index-mail.c: line 1091: assertion failed: (! mail->data.destroying_stream) 18 file mbox-sync-rewrite.c: line 590: assertion failed: (mails[idx].from_offset == start_offset) 5 file ostream-file.c: line 533: assertion failed: ((size_t)ret == total_size || !fstream->file) 5 file mbox-lock.c: line 675: assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK) 1 file message-parser.c: line 684: assertion failed: (ctx->part->physical_pos >= ctx->input->v_offset)
My setup is this: 3 servers, all Solaris, running dovecot, share home directiories via NFS, mbox format mailboxes in home directories. Indexes are separate in every server, not shared via NFS. About 20 000 users total.
When old indexes (1.0.15) were present, mailboxes with UID validity problems did not fix themselves, but after i removed index directories in all machines, seems like it started to repair uid validity problems. The first panic seems to be tied to UID validity problems.
Some locking problems may be, because i renamed index directory and created new while dovecot was running.
-- Lauri Jesmin lauri.jesmin@ut.ee Tartu Ülikool
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Lauri, This is a known bug. You can search the dovecot mailing list for "assertion". I'm running on Solaris 10 and see the same errors. So far it doesn't look to be causing my users any problems. I also did apply the patch:
http://hg.dovecot.org/dovecot-1.1/rev/d674c05d725d
Lauri Jesmin wrote:
Hello,
I upgraded dovecot to 1.1.2 this weekend and i get those errors: grep dovecot /var/log/net/maillog |grep Panic | cut -d " " -f 11-100| sort | uniq -c | sort -rn 7547 file index-sync.c: line 39: assertion failed: (seq_range_exists(&ibox->recent_flags, uid)) 89 file index-mail.c: line 1091: assertion failed: (! mail->data.destroying_stream) 18 file mbox-sync-rewrite.c: line 590: assertion failed: (mails[idx].from_offset == start_offset) 5 file ostream-file.c: line 533: assertion failed: ((size_t)ret == total_size || !fstream->file) 5 file mbox-lock.c: line 675: assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK) 1 file message-parser.c: line 684: assertion failed: (ctx->part->physical_pos >= ctx->input->v_offset)
My setup is this: 3 servers, all Solaris, running dovecot, share home directiories via NFS, mbox format mailboxes in home directories. Indexes are separate in every server, not shared via NFS. About 20 000 users total.
When old indexes (1.0.15) were present, mailboxes with UID validity problems did not fix themselves, but after i removed index directories in all machines, seems like it started to repair uid validity problems. The first panic seems to be tied to UID validity problems.
Some locking problems may be, because i renamed index directory and created new while dovecot was running.
C. J. Keist Email: cj.keist@colostate.edu UNIX/Network Manager Phone: 970-491-0630 Engineering Network Services Fax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301
All I want is a chance to prove 'Money can't buy happiness' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIsuUGA29OFr7C6jcRAsDEAKCk62HGyMsVeJvqNmgzCkLml2Qo9wCfZJES OAUleDB2+nFRT2XLSj8YdKM= =hoCU -----END PGP SIGNATURE-----
Ühel kenal päeval, E, 2008-08-25 kell 10:59, kirjutas CJ Keist:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Lauri, This is a known bug. You can search the dovecot mailing list for "assertion". I'm running on Solaris 10 and see the same errors. So far it doesn't look to be causing my users any problems. I also did apply the patch:
I am not sure if this patch helped, but i downgraded dovecot to 1.0.15, this does not generate new problems.
It seems that UID-s break in mailboxes and then thunderbird is starting to show wrong information - UID-s in it's cache do not match those which are in real mailbox and e-mail get wrong information about user and subject.
-- Lauri Jesmin lauri.jesmin@ut.ee Tartu Ülikool
On Mon, 2008-08-25 at 18:39 +0300, Lauri Jesmin wrote:
Hello,
I upgraded dovecot to 1.1.2 this weekend and i get those errors: grep dovecot /var/log/net/maillog |grep Panic | cut -d " " -f 11-100| sort | uniq -c | sort -rn 7547 file index-sync.c: line 39: assertion failed: (seq_range_exists(&ibox->recent_flags, uid))
This should help: http://hg.dovecot.org/dovecot-1.1/rev/8cc0eaec7d0f
89 file index-mail.c: line 1091: assertion failed: (!
mail->data.destroying_stream)
I've seen this before, but I've really no idea how to reproduce it. Can you get a gdb backtrace from this? See http://dovecot.org/bugreport.html
18 file mbox-sync-rewrite.c: line 590: assertion failed:
(mails[idx].from_offset == start_offset)
Either because of an internal bug or because the mbox file changed unexpectedly. Possibly due to NFS read cache issues.
5 file ostream-file.c: line 533: assertion failed: ((size_t)ret ==
total_size || !fstream->file)
This should help: http://hg.dovecot.org/dovecot-1.1/rev/f690d84a9fcb
5 file mbox-lock.c: line 675: assertion failed: (lock_type ==
F_RDLCK || mbox->mbox_lock_type != F_RDLCK)
I'm not sure about this. Can you get gdb backtrace?
1 file message-parser.c: line 684: assertion failed:
(ctx->part->physical_pos >= ctx->input->v_offset)
This should help: http://hg.dovecot.org/dovecot-1.1/rev/1d8bd4bc3038
My setup is this: 3 servers, all Solaris, running dovecot, share home directiories via NFS, mbox format mailboxes in home directories. Indexes are separate in every server, not shared via NFS. About 20 000 users total.
What do you use as NFS server? Does it support nano/microsecond precision in mtimes? Could you post your dovecot -n output? You should use mail_nfs_storage=yes at least.
participants (3)
-
CJ Keist
-
Lauri Jesmin
-
Timo Sirainen