ldap connection failed / reason:emfile / ssl_esock issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ejabberd (Debian) |
Fix Released
|
Unknown
|
|||
ejabberd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I upgraded to the ejabberd package in universe (2.0.1-2~hardy1)
After running for a few days, I get this in my ejabberd.log:
=ERROR REPORT==== 2009-03-14 08:53:17 ===
W(<0.364.
In State: active
=INFO REPORT==== 2009-03-14 08:53:17 ===
I(<0.364.
=ERROR REPORT==== 2009-03-14 08:57:17 ===
W(<0.278.
In State: active
The next two lines repeat until I kill the ssl_esock process, then things start working normally again:
=INFO REPORT==== 2009-03-14 08:57:17 ===
I(<0.278.
=ERROR REPORT==== 2009-03-14 08:57:17 ===
E(<0.278.
Reason: emfile
This appears to be due ssl_esock using up more and more connections when the Windows AD/LDAP server closes the connection.
More and more sockets are used up, eventually they are unable to allocate more.
Changed in ejabberd (Debian): | |
status: | Unknown → Fix Released |
Changed in ejabberd (Ubuntu): | |
status: | Confirmed → Fix Released |
As a workaround, I added this to my crontab:
@daily killall ssl_esock
I can reproduce this fairly constantly--it just takes a few days to show up.
Downgrading to the earlier version of ejabberd did not fix the problem.