Dovecot corrupted indexes
Posted: 14 Jul 2011, 16:33
Posting this here rather than in the RC bug thread as I don't know if it's a problem for anyone else yet.
When migrating from the B2 to B3 I copied all users ~/Mail directories over and since then I've had loads of errors in /var/log/mail.log about corrupted indexes and the like e.g:
A lot of them seem to get fixed automatically but a couple of times it's appeared to my mail clients that I've suddenly got no emails in a particular folder and I've had to delete the relevant index files so they get rebuilt.
Googling around suggests that this might be caused by multiple clients accessing the mailbox simultaneously (and this situation fits - at any one time I've got four or more separate devices polling my mailbox). A suggested fix seems to be to addto dovecot.conf even though this is really only meant to be for clusters and distributed file systems.
These errors haven't cropped up since I added this setting but I'm not ready to say it was definitely successful yet. Anyone else getting this? I will consider asking Excito to add this setting to the B3's default dovecot.conf if it does appear to work.
Thanks.
Darren.
When migrating from the B2 to B3 I copied all users ~/Mail directories over and since then I've had loads of errors in /var/log/mail.log about corrupted indexes and the like e.g:
Code: Select all
Jul 14 06:15:45 serverb3 dovecot: IMAP(darren): /home/darren/Mail/dovecot.index log position went backwards (5,25328 < 5,29860) Jul 14 06:15:46 serverb3 dovecot: IMAP(darren): fscking index file /home/darren/ Mail/dovecot.index Jul 14 06:15:46 serverb3 dovecot: IMAP(darren): fscking index file /home/darren/ Mail/dovecot.index Jul 14 06:20:45 serverb3 dovecot: IMAP(darren): Transaction log file /home/darre n/Mail/dovecot.index.log: marked corrupted Jul 14 08:59:45 serverb3 dovecot: IMAP(darren): Log synchronization error at seq =8,offset=140 for /home/darren/Mail/.Sent/dovecot.index: Append with UID 1192344 775, but next_uid = 3981498798 Jul 14 08:59:45 serverb3 dovecot: IMAP(darren): Log synchronization error at seq =8,offset=17888 for /home/darren/Mail/.Sent/dovecot.index: Append with UID 2208, but next_uid = 3981498798 Jul 14 08:59:45 serverb3 dovecot: IMAP(darren): Log synchronization error at seq =8,offset=18192 for /home/darren/Mail/.Sent/dovecot.index: Append with UID 2209, but next_uid = 3981498798 Jul 14 08:59:45 serverb3 dovecot: IMAP(darren): fscking index file /home/darren/ Mail/.Sent/dovecot.index
Googling around suggests that this might be caused by multiple clients accessing the mailbox simultaneously (and this situation fits - at any one time I've got four or more separate devices polling my mailbox). A suggested fix seems to be to add
Code: Select all
mmap_disable=yes
These errors haven't cropped up since I added this setting but I'm not ready to say it was definitely successful yet. Anyone else getting this? I will consider asking Excito to add this setting to the B3's default dovecot.conf if it does appear to work.
Thanks.
Darren.