[Dovecot] Too many open files
Hi Guys,
Just got this on one of my test72 dovecot servers:
Jun 10 12:40:28 svr21 dovecot: auth(default): net_connect_unix(/var/run/dovecot/auth-worker.18818) failed: Too many open files Jun 10 12:40:28 svr21 dovecot: pop3-login: Disconnected: method=PLAIN, rip=xxx.xxx.xxx.xxx, lip=xxx.xxx.xxx.xxx Jun 10 12:40:28 svr21 dovecot: pop3-login: Disconnected: method=PLAIN, rip=xxx.xxx.xxx.xxx, lip=xxx.xxx.xxx.xxx Jun 10 12:40:28 svr21 dovecot: child 18818 (auth) returned error 89 Jun 10 12:40:29 svr21 dovecot: Auth process died too early - shutting down Jun 10 12:40:29 svr21 dovecot: auth(default): mysql: Connected to localhost (maildb) Jun 10 12:40:29 svr21 dovecot: auth(default): net_connect_unix(/var/run/dovecot/auth-worker.13784) failed: No such file or directory Jun 10 12:40:29 svr21 dovecot: child 13784 (auth) returned error 89
Is dovecot leaving files open? Or is it a large mailbox?
Regards Andrew
Andrew Hutchings (A-Wing) Linux Guru - Netserve Consultants Ltd. - http://www.domaincity.co.uk/ Admin - North Wales Linux User Group - http://www.nwlug.org.uk/ BOFH excuse 122: because Bill Gates is a Jehovah's witness and so nothing can work on St. Swithin's day.
On Fri, 2005-06-10 at 12:57 +0100, Andrew Hutchings wrote:
Just got this on one of my test72 dovecot servers:
- Jun 10 12:40:28 svr21 dovecot: auth(default): net_connect_unix(/var/run/dovecot/auth-worker.18818) failed: Too many open files .. Is dovecot leaving files open? Or is it a large mailbox?
Here's a fix: Index: auth-worker-server.c =================================================================== RCS file: /var/lib/cvs/dovecot/src/auth/auth-worker-server.c,v retrieving revision 1.2 diff -u -r1.2 auth-worker-server.c --- auth-worker-server.c 28 May 2005 15:14:12 -0000 1.2 +++ auth-worker-server.c 14 Jun 2005 09:16:54 -0000 @@ -110,6 +110,9 @@ } } + if (close(conn->fd) < 0) + i_error("close(auth worker) failed: %m"); + buffer_free(conn->requests); io_remove(conn->io); i_stream_unref(conn->input);
Hello !
The problem with "Too many open files" has disappeared here when using the version dovecot.i386 1:1.0.9-0_65.fc7 on a system running Fedora 7. With the more recent version dovecot.i386 1:1.0.10-0_66.fc7, the problem occurs again as it did previously.
Thanks a lot ! Claude
On Thu, 2008-01-10 at 07:41 +0100, Claude Frantz wrote:
Hello !
The problem with "Too many open files" has disappeared here when using the version dovecot.i386 1:1.0.9-0_65.fc7 on a system running Fedora 7. With the more recent version dovecot.i386 1:1.0.10-0_66.fc7, the problem occurs again as it did previously.
There's hardly any difference between 1.0.9 and 1.0.10, except if you're using LDAP passdb/userdb. Unless the RPM was packaged differently, I'd say it's just a chance that 1.0.9 happens to (appear to) work and 1.0.10 doesn't.
Timo Sirainen wrote:
The problem with "Too many open files" has disappeared here when using the version dovecot.i386 1:1.0.9-0_65.fc7 on a system running Fedora 7. With the more recent version dovecot.i386 1:1.0.10-0_66.fc7, the problem occurs again as it did previously.
There's hardly any difference between 1.0.9 and 1.0.10, except if you're using LDAP passdb/userdb. Unless the RPM was packaged differently, I'd say it's just a chance that 1.0.9 happens to (appear to) work and 1.0.10 doesn't.
In fact, I'm using LDAP passdb/userdb.
We were running 1.015r (since that is what Redhat distributes)
and had the "Too many open files" problem. We were using PAM at first and then userdb ldap. We upgraded to 1.10 and all seems to be fixed for us now. I have no idea about the in between versions. Upgrading to 1.10 seems to work. Tim
At 03:30 AM 1/10/2008, you wrote:
On Thu, 2008-01-10 at 07:41 +0100, Claude Frantz wrote:
Hello !
The problem with "Too many open files" has disappeared here when using the version dovecot.i386 1:1.0.9-0_65.fc7 on a system running Fedora 7. With the more recent version dovecot.i386 1:1.0.10-0_66.fc7, the problem occurs again as it did previously.
There's hardly any difference between 1.0.9 and 1.0.10, except if you're using LDAP passdb/userdb. Unless the RPM was packaged differently, I'd say it's just a chance that 1.0.9 happens to (appear to) work and 1.0.10 doesn't.
Tim Tyler Network Engineer - Beloit College tyler@beloit.edu
participants (5)
-
Andrew Hutchings
-
Claude Frantz
-
Claude Frantz
-
Tim Tyler
-
Timo Sirainen