[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Sync consumer crashed when provider add a entry?
- To: OLdap-SoftWare <openldap-software@OpenLDAP.org>
- Subject: Sync consumer crashed when provider add a entry?
- From: William <zzw_happy@yahoo.com.cn>
- Date: Mon, 14 Nov 2005 15:35:21 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Received:Date:From:To:Subject:Message-ID:User-Agent:Content-Type:MIME-Version:Content-Transfer-Encoding; b=vbU26ZBYaWrsHMdvkRUh6BwmJ88yVYxzMLqiNkGazVKPMiIiqT502nTiD8XI4JAp48V1S8dZa0o6+bMJO0lQSV5blEje3+tsdJ1C5Xl+VlxJZtrGOhGCM/GmasTMkmCKKvd80vYLLo3MG2dbbM2iAoQFJsu+IzITI7KxFdY7LbQ= ;
- User-agent: Opera M2/8.50 (Linux, build 1358)
Hi,
My sync replica couldn't work for a long time and it seems startup OK now
after I upgraded bdb from 2.2.54 to 4.2.52 to 4.3.29. But when I add an
entry into provider the consumer crashes immediately. I appreciate your
help.
Here is my slapd.conf of provider:
#########################################################################
include /usr/local/openldap2.3.11/etc/openldap/schema/core.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
defaultaccess search
loglevel 0
#######################################################################
# bdb database definitions
#######################################################################
database bdb
suffix "dc=com"
rootdn "cn=Manager,dc=com"
rootpw "OpenLdap"
directory /usr/local/openldap2.3.11/var/openldap-data
lastmod off
checkpoint 10240 0
index uid,objectClass,uidNumber,gidNumber,entryUUID,entryCSN eq
cachesize 1000
## sync replica, as provider
overlay syncprov
syncprov-checkpoint 1 10
syncprov-sessionlog 1000
###############################
#### monitor database
###############################
database monitor
#########################################################################
here is the consumer's slapd.conf:
#########################################################################
include /usr/local/openldap2.3.11/etc/openldap/schema/core.schema
pidfile /var/run/slapd/slapd2.pid
argsfile /var/run/slapd/slapd2.args
defaultaccess search
loglevel 1
#######################################################################
# bdb database definitions
#######################################################################
database bdb
suffix "dc=com"
rootdn "cn=Manager,dc=com"
rootpw "OpenLdap"
directory /usr/local/openldap2.3.11-2/var/openldap-data
lastmod off
checkpoint 10240 0
index uid,objectClass,uidNumber,gidNumber,entryCSN,entryUUID eq
cachesize 1000
## sync replica
syncrepl rid=100
provider=ldap://localhost
type=refreshAndPersist
interval=00:00:00:10
retry="5 +"
searchbase="dc=ctc,dc=com"
filter="(objectClass=*)"
scope=one
schemachecking=off
bindmethod=simple
binddn="cn=admin,dc=com"
credentials=aaa
#########################################################################
add a entry in provider:
ldapadd -D "cn=Manager,dc=com" -W -x
dn: dc=abc,dc=ctc,dc=com
objectClass: dcObject
objectClass: organization
objectClass: top
dc: abc
o: abc
adding new entry "dc=abc,dc=ctc,dc=com"
the consumer crashed, printed out:
syncrepl_entry: be_search (0)
syncrepl_entry: dc=abc,dc=ctc,dc=com
slapd: attr.c:136: attr_dup: Assertion `j < i' failed.
Aborted
here is the log of consumer:
Nov 14 15:10:00 zhangzw slapd[22910]: connection_get(11): got connid=0
Nov 14 15:10:00 zhangzw slapd[22910]: =>do_syncrepl
Nov 14 15:10:00 zhangzw slapd[22910]: =>do_syncrep2
Nov 14 15:10:00 zhangzw slapd[22910]: >>> dnPrettyNormal:
<dc=abc,dc=ctc,dc=com>
Nov 14 15:10:00 zhangzw slapd[22910]: <<< dnPrettyNormal:
<dc=abc,dc=ctc,dc=com>, <dc=abc,dc=ctc,dc=com>
Nov 14 15:10:00 zhangzw slapd[22910]: >>> dnPretty: <dc=abc,dc=ctc,dc=com>
Nov 14 15:10:00 zhangzw slapd[22910]: <<< dnPretty: <dc=abc,dc=ctc,dc=com>
Nov 14 15:10:00 zhangzw slapd[22910]: >>> dnNormalize:
<dc=abc,dc=ctc,dc=com>
Nov 14 15:10:00 zhangzw slapd[22910]: <<< dnNormalize:
<dc=abc,dc=ctc,dc=com>
Nov 14 15:10:00 zhangzw slapd[22910]: >>> dnPretty: <cn=Subschema>
Nov 14 15:10:00 zhangzw slapd[22910]: <<< dnPretty: <cn=Subschema>
Nov 14 15:10:00 zhangzw slapd[22910]: >>> dnNormalize: <cn=Subschema>
Nov 14 15:10:00 zhangzw slapd[22910]: <<< dnNormalize: <cn=subschema>
Nov 14 15:10:00 zhangzw slapd[22910]: => bdb_search
Nov 14 15:10:00 zhangzw slapd[22910]: bdb_dn2entry("dc=ctc,dc=com")
Nov 14 15:10:00 zhangzw slapd[22910]: search_candidates:
base="dc=ctc,dc=com" (0x00000004) scope=2
Nov 14 15:10:00 zhangzw slapd[22910]: => bdb_dn2idl("dc=ctc,dc=com")
Nov 14 15:10:00 zhangzw slapd[22910]: <= bdb_dn2idl: id=1 first=4 last=4
Nov 14 15:10:00 zhangzw slapd[22910]: => bdb_equality_candidates
(entryUUID)
Nov 14 15:10:00 zhangzw slapd[22910]: => key_read
Nov 14 15:10:00 zhangzw slapd[22910]: <= bdb_index_read: failed (-30989)
Nov 14 15:10:00 zhangzw slapd[22910]: <= bdb_equality_candidates: id=0,
first=0, last=0
Nov 14 15:10:00 zhangzw slapd[22910]: bdb_search_candidates: id=0 first=4
last=0
Nov 14 15:10:00 zhangzw slapd[22910]: bdb_search: no candidates
Nov 14 15:10:00 zhangzw slapd[22910]: send_ldap_result: conn=-1 op=0 p=0
Nov 14 15:10:00 zhangzw slapd[22910]: bdb_dn2entry("dc=abc,dc=ctc,dc=com")
Nov 14 15:10:00 zhangzw slapd[22910]: => bdb_dn2id("dc=abc,dc=ctc,dc=com")
Nov 14 15:10:00 zhangzw slapd[22910]: <= bdb_dn2id: get failed:
DB_NOTFOUND: No matching key/data pair found (-30989)
Nov 14 15:10:00 zhangzw slapd[22910]: =>
bdb_dn2id_add( "dc=abc,dc=ctc,dc=com", 0x00000005 )
Nov 14 15:10:00 zhangzw slapd[22910]: <= bdb_dn2id_add: 0
Nov 14 15:10:00 zhangzw slapd[22910]: => entry_encode(0x00000005):
dc=abc,dc=ctc,dc=com
Nov 14 15:10:00 zhangzw slapd[22910]: => index_entry_add( 5,
"dc=abc,dc=ctc,dc=com" )
Nov 14 15:10:00 zhangzw slapd[22910]: => key_change(ADD,5)
Nov 14 15:10:00 zhangzw slapd[22910]: <= key_change 0
Nov 14 15:10:00 zhangzw slapd[22910]: => key_change(ADD,5)
Nov 14 15:10:00 zhangzw slapd[22910]: <= key_change 0
Nov 14 15:10:00 zhangzw slapd[22910]: => key_change(ADD,5)
Nov 14 15:10:00 zhangzw slapd[22910]: <= key_change 0
Nov 14 15:10:00 zhangzw slapd[22910]: => key_change(ADD,5)
Any ideas ?? thanks in advance!
--
Regards.
MSN: zzw_happy@hotmail.com
BeiJing, China ( where Olymipic Games 2008 will be held, cheers! )
__________________________________________________
Do You Yahoo!?
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
http://cn.mail.yahoo.com/?id=77071