Justin McAleer
2007-Mar-16 13:01 UTC
[Dovecot] corrupted transaction log error resulting in multiple deliveries
I'm finally picking my dovecot project back up now, and after upgrading rc19 to rc27, I sent a test message to an existing account which resulted in log entries like these: Mar 16 08:45:37 node7 deliver(user at example.com): Corrupted transaction log file /var/indexes/example/com/u/us/user/.INBOX/dovecot.index.log: Append with UID 3, but next_uid = 15368 Mar 16 08:45:37 node7 deliver(user at example.com): msgid=<20070316124031.8F089D39A5 at node7.neonova.net>: save failed to INBOX Mar 16 08:45:37 node7 postfix/pipe[29267]: 8F089D39A5: to=<user at example.com>, relay=dovecot, delay=306, delays=306/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure) So, as you can see deliver has the problem and defers delivery. Is dovecot supposed to be able to recover from a corrupted log file on its own? It repeated this until I manually wiped out the index directory (didn't try just removing the log files first, sorry). The kicker is that deliver actually did save the message to the inbox every time, so multiple copies were delivered (every time I flushed the queue until it was actually fixed, a copy was delivered). I have my mail directories on an NFS mount, and indexes on localdisk, FYI.
Timo Sirainen
2007-Mar-16 16:12 UTC
[Dovecot] corrupted transaction log error resulting in multiple deliveries
On Fri, 2007-03-16 at 09:01 -0400, Justin McAleer wrote:> Mar 16 08:45:37 node7 deliver(user at example.com): Corrupted transaction > log file /var/indexes/example/com/u/us/user/.INBOX/dovecot.index.log: > Append with UID 3, but next_uid = 15368..> So, as you can see deliver has the problem and defers delivery. Is > dovecot supposed to be able to recover from a corrupted log file on its > own? It repeated this until I manually wiped out the index directoryYes, it's supposed to recover from that. I couldn't reproduce this. It always fixed the problem with the next try, or 3rd try at latest. If this happens again, could you send me the dovecot.index and dovecot.index.log files? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070316/cfc9f590/attachment.bin>