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

server aborts after one query




Hi,

I have openldap-2.0.27-2.7.3 running on redhat 7.2, using the RPMs from redhat network. The only thing that it's doing is feeding the horde/turba shared address book for our web mail (imp). (Horde is version 2.1-3, turba is 1.1-2.) Everything was fine for months. Then we had to replace some hard drives, so we backed up, reinstalled, and restored from the backups, and now we have this one problem:

Everything starts up ok, and when you go into turba and do a query to the shared address book, it comes back with the answer, no problem ... and then slapd shuts itself down. I've quoted the output from running "slapd -d 1" below.

I'm thinking that, given the steps that led up to this, there may be some file somewhere that's missing, or corrupted, or has the wrong permissions or something. But I've tried removing all the ldap RPMs and installing them fresh, and no difference.

Any help is welcome.  Thanks!

-Andy
rowan at ocean dot rutgers dot edu


PACKAGE DETAILS (system is redhat linux 7.2 on i386, using the standard stuff from redhat network):
openldap-2.0.27-2.7.3
openldap-servers-2.0.27-2.7.3
openldap-devel-2.0.27-2.7.3
openldap-clients-2.0.27-2.7.3
php-ldap-4.1.2-7.2.6
openldap12-1.2.13-8
nss_ldap-189-4




Output from slapd -d 1: (that error about socket() has always been there, (why?) even when things were working fine)

@(#) $OpenLDAP: slapd 2.0.27-Release (Fri Dec 13 15:33:07 EST 2002) $
root@bugs.devel.redhat.com:/usr/src/build/181086-i386/BUILD/openldap-2.0.27/build-krb5/servers/slapd
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: socket() failed errno=97 (Address family not supported by protocol)
daemon: initialized ldap:///
daemon_init: 1 listeners opened
slapd init: initiated server.
slap_sasl_init: initialized!
slapd startup: initiated.
slapd starting
ldap_pvt_gethostbyname_a: host=www.thewatershed.org, r=0
connection_get(7): got connid=0
connection_read(7): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 52 contents:
do_bind
ber_scanf fmt ({iat) ber:
ber_scanf fmt (o}) ber:
do_bind: version=3 dn="cn=admin,dc=thewatershed,dc=org" method=128
dn2entry_r: dn: "CN=ADMIN,DC=THEWATERSHED,DC=ORG"
=> dn2id( "CN=ADMIN,DC=THEWATERSHED,DC=ORG" )
=> ldbm_cache_open( "/var/lib/ldap/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (opened 0)
<= dn2id 2
=> id2entry_r( 2 )
=> ldbm_cache_open( "/var/lib/ldap/id2entry.gdbm", 34, 600 )
<= ldbm_cache_open (opened 1)
=> str2entry
<= str2entry(cn=admin,dc=thewatershed,dc=org) -> -1 (0x8114058)
<= id2entry_r( 2 ) 0x8114058 (disk)
====> cache_return_entry_r( 2 ): created (0)
do_bind: v3 bind: "cn=admin,dc=thewatershed,dc=org" to "cn=admin,dc=thewatershed,dc=org"
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 7
ber_get_next
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
connection_get(7): got connid=0
connection_read(7): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 175 contents:
do_search
ber_scanf fmt ({aiiiib) ber:
ber_scanf fmt ({oo}) ber:
ber_scanf fmt ({o) ber:
ber_scanf fmt (O) ber:
ber_scanf fmt ({v}}) ber:
=> ldbm_back_search
dn2entry_r: dn: "DC=THEWATERSHED,DC=ORG"
=> dn2id( "DC=THEWATERSHED,DC=ORG" )
=> ldbm_cache_open( "/var/lib/ldap/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id 1
=> id2entry_r( 1 )
=> ldbm_cache_open( "/var/lib/ldap/id2entry.gdbm", 34, 600 )
<= ldbm_cache_open (cache 1)
=> str2entry
<= str2entry(dc=thewatershed,dc=org) -> -1 (0x8113e18)
<= id2entry_r( 1 ) 0x8113e18 (disk)
search_candidates: base="DC=THEWATERSHED,DC=ORG" s=2 d=0
=> filter_candidates
=> list_candidates 0xa0
=> filter_candidates
=> dn2idl( "@DC=THEWATERSHED,DC=ORG" )
=> ldbm_cache_open( "/var/lib/ldap/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= filter_candidates 85
=> filter_candidates
=> list_candidates 0xa1
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "/var/lib/ldap/nextid.gdbm", 34, 600 )
<= ldbm_cache_open (opened 2)
=> ldbm_cache_open( "/var/lib/ldap/objectClass.gdbm", 34, 600 )
<= ldbm_cache_open (opened 3)
=> key_read
<= index_read 0 candidates
<= equality_candidates NULL
<= equality_candidates 0
<= filter_candidates 0
=> filter_candidates
=> list_candidates 0xa0
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "/var/lib/ldap/objectClass.gdbm", 34, 600 )
<= ldbm_cache_open (cache 3)
=> key_read
<= index_read 80 candidates
<= equality_candidates 80
<= filter_candidates 80
=> filter_candidates
=> list_candidates 0xa1
=> filter_candidates
=> list_candidates 0xa1
=> filter_candidates
=> substrings_candidates
=> ldbm_cache_open( "/var/lib/ldap/cn.gdbm", 34, 600 )
<= ldbm_cache_open (opened 4)
=> key_read
<= index_read 1 candidates
<= substrings_candidates 1
<= filter_candidates 1
<= list_candidates 1
<= filter_candidates 1
<= list_candidates 1
<= filter_candidates 1
<= list_candidates 1
<= filter_candidates 1
<= list_candidates 1
<= filter_candidates 1
<= list_candidates 1
<= filter_candidates 1
====> cache_return_entry_r( 1 ): created (0)
=> id2entry_r( 45 )
=> ldbm_cache_open( "/var/lib/ldap/id2entry.gdbm", 34, 600 )
<= ldbm_cache_open (cache 1)
=> str2entry
<= str2entry(cn=Andy Rowan,dc=thewatershed,dc=org) -> -1 (0x8114988)
<= id2entry_r( 45 ) 0x8114988 (disk)
=> send_search_entry: "cn=Andy Rowan,dc=thewatershed,dc=org"
ber_flush: 255 bytes to sd 7
<= send_search_entry
====> cache_return_entry_r( 45 ): created (0)
send_ldap_search_result 0::
send_ldap_response: msgid=2 tag=101 err=0
ber_flush: 14 bytes to sd 7
ber_get_next
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
connection_get(7): got connid=0
connection_read(7): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
do_unbind
connection_closing: readying conn=0 sd=7 for close
connection_resched: attempting closing conn=0 sd=7
connection_close: conn=0 sd=7
slapd: ../../../servers/slapd/connection.c:1133: connection_input: Assertion `conn->c_struct_state == 0x02' failed.
Aborted