Hi, other error in "open files": dovecot: Oct 20 10:52:36 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:51 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:51 Error: child 4853 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:53 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:53 Error: child 4898 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:54 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:54 Error: child 4906 (imap) returned error 84 (exec() failed) # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 81919 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 81919 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited We work in "High-performance mode" with login_max_processes_count = 256 Our script "post-login-imap-dovecot" is: #!/bin/sh touch ~/.last_login exec /usr/libexec/dovecot/imap Now, we have this: # lsof -p `cat /var/run/dovecot/master.pid` | wc -l 1018 ?Any idea? Thanks a lot. Bye.
On Tue, 2008-10-21 at 10:47 +0200, Antonio Casado Rodr?guez wrote:> Hi, other error in "open files": > > dovecot: Oct 20 10:52:36 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files > dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 > (exec() failed)This comes from the dovecot master process.> open files (-n) 1024And it's limited by this.> Now, we have this: > # lsof -p `cat /var/run/dovecot/master.pid` | wc -l > 1018So increase ulimit -n before starting Dovecot. What Dovecot version are you using? If v1.1+, doesn't it give a warning at startup that your limit is too low? -------------- 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/20081022/bf7616f7/attachment-0002.bin>
I forgot something, i use dovecot 1.0.15 in RedHat Enterprise Linux 5.0 Do you know the problem? Thank you. Antonio Casado Rodr?guez escribi?:> Hi, other error in "open files": > > dovecot: Oct 20 10:52:36 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open > files > dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 > (exec() failed) > dovecot: Oct 20 10:55:51 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open > files > dovecot: Oct 20 10:55:51 Error: child 4853 (imap) returned error 84 > (exec() failed) > dovecot: Oct 20 10:55:53 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open > files > dovecot: Oct 20 10:55:53 Error: child 4898 (imap) returned error 84 > (exec() failed) > dovecot: Oct 20 10:55:54 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open > files > dovecot: Oct 20 10:55:54 Error: child 4906 (imap) returned error 84 > (exec() failed) > > # ulimit -a > core file size (blocks, -c) 0 > data seg size (kbytes, -d) unlimited > scheduling priority (-e) 0 > file size (blocks, -f) unlimited > pending signals (-i) 81919 > max locked memory (kbytes, -l) 32 > max memory size (kbytes, -m) unlimited > open files (-n) 1024 > pipe size (512 bytes, -p) 8 > POSIX message queues (bytes, -q) 819200 > real-time priority (-r) 0 > stack size (kbytes, -s) 10240 > cpu time (seconds, -t) unlimited > max user processes (-u) 81919 > virtual memory (kbytes, -v) unlimited > file locks (-x) unlimited > > We work in "High-performance mode" with > login_max_processes_count = 256 > > Our script "post-login-imap-dovecot" is: > #!/bin/sh > touch ~/.last_login > exec /usr/libexec/dovecot/imap > > Now, we have this: > # lsof -p `cat /var/run/dovecot/master.pid` | wc -l > 1018 > > ?Any idea? Thanks a lot. > > Bye. >
I forgot something, i use dovecot 1.0.15 in RedHat Enterprise Linux 5.0 Do you know the problem? Thank you.> Hi, other error in "open files": > > dovecot: Oct 20 10:52:36 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open > files > dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 > (exec() failed) > dovecot: Oct 20 10:55:51 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open > files > dovecot: Oct 20 10:55:51 Error: child 4853 (imap) returned error 84 > (exec() failed) > dovecot: Oct 20 10:55:53 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open > files > dovecot: Oct 20 10:55:53 Error: child 4898 (imap) returned error 84 > (exec() failed) > dovecot: Oct 20 10:55:54 Fatal: > execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open > files > dovecot: Oct 20 10:55:54 Error: child 4906 (imap) returned error 84 > (exec() failed) > > # ulimit -a > core file size (blocks, -c) 0 > data seg size (kbytes, -d) unlimited > scheduling priority (-e) 0 > file size (blocks, -f) unlimited > pending signals (-i) 81919 > max locked memory (kbytes, -l) 32 > max memory size (kbytes, -m) unlimited > open files (-n) 1024 > pipe size (512 bytes, -p) 8 > POSIX message queues (bytes, -q) 819200 > real-time priority (-r) 0 > stack size (kbytes, -s) 10240 > cpu time (seconds, -t) unlimited > max user processes (-u) 81919 > virtual memory (kbytes, -v) unlimited > file locks (-x) unlimited > > We work in "High-performance mode" with > login_max_processes_count = 256 > > Our script "post-login-imap-dovecot" is: > #!/bin/sh > touch ~/.last_login > exec /usr/libexec/dovecot/imap > > Now, we have this: > # lsof -p `cat /var/run/dovecot/master.pid` | wc -l > 1018 > > ?Any idea? Thanks a lot. > > Bye.
On 22/10/08 07:43:49, Timo Sirainen wrote:> What Dovecot version are you using? If v1.1+, doesn't it give a > warning > at startup that your limit is too low? >Just so you know dovecot does what you coded it to, yes it gives warning, dovecot -n in normal shell shows it, adn I think once I was lazy and started it without the rc file and was warned as well.