OpenLDAP with KSE won't run.

James Saint-Rossy, Thomas James.Saint-Rossy at associates.usss.dhs.gov
Mon Oct 18 13:17:15 PDT 2004


I've been to the openldap group and searched the newsgroups/Archives 
without any luck.  Hopefully you guys can help me.  Basically, I'm 
trying to get OpenLDAP to run using threads instead of as a single process.

OS:  5.2.1-RELEASE FreeBSD
OpenLDAP ver: openldap-server-2.2.17 (also tested with 2.2.15)

I can't get slapd with syncrepl to run using KSE threads.  I enabled KSE 
using libmap.conf.  The following is end of the slapd.log with loglevel 
set at 255.  In comparing the log to that of successful startup, without 
kselib, the error appears to be "daemon: select failed (22): Invalid 
argument".  Any ideas what this means?  Do I have to include threading 
support for db-4.2 somehow?  I've also included my libmap.conf and ldd 
output after slapd.log.

Here is the tail end of the slapd.log

> Oct 14 15:25:59 ldap4 slapd[1053]: daemon: select: listen=6 
> active_threads=0 tvp
> =zero
> Oct 14 15:25:59 ldap4 slapd[1053]: daemon: select: listen=7 
> active_threads=0 tvp
> =zero
> Oct 14 15:25:59 ldap4 slapd[1053]: daemon: select failed (22): Invalid 
> argument
> Oct 14 15:25:59 ldap4 slapd[1053]: daemon: abnormal condition, 
> shutdown initiate
> d.
> Oct 14 15:25:59 ldap4 slapd[1053]: daemon: closing 6
> Oct 14 15:25:59 ldap4 slapd[1053]: daemon: closing 7
> Oct 14 15:25:59 ldap4 slapd[1053]: =>do_syncrepl
> Oct 14 15:25:59 ldap4 slapd[1053]: slapd shutdown: waiting for 1 
> threads to term
> inate
> Oct 14 15:25:59 ldap4 slapd[1053]: connection_get(10)
> Oct 14 15:25:59 ldap4 slapd[1053]: connection_get(10): got connid=0
> Oct 14 15:25:59 ldap4 slapd[1053]: daemon: removing 10r
> Oct 14 15:25:59 ldap4 slapd[1053]: slapd shutdown: initiated
> Oct 14 15:25:59 ldap4 slapd[1053]: ====> bdb_cache_release_all
> Oct 14 15:25:59 ldap4 slapd[1053]: slapd shutdown: freeing system 
> resources.
> Oct 14 15:25:59 ldap4 slapd[1053]: slapd stopped.


Here's the shared libs that slapd is using.  Notice that "libc_r.so.5 => 
/usr/lib/libkse.so.1 (0x283e9000)"

> root at ldap4 /usr/local/libexec:ldd slapd
> slapd:
>         libldap_r-2.2.so.7 => /usr/local/lib/libldap_r-2.2.so.7 
> (0x28165000)
>         liblber-2.2.so.7 => /usr/local/lib/liblber-2.2.so.7 (0x2819f000)
>         libdb-4.2.so.2 => /usr/local/lib/libdb-4.2.so.2 (0x281ac000)
>         libssl.so.3 => /usr/local/lib/libssl.so.3 (0x28282000)
>         libcrypto.so.3 => /usr/local/lib/libcrypto.so.3 (0x282b3000)
>         libfetch.so.3 => /usr/lib/libfetch.so.3 (0x283b9000)
>         libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x283c6000)
>         libcrypt.so.2 => /lib/libcrypt.so.2 (0x283c8000)
>         libwrap.so.3 => /usr/lib/libwrap.so.3 (0x283e1000)
>         libc_r.so.5 => /usr/lib/libkse.so.1 (0x283e9000)
>         libc.so.5 => /lib/libc.so.5 (0x2840d000)
>         libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0x284e7000)
>         libssl.so.3 => /usr/lib/libssl.so.3 (0x284fd000)
>         libcrypto.so.3 => /lib/libcrypto.so.3 (0x2852f000)



Here is my libmap.conf.  In addition I've also tried a test making 
libkse the system default with the same results.

> # /etc/libmap.conf
> #
> # candidate             mapping
> #
> libc_r.so.5             libthr.so.1     # Everything uses 'libthr'
> libc_r.so               libthr.so
>
> [/usr/local/libexec/slapd]
> libc_r.so.5             libkse.so.1
> libc_r.so               libkse.so
>
> [slapd]
> libc_r.so.5             libkse.so.1
> libc_r.so               libk

Thanks for any assistance, James.




 



More information about the freebsd-smp mailing list