ldap connection failed / reason:emfile / ssl_esock issue

Bug #346140 reported by Aaron C. de Bruyn
20
This bug affects 3 people
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.0>:eldap:566) : LDAP server closed the connection: lv-server.smiles.local:636
In State: active

=INFO REPORT==== 2009-03-14 08:53:17 ===
I(<0.364.0>:eldap:898) : LDAP connection on lv-server.smiles.local:636

=ERROR REPORT==== 2009-03-14 08:57:17 ===
W(<0.278.0>:eldap:566) : LDAP server closed the connection: lv-server.smiles.local:636
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.0>:eldap:898) : LDAP connection on lv-server.smiles.local:636

=ERROR REPORT==== 2009-03-14 08:57:17 ===
E(<0.278.0>:eldap:915) : LDAP connection failed on lv-server.smiles.local:636
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.

Revision history for this message
Aaron C. de Bruyn (darkpixel2k) wrote :

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.

Revision history for this message
Walter Huf (hufman) wrote :

Debian upstream fixed it in ejabberd_2.0.1-3, while my computer is running ejabberd_2.0.1-2
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490059#84
Can we have this backported?

Changed in ejabberd (Debian):
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ejabberd (Ubuntu):
status: New → Confirmed
Changed in ejabberd (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.