[Dovecot] consistency issue
Hi there, We have our mail boxes stored on a NFS server and we use maildir for mailbox storage. Some days ago we had a crush and SOME of the mailboxes get an error on QUERY: "EXPUNGE". eg: telnet localhost 143 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. * OK Cabanova Mail ready. A01 LOGIN "hoeschen@***.com" "***" A01 OK Logged in. A01 STATUS "INBOX" (MESSAGES UNSEEN RECENT) * STATUS "INBOX" (MESSAGES 6 RECENT 5 UNSEEN 5) A01 OK Status completed. a01 SELECT "INBOX" * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 6 EXISTS * 5 RECENT * OK [UIDVALIDITY 1143550926] UIDs valid * OK [UIDNEXT 40] Predicted next UID a01 OK [READ-WRITE] Select completed. a01 EXPUNGE * BYE Mailbox is in inconsistent state, please relogin. Connection closed by foreign host. The issue i think it is related to the dovecot dovecot.* files located in the user home. After i delete thoes it works again ! Any clue how this can be solved by not manually deleting the dovecot.* files (index files) ? Thank you for your time ! -- Catalin Constantin Bounce Software http://www.bounce-software.com http://www.cabanova.ro
On Fri, 2006-04-07 at 14:03 +0300, Catalin Constantin wrote:
Some days ago we had a crush and SOME of the mailboxes get an error on QUERY: "EXPUNGE". .. a01 EXPUNGE
- BYE Mailbox is in inconsistent state, please relogin. Connection closed by foreign host.
What does it say in Dovecot's logs? The log files show more informatic error messages when this happens.
The issue i think it is related to the dovecot dovecot.* files located in the user home.
After i delete thoes it works again !
You mean if you don't delete them, this keeps happening every time?
Any clue how this can be solved by not manually deleting the dovecot.* files (index files) ?
You said you use NFS. What Dovecot version? Have you set mmap_disable=yes? What does lock_method contain? 1.0beta4 was the first version where indexes stored in NFS should work well (and even then mmap_disable and lock_method have to be changed from defaults).
On Fri, 2006-04-07 at 14:03 +0300, Catalin Constantin wrote:
Some days ago we had a crush and SOME of the mailboxes get an error on QUERY: "EXPUNGE". .. a01 EXPUNGE
- BYE Mailbox is in inconsistent state, please relogin. Connection closed by foreign host.
What does it say in Dovecot's logs? The log files show more informatic error messages when this happens. I don't see anything special in the logs. No error message.
The issue i think it is related to the dovecot dovecot.* files located in the user home.
After i delete thoes it works again !
You mean if you don't delete them, this keeps happening every time? If i delete the dovecot.* files from the user home dir (index files i guess) the index is recreated on login and all works fine.
Any clue how this can be solved by not manually deleting the dovecot.* files (index files) ?
You said you use NFS. What Dovecot version? Have you set mmap_disable=yes? What does lock_method contain? 1.0beta4 was the first version where indexes stored in NFS should work well (and even then mmap_disable and lock_method have to be changed from defaults).
Dovecot version: 1.0beta3. I've just upgraded to 1.0beta5.
mmap_disable=no (default) lock_method = flock (default)
I will change the mmap settings, what about the lock_method ? Which one is better for nfs ?
Will this solve the corrupt dovecot.* index files (the ones which already have problems) ?
-- Catalin Constantin Bounce Software http://www.bounce-software.com http://www.cabanova.ro
participants (2)
-
Catalin Constantin
-
Timo Sirainen