Johnny Vestergaard
2006-Aug-26 17:53 UTC
[Dovecot] Reproduced the Login process died too early issue.
Hi. I tried for some time to reproduce the "Login process died too early issue". It seems related to when the system run out of file descriptors, to force the issue i forwarded 3k of messages trough the server(using thunderbird). I also tried with my usual mail application - mail.app, but no luck there. Aug 26 18:46:36 soekris postfix/cleanup[14739]: fatal: accept connection: Too many open files in system Aug 26 18:46:36 soekris dovecot: imap-login: imap-login: can't load library 'libcrypto.so.12.0' Aug 26 18:46:37 soekris dovecot: child 16480 (login) returned error 4 Aug 26 18:46:37 soekris dovecot: child 23241 (login) returned error 4 Aug 26 18:46:37 soekris dovecot: Login process died too early - shutting down Aug 26 18:46:37 soekris dovecot: imap-login: imap-login: can't load library 'libc.so.39.0' Aug 26 18:46:36 soekris postfix/bounce[24767]: fatal: open file bounce 5D0B141743: Too many open files in system /jkv
Daniel Ballenger
2006-Aug-26 19:12 UTC
[Dovecot] Reproduced the Login process died too early issue.
On 8/26/06, Johnny Vestergaard <jkv at unixcluster.dk> wrote:> Hi. > > I tried for some time to reproduce the "Login process died too early > issue". > It seems related to when the system run out of file descriptors, to > force the issue i forwarded 3k of messages trough the server(using > thunderbird). > I also tried with my usual mail application - mail.app, but no luck > there. > > > Aug 26 18:46:36 soekris postfix/cleanup[14739]: fatal: accept > connection: Too many open files in systemThat would be a system limits issue, not a dovecot issue iirc. Youi'll need to raise the limits for fds (file descriptors) in your system for the dovecot user to be higher than it currently is (not really sure what you should raise it to). There may be another way (for instance _maybe_ there's a dovecot option for the config), I'm not sure though. Regards, Daniel -- Daniel Ballenger http://denetron.com Sr. Systems Administrator - Denetron LLC
Timo Sirainen
2006-Aug-26 19:54 UTC
[Dovecot] Reproduced the Login process died too early issue.
On Sat, 2006-08-26 at 19:53 +0200, Johnny Vestergaard wrote:> Hi. > > I tried for some time to reproduce the "Login process died too early > issue". > It seems related to when the system run out of file descriptors, to > force the issue i forwarded 3k of messages trough the server(using > thunderbird).So something leaks file descriptors. Could you check which Dovecot process is leaking them? Assuming Linux, look at /proc/*/fd/ directories where * being pids of dovecot, imap-login and imap processes. I'd guess one of the imap processes has lots of fds to some file? -------------- 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/20060826/8a185b6f/attachment.bin>
Tim Schafer
2006-Aug-28 20:01 UTC
[Dovecot] Reproduced the Login process died too early issue.
Does this look normal, or a sign of a file descriptor leak? This is for the PID of dovecot root 8683 0.0 0.0 1780 648 ? Ss 12:04 0:00 /usr/sbin/dovecot /proc/8683/fd: total 166 lr-x------ 1 root root 64 Aug 28 12:59 0 -> /dev/null lr-x------ 1 root root 64 Aug 28 12:59 1 -> /dev/null lrwx------ 1 root root 64 Aug 28 12:59 10 -> socket:[38738409] lr-x------ 1 root root 64 Aug 28 12:59 100 -> pipe:[38742424] lr-x------ 1 root root 64 Aug 28 12:59 101 -> pipe:[38742543] lr-x------ 1 root root 64 Aug 28 12:59 102 -> pipe:[38791074] lr-x------ 1 root root 64 Aug 28 12:59 103 -> pipe:[38742626] lr-x------ 1 root root 64 Aug 28 12:59 104 -> pipe:[38742678] lr-x------ 1 root root 64 Aug 28 12:59 105 -> pipe:[38742795] lr-x------ 1 root root 64 Aug 28 12:59 106 -> pipe:[38743029] lr-x------ 1 root root 64 Aug 28 12:59 107 -> pipe:[38743206] lr-x------ 1 root root 64 Aug 28 12:59 108 -> pipe:[38748259] lr-x------ 1 root root 64 Aug 28 12:59 109 -> pipe:[38746877] lr-x------ 1 root root 64 Aug 28 12:59 11 -> pipe:[38736404] lr-x------ 1 root root 64 Aug 28 12:59 110 -> pipe:[38743569] lr-x------ 1 root root 64 Aug 28 12:59 111 -> pipe:[38751233] lr-x------ 1 root root 64 Aug 28 12:59 112 -> pipe:[38743700] lr-x------ 1 root root 64 Aug 28 12:59 113 -> pipe:[38745128] lr-x------ 1 root root 64 Aug 28 12:59 114 -> pipe:[38745222] lr-x------ 1 root root 64 Aug 28 12:59 115 -> pipe:[38745581] lr-x------ 1 root root 64 Aug 28 12:59 116 -> pipe:[38745914] lr-x------ 1 root root 64 Aug 28 12:59 117 -> pipe:[38743833] lr-x------ 1 root root 64 Aug 28 12:59 118 -> pipe:[38749189] lr-x------ 1 root root 64 Aug 28 12:59 119 -> pipe:[38745293] l-wx------ 1 root root 64 Aug 28 12:59 12 -> pipe:[38736404] lr-x------ 1 root root 64 Aug 28 12:59 120 -> pipe:[38745431] lr-x------ 1 root root 64 Aug 28 12:59 121 -> pipe:[38753290] lr-x------ 1 root root 64 Aug 28 12:59 122 -> pipe:[38745614] lr-x------ 1 root root 64 Aug 28 12:59 123 -> pipe:[38745795] lr-x------ 1 root root 64 Aug 28 12:59 124 -> pipe:[38745855] lr-x------ 1 root root 64 Aug 28 12:59 125 -> pipe:[38793395] lr-x------ 1 root root 64 Aug 28 12:59 126 -> pipe:[38781326] lr-x------ 1 root root 64 Aug 28 12:59 128 -> pipe:[38761203] lr-x------ 1 root root 64 Aug 28 12:59 129 -> pipe:[38763230] lrwx------ 1 root root 64 Aug 28 12:59 13 -> socket:[38736407] lr-x------ 1 root root 64 Aug 28 12:59 130 -> pipe:[38749542] lr-x------ 1 root root 64 Aug 28 12:59 131 -> pipe:[38752293] lr-x------ 1 root root 64 Aug 28 12:59 132 -> pipe:[38752149] lr-x------ 1 root root 64 Aug 28 12:59 133 -> pipe:[38750478] lr-x------ 1 root root 64 Aug 28 12:59 134 -> pipe:[38750494] lr-x------ 1 root root 64 Aug 28 12:59 135 -> pipe:[38755412] lr-x------ 1 root root 64 Aug 28 12:59 136 -> pipe:[38752188] lr-x------ 1 root root 64 Aug 28 12:59 137 -> pipe:[38752316] lr-x------ 1 root root 64 Aug 28 12:59 138 -> pipe:[38753156] lr-x------ 1 root root 64 Aug 28 12:59 139 -> pipe:[38753334] lrwx------ 1 root root 64 Aug 28 12:59 14 -> socket:[38736440] lr-x------ 1 root root 64 Aug 28 12:59 140 -> pipe:[38761926] lr-x------ 1 root root 64 Aug 28 12:59 141 -> pipe:[38758676] lr-x------ 1 root root 64 Aug 28 12:59 142 -> pipe:[38792354] lr-x------ 1 root root 64 Aug 28 12:59 143 -> pipe:[38753421] lr-x------ 1 root root 64 Aug 28 12:59 144 -> pipe:[38793513] lr-x------ 1 root root 64 Aug 28 12:59 145 -> pipe:[38759449] lr-x------ 1 root root 64 Aug 28 12:59 146 -> pipe:[38754008] lr-x------ 1 root root 64 Aug 28 12:59 147 -> pipe:[38754316] lr-x------ 1 root root 64 Aug 28 12:59 148 -> pipe:[38755237] lr-x------ 1 root root 64 Aug 28 12:59 149 -> pipe:[38764938] lrwx------ 1 root root 64 Aug 28 12:59 15 -> socket:[38736442] lr-x------ 1 root root 64 Aug 28 12:59 150 -> pipe:[38793132] lr-x------ 1 root root 64 Aug 28 12:59 151 -> pipe:[38756617] lr-x------ 1 root root 64 Aug 28 12:59 152 -> pipe:[38774149] lr-x------ 1 root root 64 Aug 28 12:59 153 -> pipe:[38782050] lr-x------ 1 root root 64 Aug 28 12:59 154 -> pipe:[38760977] lr-x------ 1 root root 64 Aug 28 12:59 155 -> pipe:[38761340] lr-x------ 1 root root 64 Aug 28 12:59 156 -> pipe:[38774177] lr-x------ 1 root root 64 Aug 28 12:59 157 -> pipe:[38761452] lr-x------ 1 root root 64 Aug 28 12:59 158 -> pipe:[38766618] lr-x------ 1 root root 64 Aug 28 12:59 159 -> pipe:[38793398] lrwx------ 1 root root 64 Aug 28 12:59 16 -> socket:[38740466] lr-x------ 1 root root 64 Aug 28 12:59 160 -> pipe:[38765052] lr-x------ 1 root root 64 Aug 28 12:59 161 -> pipe:[38765101] lr-x------ 1 root root 64 Aug 28 12:59 162 -> pipe:[38793501] lr-x------ 1 root root 64 Aug 28 12:59 163 -> pipe:[38766870] lr-x------ 1 root root 64 Aug 28 12:59 164 -> pipe:[38779766] lr-x------ 1 root root 64 Aug 28 12:59 165 -> pipe:[38787280] lr-x------ 1 root root 64 Aug 28 12:59 166 -> pipe:[38787431] lr-x------ 1 root root 64 Aug 28 12:59 169 -> pipe:[38784785] lr-x------ 1 root root 64 Aug 28 12:59 17 -> pipe:[38736444] lrwx------ 1 root root 64 Aug 28 12:59 18 -> socket:[38793511] lrwx------ 1 root root 64 Aug 28 12:59 19 -> socket:[38736445] lr-x------ 1 root root 64 Aug 28 12:59 2 -> /dev/null lr-x------ 1 root root 64 Aug 28 12:59 20 -> pipe:[38738126] lr-x------ 1 root root 64 Aug 28 12:59 21 -> pipe:[38738586] lr-x------ 1 root root 64 Aug 28 12:59 22 -> pipe:[38736490] lr-x------ 1 root root 64 Aug 28 12:59 23 -> pipe:[38737137] lr-x------ 1 root root 64 Aug 28 12:59 24 -> pipe:[38737654] lr-x------ 1 root root 64 Aug 28 12:59 25 -> pipe:[38736484] lrwx------ 1 root root 64 Aug 28 12:59 26 -> socket:[38793393] lr-x------ 1 root root 64 Aug 28 12:59 27 -> pipe:[38736634] lr-x------ 1 root root 64 Aug 28 12:59 28 -> pipe:[38736682] lr-x------ 1 root root 64 Aug 28 12:59 29 -> pipe:[38736712] lr-x------ 1 root root 64 Aug 28 12:59 3 -> /dev/null lr-x------ 1 root root 64 Aug 28 12:59 30 -> pipe:[38736733] lr-x------ 1 root root 64 Aug 28 12:59 31 -> pipe:[38736881] lr-x------ 1 root root 64 Aug 28 12:59 32 -> pipe:[38737050] lr-x------ 1 root root 64 Aug 28 12:59 33 -> pipe:[38736939] lr-x------ 1 root root 64 Aug 28 12:59 34 -> pipe:[38737109] lr-x------ 1 root root 64 Aug 28 12:59 35 -> pipe:[38737127] lr-x------ 1 root root 64 Aug 28 12:59 36 -> pipe:[38738561] lr-x------ 1 root root 64 Aug 28 12:59 37 -> pipe:[38737163] lr-x------ 1 root root 64 Aug 28 12:59 38 -> pipe:[38737354] lr-x------ 1 root root 64 Aug 28 12:59 39 -> pipe:[38737459] lr-x------ 1 root root 64 Aug 28 12:59 4 -> /dev/null lr-x------ 1 root root 64 Aug 28 12:59 40 -> pipe:[38737647] lr-x------ 1 root root 64 Aug 28 12:59 41 -> pipe:[38737537] lr-x------ 1 root root 64 Aug 28 12:59 42 -> pipe:[38791093] lr-x------ 1 root root 64 Aug 28 12:59 43 -> pipe:[38737579] lr-x------ 1 root root 64 Aug 28 12:59 44 -> pipe:[38738012] lr-x------ 1 root root 64 Aug 28 12:59 46 -> pipe:[38737715] lr-x------ 1 root root 64 Aug 28 12:59 47 -> pipe:[38738112] lr-x------ 1 root root 64 Aug 28 12:59 48 -> pipe:[38748983] lr-x------ 1 root root 64 Aug 28 12:59 49 -> pipe:[38787129] lrwx------ 1 root root 64 Aug 28 12:59 5 -> socket:[38736397] lr-x------ 1 root root 64 Aug 28 12:59 50 -> pipe:[38738636] lr-x------ 1 root root 64 Aug 28 12:59 51 -> pipe:[38793367] lr-x------ 1 root root 64 Aug 28 12:59 52 -> pipe:[38738099] lr-x------ 1 root root 64 Aug 28 12:59 53 -> pipe:[38738263] lr-x------ 1 root root 64 Aug 28 12:59 54 -> pipe:[38738404] lr-x------ 1 root root 64 Aug 28 12:59 55 -> pipe:[38738557] lr-x------ 1 root root 64 Aug 28 12:59 56 -> pipe:[38770824] lr-x------ 1 root root 64 Aug 28 12:59 57 -> pipe:[38738747] lr-x------ 1 root root 64 Aug 28 12:59 58 -> pipe:[38739970] lr-x------ 1 root root 64 Aug 28 12:59 59 -> pipe:[38738835] lrwx------ 1 root root 64 Aug 28 12:59 6 -> socket:[38736400] lr-x------ 1 root root 64 Aug 28 12:59 60 -> pipe:[38739197] lr-x------ 1 root root 64 Aug 28 12:59 61 -> pipe:[38738769] lr-x------ 1 root root 64 Aug 28 12:59 62 -> pipe:[38770963] lr-x------ 1 root root 64 Aug 28 12:59 63 -> pipe:[38738553] lr-x------ 1 root root 64 Aug 28 12:59 64 -> pipe:[38739683] lr-x------ 1 root root 64 Aug 28 12:59 65 -> pipe:[38743938] lr-x------ 1 root root 64 Aug 28 12:59 66 -> pipe:[38738812] lr-x------ 1 root root 64 Aug 28 12:59 67 -> pipe:[38738926] lr-x------ 1 root root 64 Aug 28 12:59 68 -> pipe:[38738548] lr-x------ 1 root root 64 Aug 28 12:59 69 -> pipe:[38740713] lr-x------ 1 root root 64 Aug 28 12:59 7 -> eventpoll:[38736401] lr-x------ 1 root root 64 Aug 28 12:59 70 -> pipe:[38777465] lr-x------ 1 root root 64 Aug 28 12:59 71 -> pipe:[38739396] lr-x------ 1 root root 64 Aug 28 12:59 72 -> pipe:[38739567] lr-x------ 1 root root 64 Aug 28 12:59 73 -> pipe:[38790176] lr-x------ 1 root root 64 Aug 28 12:59 74 -> pipe:[38793326] lr-x------ 1 root root 64 Aug 28 12:59 75 -> pipe:[38740468] lr-x------ 1 root root 64 Aug 28 12:59 76 -> pipe:[38739634] lr-x------ 1 root root 64 Aug 28 12:59 77 -> pipe:[38739721] lr-x------ 1 root root 64 Aug 28 12:59 78 -> pipe:[38753557] lr-x------ 1 root root 64 Aug 28 12:59 79 -> pipe:[38739945] lr-x------ 1 root root 64 Aug 28 12:59 8 -> pipe:[38736402] lr-x------ 1 root root 64 Aug 28 12:59 80 -> pipe:[38749646] lrwx------ 1 root root 64 Aug 28 12:59 81 -> socket:[38793396] lr-x------ 1 root root 64 Aug 28 12:59 82 -> pipe:[38744102] lr-x------ 1 root root 64 Aug 28 12:59 83 -> pipe:[38740483] lr-x------ 1 root root 64 Aug 28 12:59 84 -> pipe:[38742230] lr-x------ 1 root root 64 Aug 28 12:59 85 -> pipe:[38742972] lr-x------ 1 root root 64 Aug 28 12:59 86 -> pipe:[38793069] lr-x------ 1 root root 64 Aug 28 12:59 87 -> pipe:[38746043] lr-x------ 1 root root 64 Aug 28 12:59 88 -> pipe:[38740635] lr-x------ 1 root root 64 Aug 28 12:59 89 -> pipe:[38740701] l-wx------ 1 root root 64 Aug 28 12:59 9 -> pipe:[38736402] lr-x------ 1 root root 64 Aug 28 12:59 90 -> pipe:[38743576] lr-x------ 1 root root 64 Aug 28 12:59 91 -> pipe:[38740998] lr-x------ 1 root root 64 Aug 28 12:59 92 -> pipe:[38741023] lr-x------ 1 root root 64 Aug 28 12:59 93 -> pipe:[38741325] lr-x------ 1 root root 64 Aug 28 12:59 94 -> pipe:[38741360] lr-x------ 1 root root 64 Aug 28 12:59 95 -> pipe:[38786744] lr-x------ 1 root root 64 Aug 28 12:59 96 -> pipe:[38743013] lr-x------ 1 root root 64 Aug 28 12:59 97 -> pipe:[38793101] lr-x------ 1 root root 64 Aug 28 12:59 98 -> pipe:[38777964] lr-x------ 1 root root 64 Aug 28 12:59 99 -> pipe:[38742363] Regards, Tim Schafer Information Technology Logistics Easier with Technology Freight Solution Providers direct 916-376-6190 10453 Old Placerville Road fax 916-376-6156 Sacramento, CA 95827 tim_schafer at shipfsp.com Timo Sirainen said the following on 8/26/2006 12:54 PM:> On Sat, 2006-08-26 at 19:53 +0200, Johnny Vestergaard wrote: >> Hi. >> >> I tried for some time to reproduce the "Login process died too early >> issue". >> It seems related to when the system run out of file descriptors, to >> force the issue i forwarded 3k of messages trough the server(using >> thunderbird). > > So something leaks file descriptors. Could you check which Dovecot > process is leaking them? Assuming Linux, look at /proc/*/fd/ directories > where * being pids of dovecot, imap-login and imap processes. I'd guess > one of the imap processes has lots of fds to some file? >