Issue 7032 - LDAP Server not answering a request
Summary: LDAP Server not answering a request
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.23
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 17:24 UTC by pantelis.petridis@yahoo.com
Modified: 2017-04-07 17:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pantelis.petridis@yahoo.com 2011-08-31 17:24:27 UTC
Full_Name: Pantelis Petridis
Version: 2.4.23
OS: RedHat Enterprise Linux 4 x86_64
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.237.142.6)


I am using OpenLDAP 2.4.23 with the Oracle Berkeley DB backend.
After a few hours the OpenLDAP stops answering an ldapsearch request. The
OpenLDAP server is blocking when I execute a command like the following: 

-> Monitor backend
ldapsearch -H "ldap://127.0.0.1:/1390/" -D cn=monitoring,cn=Monitor -W -b
"cn=Current,cn=Connections,cn=Monitor" -x -s sub '*' '+'

or
-> BDB backend
ldapsearch -H "ldap://127.0.0.1:/1390/" -D cn=Resources -W -b "cn=Resources" -x
-s sub

I can see with
top -Hp  <pid of slapd>
that one thread is working 100%.

With kill -11 I created a corefile and I found out that the thread is in the
cache.c file in line 1367. That is the while loop in back-bdb\cache.c

	while ( busy ) {
		ldap_pvt_thread_yield();
		busy = 0;
		bdb_cache_entryinfo_lock( ei );
		if (( ei->bei_state & ( CACHE_ENTRY_NOT_LINKED |
			CACHE_ENTRY_LOADING | CACHE_ENTRY_ONELEVEL )) ||
			ei->bei_finders > 0 )
			busy = 1;
		bdb_cache_entryinfo_unlock( ei );
	}

It seems that the entry ei can not be deleted from the cache.

I tried also to kill the slapd with executing the following command (many
times)
kill <pid of slapd> 
but it did not work. Only kill -9 <pid of slapd> killed the slapd process.

Do you have some information about what happened? Is there any explanation why
the LDAP Server does not answer an LDAP request? Is there a workaround?

BR
Pantelis
Comment 1 Quanah Gibson-Mount 2011-09-06 00:57:24 UTC
--On Wednesday, August 31, 2011 5:24 PM +0000 pantelis.petridis@yahoo.com 
wrote:


> Do you have some information about what happened? Is there any
> explanation why the LDAP Server does not answer an LDAP request? Is there
> a workaround?

Please confirm whether or not the issue exists in the current OpenLDAP 
release (2.4.26).

Thanks!

--Quanah


--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 2 ando@openldap.org 2011-09-21 20:42:07 UTC
changed state Open to Feedback
Comment 3 Quanah Gibson-Mount 2017-04-07 17:33:03 UTC
Hello,

Due to lack of response, this ITS will be closed.  If you continue to 
encounter the issue with a current build of OpenLDAP, please file a new ITS.

Regards,
Quanah

--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>


Comment 4 OpenLDAP project 2017-04-07 17:33:29 UTC
No response, likely fixed in the 20+ releases since 2.4.23
Comment 5 Quanah Gibson-Mount 2017-04-07 17:33:29 UTC
changed notes
changed state Feedback to Closed