[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: please help with failing test001-slapadd



Hello Keven,

Thanks for sharing your experiences on getting openldap 2.1.25 to test successfully on WinXP (with Cygwin).
After I got stuck a few weeks ago, I kind of gave up on getting OpenLDAP/LDAP to work on Windows as it is not necessarily a fixed requirement for my project (but hoped it could save me the effort of building my own non-standard user database) and I don't have time to get mixed up in too much technical detail. With your input I might consider giving it another try. (Howard Chu suggested the use of MinGW instead of Cygwin, but from a conceptual perspective I had a hard time accepting why that should make a difference... I am afraid that there is a difference after all.)


Yours,
 Jurjan-Paul

Kevin Newman wrote:

Hello list,

I am new to OpenLDAP and am trying to install the stable release 2.1.22 on my WinXP box, with Cygwin (including latest versions of BerkeleyDB (4.1) and OpenSSL (0.9.7c) ).

'configure', 'make depend', and 'make' seem to work fine.

'make test' results in an error on the second test:
slapadd: could not add entry dn="o=University of Michigan,c=US" (line=18): txn_b
egin failed: Invalid argument (22)
slapadd failed (1)!
>>>>> ./scripts/test001-slapadd failed (exit 1)


(full test log below)

I searched the mailing list archives and the faq-o-matic, but did not encounter a similar problem with solution.
The hint to read 'master.log' would not help as 'master.log' is not accessible when slapd is running (and it disappears as soon as slapd is killed).


Any help is greatly appreciated! If necessary I will be happy to provide more details on my setup.

Thanks,
Jurjan-Paul Medema


Full test log: C:\Dev\openldap-2.1.22>make test cd tests; make test make[1]: Entering directory `/cygdrive/c/Dev/openldap-2.1.22/tests' ln: `./data': cannot overwrite directory make[1]: [test-bdb] Error 1 (ignored) ln: `./schema': File exists make[1]: [test-bdb] Error 1 (ignored) ln: `ucdata/liblunicode': File exists make[1]: [test-bdb] Error 1 (ignored) Initiating LDAP tests for BDB... >>>>> Executing all LDAP tests... >>>>> Test Directory: . >>>>> Backend: bdb >>>>> Starting test000-rootdse ... running defines.sh Datadir is ./data Cleaning up in ./test-db... Starting slapd on TCP/IP port 9009... Using ldapsearch to retrieve the root DSE... dn: objectClass: top objectClass: OpenLDAProotDSE structuralObjectClass: OpenLDAProotDSE namingContexts: o=OpenLDAP Project,l=Internet supportedControl: 1.2.826.0.1.334810.2.3 supportedControl: 1.3.6.1.4.1.4203.1.10.1 supportedControl: 1.3.6.1.4.1.4203.1.10.2 supportedControl: 2.16.840.1.113730.3.4.2 supportedControl: 2.16.840.1.113730.3.4.18 supportedExtension: 1.3.6.1.4.1.1466.20037 supportedExtension: 1.3.6.1.4.1.4203.1.11.1 supportedExtension: 1.3.6.1.4.1.4203.1.11.3 supportedFeatures: 1.3.6.1.4.1.4203.1.5.1 supportedFeatures: 1.3.6.1.4.1.4203.1.5.2 supportedFeatures: 1.3.6.1.4.1.4203.1.5.3 supportedFeatures: 1.3.6.1.4.1.4203.1.5.4 supportedFeatures: 1.3.6.1.4.1.4203.1.5.5 supportedLDAPVersion: 3 vendorName: The OpenLDAP Project <http://www.openldap.org/> subschemaSubentry: cn=Subschema

 >>>>> Test succeeded
 >>>>> ./scripts/test000-rootdse completed OK.
 >>>>> waiting 10 seconds for things to exit

>>>>> Starting test001-slapadd ...
running defines.sh
Datadir is ./data
Cleaning up in ./test-db...
Running slapadd to build slapd database...
slapadd: could not add entry dn="o=University of Michigan,c=US" (line=18): txn_b
egin failed: Invalid argument (22)
slapadd failed (1)!
>>>>> ./scripts/test001-slapadd failed (exit 1)
make[1]: *** [test-bdb] Error 1
make[1]: Leaving directory `/cygdrive/c/Dev/openldap-2.1.22/tests'
make: *** [test] Error 2


----- ---- --- -- - - - - - - - -
J.P. Medema
T: +31 30 6961263
E: jp.medema@kincite.com
----- ---- --- -- - - - - - - - -


Hi Medema,

I was having a similar problem with testing OpenLDAP 2.1.25 on W2K and cygwin. I got a number of helpful hints after reading this thread . I noticed that the log.000000001 file remained locked after the first test. It appears that there is problem with the kill -HUP $PID command in the test scripts. I went into the tests/scripts directory and typed:
perl -pi.bak -e 's/-HUP/-f/' test0??-*
then moved the .bak files (the original tests) into a backup directory (if you don't they will get executed when you run make test). I also did this "experiment" with -9 and that also works. Now the only problem is that test016-subref is failing. I'll post the details of test016 under a different thread.


Hope this helps..

kln






-- ----- ---- --- -- - - - - - - - - J.P. Medema T: +31 30 6961263 E: jp.medema@kincite.com ----- ---- --- -- - - - - - - - -