[Dovecot] Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged
After updating Dovecot, one of my servers keep spamming these errors in the log:
dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Getting size of message UID=4402 failed dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Getting size of message UID=4402 failed dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged
The funny thing is the mailbox is empty, there are no mails in the folder that should be needed to be parsed
It was perfectly fine before I updated, and the permissions on the folder is correct. It only affects some mailboxes as well.
Any ideas?
// Tom
On Sat, 2007-11-03 at 14:20 +0100, Tom Sommer wrote:
After updating Dovecot,
From what version?
one of my servers keep spamming these errors in the log:
dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Getting size of message UID=4402 failed dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Getting size of message UID=4402 failed dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged
The funny thing is the mailbox is empty, there are no mails in the folder that should be needed to be parsed
So cur/ and new/ directories are empty? What does dovecot-uidlist's 4402 entry contain?
Timo Sirainen wrote:
On Sat, 2007-11-03 at 14:20 +0100, Tom Sommer wrote:
After updating Dovecot,
From what version?
1.0 IIRC
one of my servers keep spamming these errors in the log:
dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Getting size of message UID=4402 failed dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Getting size of message UID=4402 failed dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged
The funny thing is the mailbox is empty, there are no mails in the folder that should be needed to be parsed
So cur/ and new/ directories are empty? What does dovecot-uidlist's 4402 entry contain?
uidlist: 1 1153118033 595 589 1193989783.V807I470bdfM493104.mail1.foo.com:2, 590 1193758121.V807I470c85M494072.mail1.foo.com:2, 591 1193765743.V807I470cc9M240678.mail1.foo.com:2, 592 1193830823.V807I470631M932013.mail1.foo.com:2, 593 1193870066.V807I470693M319999.mail1.foo.com:2, 594 1193870277.V807I4706d9M35656.mail1.foo.com:2,
error: dovecot: Nov 04 15:43:57 Error: POP3(X): Getting size of message UID=595 failed dovecot: Nov 04 15:43:57 Error: POP3(X): Getting size of message UID=595 failed dovecot: Nov 04 15:43:57 Error: POP3(X): Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged
new/: total 12 drwxr-xr-x 2 postfix postfix 4096 Nov 3 11:01 . drwxr-xr-x 7 postfix postfix 4096 Nov 4 15:44 .. -rw------- 1 postfix postfix 2783 Nov 2 18:45 1194025559.V807I470cc9M647592.mail1.foo.com:2,
new/: total 8 drwxr-xr-x 2 postfix postfix 4096 Nov 3 11:01 . drwxr-xr-x 7 postfix postfix 4096 Nov 4 15:44 ..
// Tom
Tom Sommer wrote:
dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Getting size of message UID=4402 failed dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Getting size of message UID=4402 failed dovecot: Nov 03 14:14:18 Error: POP3(foo@bar.com): Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged
The funny thing is the mailbox is empty, there are no mails in the folder that should be needed to be parsed
So cur/ and new/ directories are empty? What does dovecot-uidlist's 4402 entry contain?
one of my servers keep spamming these errors in the log:
Did a "rm -f dovecot*" on some of the affected accounts and now it works, kindda annoying that customers got a "Unable to sync mailbox" error due to the above.
// Tom
On Sat, November 3, 2007 22:18, Timo Sirainen wrote:
On Sat, 2007-11-03 at 14:20 +0100, Tom Sommer wrote:
After updating Dovecot,
From what version?
I think it's related to the change in the cache files.
I had a customer who couldn't see any mails in their inbox, what so ever - there were plenty of files in the cur/ folder though.
After a bit of "wtf is going on here", I removed the dovecot* files in the maildir, and then it worked fine.
I think I will take the consequence and simply make a script to nuke all dovecot cache files in my maildir folders.
// Tom
On Mon, 5 Nov 2007, Tom Sommer wrote:
On Sat, November 3, 2007 22:18, Timo Sirainen wrote:
On Sat, 2007-11-03 at 14:20 +0100, Tom Sommer wrote:
After updating Dovecot,
From what version?
I think it's related to the change in the cache files.
I had a customer who couldn't see any mails in their inbox, what so ever - there were plenty of files in the cur/ folder though.
It'd be way nice if Dovecot, upon detecting index etc. insanity, renamed the Dovecot index etc. to dovecot.index.bork and regenerated them.
Of course, it may already do that and I've just not been paying attention. (-:
-- Asheesh.
-- As in certain cults it is possible to kill a process if you know its true name. -- Ken Thompson and Dennis M. Ritchie
participants (3)
-
Asheesh Laroia
-
Timo Sirainen
-
Tom Sommer