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); -------------- 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/20050614/1a209ed6/attachment-0001.bin>
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