Issue 226 - Test 001 fails, ldapsearch hangs
Summary: Test 001 fails, ldapsearch hangs
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-12 04:06 UTC by bcoons@anet.com
Modified: 2014-08-01 21:06 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 bcoons@anet.com 1999-07-12 04:06:48 UTC
Full_Name: Brian Coons
Version: 1.2.3 release
OS: Linux 2.2.9 redhat6.0
URL: ftp://ftp.openldap.org/incoming/Brian-Coons-990711.ext
Submission from: (NULL) (207.227.148.89)


./configure --with-ldbm-api=gdbm
make depend
make

compiles fine but when I did cd tests and make I got this:

[tests]# make
ln: ./data: cannot overwrite directory
make: [all-local] Error 1 (ignored)
Initiating LDAP tests...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Backend: ldbm
>>>>> Starting test001-ldif2ldbm ...
running defines.sh . ldbm
Datadir is ./data
Cleaning up in ./test-db...
Running ldif2ldbm to build slapd database...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
ldapsearch failed!
>>>>> ./scripts/test001-ldif2ldbm failed (exit 1)
make: *** [all-local] Error 1


Then on subsequent tries with make in the tests directory:

[tests]# make
ln: ./data: cannot overwrite directory
make: [all-local] Error 1 (ignored)
Initiating LDAP tests...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Backend: ldbm
>>>>> Starting test001-ldif2ldbm ...
running defines.sh . ldbm
Datadir is ./data
Cleaning up in ./test-db...
Running ldif2ldbm to build slapd database...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve all the entries...

and it hangs there.

Thanks
Brian
Comment 1 Kurt Zeilenga 1999-07-16 20:44:08 UTC
changed state Open to Feedback
Comment 2 Kurt Zeilenga 1999-07-20 19:21:29 UTC
You might try OPENLDAP_REL_ENG_1_2 (available from AnonCVS) or
1.2.4 with this patch:

http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/daemon.c.diff?r1=1.14.2.7.2.8&r2=1.14.2.7.2.9



Comment 3 bcoons@anet.com 1999-07-21 00:29:21 UTC
Kurt Zeilenga wrote:
> 
> You might try OPENLDAP_REL_ENG_1_2 (available from AnonCVS) or
> 1.2.4 with this patch:
> 
> http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/daemon.c.diff?r1=1.14.2.7.2.8&r2=1.14.2.7.2.9

same problem with OPENLDAP_REL_ENG_1_2
Thanks though,
Brian
Comment 4 Kurt Zeilenga 1999-07-21 01:20:04 UTC
At 12:21 AM 7/21/99 GMT, bcoons@anet.com wrote:
>Kurt Zeilenga wrote:
>> 
>> You might try OPENLDAP_REL_ENG_1_2 (available from AnonCVS) or
>> 1.2.4 with this patch:
>> 
>> http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/daemon.c.diff?r1=1.14.2.7.2.8&r2=1.14.2.7.2.9
>
>same problem with OPENLDAP_REL_ENG_1_2

No hint in test-db/master.log as to what's going wrong?
Comment 5 Kurt Zeilenga 1999-07-21 16:54:14 UTC
Suggest checking 'netstat -f inet' to ensure port 9009 is not in use.
Suggest checking 'ps -xa' to ensure no errant slapd is running.

Set SLAPD_DEBUG environment variable to 13.

Then run the test suite once.  Example netstat/ps to see if slapd
is still active after failure.  Examine test-db/master.log and
test-db/ldapsearch.out for hints of what might be going wrong.

If no hints, repeat with SLAPD_DEBUG set to 255.  This will generate
LOTS of output.

Kurt
Comment 6 bcoons@anet.com 1999-07-22 00:16:28 UTC
I didn't change the .conf files is that a problem?  The INSTALL didn't
say I had to before running the tests.

Kurt Zeilenga wrote:
> 
> Suggest checking 'netstat -f inet' to ensure port 9009 is not in use.

netstat does show 9009 when doing the tests:

[b-coons]$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address        
State      
tcp        0      1 Nap-OEC.Max2-143.a:1068 localhost:9009         
SYN_SENT    
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  1      [ ]         STREAM     CONNECTED     416    @00000037

and it does not show 9009 active after the tests fail.

> Suggest checking 'ps -xa' to ensure no errant slapd is running.
no errant slapd's

> 
> Set SLAPD_DEBUG environment variable to 13.
> 
> Then run the test suite once.  Example netstat/ps to see if slapd
> is still active after failure.

slapd is not active after failure.
  
> Examine test-db/master.log and
> test-db/ldapsearch.out for hints of what might be going wrong.
> 
> If no hints, repeat with SLAPD_DEBUG set to 255.  This will generate
> LOTS of output.
I did 255 and get this:

[test-db]# tail -f master.log 
line 16 (suffix         "o=University of Michigan, c=US")
line 17 (directory      ./test-db)
line 18 (rootdn         "cn=Manager, o=University of Michigan, c=US")
line 19 (rootpw         secret)
line 20 (index          cn,sn,uid       pres,eq,approx)
line 21 (index          default         none)
line 22 (lastmod                on)
slapd starting
listening for connections on 9, activity on:
before select active_threads 0

[test-db]# ls -l ldapsearch.out
-rw-rw-r--   1 root     root            0 Jul 21 19:05 ldapsearch.out


and here is the whle tests-db directory:
[test-db]# ls -l
total 174
-rw-rw-r--   1 root     root            3 Jul 21 19:08 NEXTID
-rw-------   1 root     root        13672 Jul 21 19:05 cn.gdbm
-rw-------   1 root     root        39598 Jul 21 19:05 dn.gdbm
-rw-------   1 root     root        13659 Jul 21 19:05 dn2id.gdbm
-rw-------   1 root     root        12565 Jul 21 19:05 id2children.gdbm
-rw-------   1 root     root        26836 Jul 21 19:05 id2entry.gdbm
-rw-rw-r--   1 root     root            0 Jul 21 19:05 ldapsearch.out
-rw-rw-r--   1 root     root        14915 Jul 21 19:08 master.log
-rw-------   1 root     root        14026 Jul 21 19:05 objectclass.gdbm
-rw-rw-r--   1 root     root           67 Jul 21 19:05 slapd.args
-rw-rw-r--   1 root     root            4 Jul 21 19:05 slapd.pid
-rw-------   1 root     root        12774 Jul 21 19:05 sn.gdbm
-rw-------   1 root     root        12742 Jul 21 19:05 uid.gdbm

Thanks,
Brian
Comment 7 bcoons@anet.com 1999-07-24 17:21:59 UTC
Sorry to put you through all of that.  It turns out my localhost
interface was not working right.  Everything works now.

Thank you
Brian
Comment 8 Kurt Zeilenga 1999-07-24 18:26:46 UTC
changed notes
changed state Feedback to Closed
Comment 9 OpenLDAP project 2014-08-01 21:06:08 UTC
User resolved problem (localhost interface).