There appears to be some sort of a race condition when accessing a maildir directory for the first time with dovecot. I was getting a non-specific error trying to select INBOX, but when I stepped through it with a debugger it worked. Deleting the dovecot files and running the select again it failed. I started playing with it again just now, and when attempting to access Sent, I actually got some errors: a04 select Sent imap(aarons): Error: Corrupted transaction log file /XX/Maildir/.Sent/dovecot.index.log: unexpected end of file while reading header imap(aarons): Error: Corrupted transaction log file /XX/Maildir/.Sent/dovecot.index.log: unexpected end of file while reading header imap(aarons): Error: Corrupted transaction log file /XX/Maildir/.Sent/dovecot.index.log: unexpected end of file while reading header a04 NO Internal error occurred. Refer to server log for more information. [2007-01-13 16:17:51] I then deleted dovecot.index.log and dovecot.index.log.2 (the only two dovecot files that were present) and retried the select: a04 select Sent a04 NO Internal error occurred. Refer to server log for more information. [2007-01-13 16:23:40] Does anyone more familiar with the code than myself have any pointers of where to concentrate my debugging efforts? Thanks. -Aaron
On Sat, 2007-01-13 at 16:26 -0500, Aaron Solochek wrote:> I then deleted dovecot.index.log and dovecot.index.log.2 (the only two dovecot > files that were present) and retried the select: > > a04 select Sent > > a04 NO Internal error occurred. Refer to server log for more information. > [2007-01-13 16:23:40]Looking at the code, I think this could happen when Dovecot tries to create the log file, then it tries to open it but notices that again it's corrupted. So there's something weird which causes newly created files to be broken. Does it work if you append :INDEX=MEMORY to mail_location? What about if you add :INDEX=/tmp/dovecot-%u or something so that the indexes aren't in AFS? -------------- 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/20070119/5cf57b77/attachment.bin>