[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Sync consumer crashed when provider add a entry?
- To: "OLdap-SoftWare" <openldap-software@OpenLDAP.org>
- Subject: Re: Sync consumer crashed when provider add a entry?
- From: "William.Zhang" <zzw_happy@yahoo.com.cn>
- Date: Thu, 17 Nov 2005 09:02:30 +0800
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE; b=bofxELSa2r21WXrj6Jw5kjxFBUZqzMN+10QySTJ4q0ZPMXxoGbF46skR/xyPiL2yJBCPh48NXw2J9bRfuY4Q98jiXAZmX55/XhM6SiVK27B8dolXm1GTvo5w5XDcOZfhRLYkfqXjAVOc9ybOc/70Iew0FHXiW9AilH4yWQCddoM= ;
- References: <op.sz8yklb27t7vpp@zhangzw> <op.s0aoa7af7t7vpp@zhangzw>
My sync works finally after I delete the parameter: lastmod off
it seems in sync mode slapy should record something when modifiy
entries ??
----- Original Message -----
From: "William" <zzw_happy@yahoo.com.cn>
To: "OLdap-SoftWare" <openldap-software@OpenLDAP.org>
Sent: Wednesday, November 16, 2005 2:29 AM
Subject: Re: Sync consumer crashed when provider add a entry?
>
>
>
> I found provider don't support the sync state
> control 1.3.6.1.4.1.4203.1.9.1.2.
> Is there something sepcial to define it ? or
> complie it ?
>
> On Mon, 14 Nov 2005 15:35:21 -0500, William <zzw_happy@yahoo.com.cn> wrote:
>
>> 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?????????????????????j(??????????????????