I configured dovecot to authenticate through ldap. When for some reason the ldap server is not working dovecot writes this message to the system log: dovecot: auth(default): accept(type 1) failed: Too many open files "Too many open files" is caused by an openldap bug. The serious problem is that dovecot repeats that message a huge number of times, something like 20000 times per second, until the ldap daemon starts working or, more likely, no more disk space remains. -- // Stefano Fedrigo - Develer S.r.l. \X/ http://www.develer.com
On Mon, 2009-08-24 at 11:07 +0200, Stefano Fedrigo wrote:> I configured dovecot to authenticate through ldap. When for some reason the > ldap server is not working dovecot writes this message to the system log: > > dovecot: auth(default): accept(type 1) failed: Too many open files > > "Too many open files" is caused by an openldap bug.Do you know what bug? What does Dovecot log before those errors? I haven't had this problem when LDAP server goes down.> The serious problem is > that dovecot repeats that message a huge number of times, something like 20000 > times per second, until the ldap daemon starts working or, more likely, no more > disk space remains.I guess I could work around it, but then again no one else has had this problem.. It'll be fixed in v2.0 in any case. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090824/19cabae1/attachment-0002.bin>
Timo Sirainen wrote:> On Mon, 2009-08-24 at 11:07 +0200, Stefano Fedrigo wrote: >> I configured dovecot to authenticate through ldap. When for some reason the >> ldap server is not working dovecot writes this message to the system log: >> >> dovecot: auth(default): accept(type 1) failed: Too many open files >> >> "Too many open files" is caused by an openldap bug. > > Do you know what bug? What does Dovecot log before those errors? I > haven't had this problem when LDAP server goes down.Openldap opens many times /lib/libnspr4.so, until hits the max open files limit. I suspect the problem is this one: https://bugzilla.mozilla.org/show_bug.cgi?id=496997 But applying the suggested patch doesn't resolve it. This patch seems to be the cause: https://bugzilla.redhat.com/show_bug.cgi?id=502133#c19 The version of dovecot is on Fedora 11, 1.2.3-1. I see nothing strange in logs before the errors. I turned on "auth_verbose" and "auth_debug" options in case it happens again.>> The serious problem is >> that dovecot repeats that message a huge number of times, something like 20000 >> times per second, until the ldap daemon starts working or, more likely, no more >> disk space remains. > > I guess I could work around it, but then again no one else has had this > problem.. It'll be fixed in v2.0 in any case.Of course the main problem is with Openldap, but such a fix could be very useful to improve system's reliability when using Dovecot. -- // Stefano Fedrigo - Develer S.r.l. \X/ http://www.develer.com
On Mon, 2009-08-24 at 11:07 +0200, Stefano Fedrigo wrote:> I configured dovecot to authenticate through ldap. When for some reason the > ldap server is not working dovecot writes this message to the system log: > > dovecot: auth(default): accept(type 1) failed: Too many open files > > "Too many open files" is caused by an openldap bug. The serious problem is > that dovecot repeats that message a huge number of times, something like 20000 > times per second, until the ldap daemon starts working or, more likely, no more > disk space remains.http://hg.dovecot.org/dovecot-1.2/rev/f56bbf8b33e1 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090906/662e7fba/attachment-0002.bin>