[Dovecot] Index(?) problem under OpenBSD
Hi,
My apologies if this has been mentioned before, I haven't pulled up a google search yet. I run Dovecot from the package under OpenBSD 3.6 (dovecot-0.99.10.8).
The problem I have is that occasionally dovecot corrupts an index file (I think), which causes the process to gradually creep up in usage, until it hits 99%, where it stays, without quitting. If I then fire up my mail client later on, it does the same thing. Doing this two or three times results in 3 processes, all at 33%, and a load of 100 on the server.
The problem is resolved by deleting all the index files in my Maildir.
If this doesn't solve the problem, then duplicating my Maildir and
using the new copy, after deleting all the index files, fixes the
problem. But these only work for a while, and the problem rears it's
head with other users as well, so I need a fix.
Has anybody else suffered this problem? Is there a fix in a more recent version? Is it OpenBSD specific? What can I do to help diagnose the problem? Should I turn of indexes? Upgrade to the latest version?
Some example errors from my logfile:
imap(gaby): Apr 11 15:32:37 Error: Corrupted index file /home/gaby/Maildir/.INBOX/.imap.index: Wrong messages_count in header (261 != 382) imap(gaby): Apr 11 15:32:37 Error: Corrupted index data file /home/gaby/Maildir/.INBOX/.imap.index.data: used_file_size larger than real file size (142368 vs 10264) imap(gaby): Apr 11 15:32:44 Error: Corrupted index file (in-memory index for /home/gaby/Maildir): UIDVALIDITY changed in uidlist imap(gaby): Apr 11 15:36:12 Error: Timeout while waiting for release of shared fcntl() lock for index file /home/gaby/Maildir/.Work.LTSN/.imap.index imap(gaby): Apr 11 16:21:27 Error: Timeout while waiting for release of shared fcntl() lock for index file /home/gaby/Maildir/.Archive.Trash-20050308/.ima imap(gaby): Apr 11 16:25:02 Error: Timeout while waiting for release of shared fcntl() lock for index file /home/gaby/Maildir/.Archive.Trash-20050407/.ima
Gaby
-- Uganda Maximum - Enemy of the English Thrust gaby@vanhegan.net http://weblog.vanhegan.net
On Mon, Apr 11, 2005 at 05:14:48PM +0100, Gaby vanhegan wrote:
The problem I have is that occasionally dovecot corrupts an index file (I think), which causes the process to gradually creep up in usage, until it hits 99%, where it stays, without quitting. If I then fire up my mail client later on, it does the same thing. Doing this two or three times results in 3 processes, all at 33%, and a load of 100 on the server.
Has anybody else suffered this problem? Is there a fix in a more recent version? Is it OpenBSD specific? What can I do to help diagnose the problem? Should I turn of indexes? Upgrade to the latest version?
I had same problems on OpenBSD 3.4, and disabling indexes appeared to work as a workaround. Haven't tried finding any real solution, thou.
Recently on misc@openbsd in thread "secure way to do IMAP" somebody mentioned this problem and suggested (surprise !) disabling indexes.
Also, take a look at this: marc.theaimsgroup.com/?l=openbsd-ports&m=111283606230429&w=2 If you try this patch, please let me know your results.
-- Janusz Gumkowski http://www.am.torun.pl/~ja Janusz.Gumkowski@am.torun.pl
On Mon, 11 Apr 2005 20:47:50 +0200 Janusz Gumkowski <Janusz.Gumkowski@am.torun.pl> wrote:
: : Also, take a look at this: marc.theaimsgroup.com/?l=openbsd-ports&m=111283606230429&w=2 : If you try this patch, please let me know your results.
I'm running an older version of that patch (test63), and it runs great for me. (I just need to update my config file, then I'm jumping to test66.)
On 11 Apr 2005, at 20:21, Peter Hessler wrote:
On Mon, 11 Apr 2005 20:47:50 +0200 Janusz Gumkowski <Janusz.Gumkowski@am.torun.pl> wrote:
: Also, take a look at this: marc.theaimsgroup.com/?l=openbsd-ports&m=111283606230429&w=2 : If you try this patch, please let me know your results.
I'm running an older version of that patch (test63), and it runs great for me. (I just need to update my config file, then I'm jumping to test66.)
Ah, problem is I'm running OpenBSD 3.6 with the package built from ports, so I'm not working against the -current branch, which has the dovecot-0.99.10.8 package.
Should I just build the latest version of dovecot from source?
Alternatively, how do I disable indexing?
Gaby
-- Uganda Maximum - Enemy of the English Thrust gaby@vanhegan.net http://weblog.vanhegan.net
On 11 Apr 2005, at 22:57, Gaby vanhegan wrote:
I'm running an older version of that patch (test63), and it runs great for me. (I just need to update my config file, then I'm jumping to test66.)
Ah, problem is I'm running OpenBSD 3.6 with the package built from ports, so I'm not working against the -current branch, which has the dovecot-0.99.10.8 package.
Sorry, should have mentioned that the patch provided moves the port from:
-DISTNAME= dovecot-0.99.14 +DISTNAME= dovecot-1.0-test66
Which doesn't match my version anyhow... :(
Gaby
-- Uganda Maximum - Enemy of the English Thrust gaby@vanhegan.net http://weblog.vanhegan.net
On Mon, 11 Apr 2005 22:59:38 +0100 Gaby vanhegan <gaby@vanhegan.net> wrote:
: : On 11 Apr 2005, at 22:57, Gaby vanhegan wrote: : : >> I'm running an older version of that patch (test63), and it runs : >> great for me. : >> (I just need to update my config file, then I'm jumping to test66.) : > : > Ah, problem is I'm running OpenBSD 3.6 with the package built from : > ports, so I'm not working against the -current branch, which has the : > dovecot-0.99.10.8 package. : : Sorry, should have mentioned that the patch provided moves the port : from: : : -DISTNAME= dovecot-0.99.14 : +DISTNAME= dovecot-1.0-test66 : : Which doesn't match my version anyhow... :( : : Gaby : : -- : Uganda Maximum - Enemy of the English Thrust : gaby@vanhegan.net : http://weblog.vanhegan.net :
Right. Anything posted to OpenBSD's ports@ must match -current cvs. If I remember I might massage a patch for you from 3.6.
participants (3)
-
Gaby vanhegan
-
Janusz Gumkowski
-
Peter Hessler