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

Re: Problems with replication



Hi,

Dave Lewney wrote:
> 
> Harry Rüter wrote:
> >
> > Hi,
> >
> > i'm having problems with replication.
> > When i modify an entry on my ldap,
> > slurpd seems to work fine,
> > but there's no modification on the backup-ldap.
> >
> > Here are the logfiles which show the situation :
> >
> > /var/run/openldap-slurp/replica/486dx66.hrnet.de:3389.rej:
> > ------------------------------------------------
> >
> > ERROR: No such object
> > replica: 486dx66.hrnet.de:3389
> > time: 1021584059.0
> > dn: uid=root, ou=Users, ou=accounts, ou=mynetwork,
> > o=myorganization, dc=hrnet,dc=de
> > changetype: modify
> > replace: krb5PrincipalName
> > krb5PrincipalName: ldapRoot@HRNET.DE
> > -
> > replace: modifiersName
> > modifiersName: uid=admin,ou=ldap, o=myorganization,
> > dc=hrnet,dc=de
> > -
> > replace: modifyTimestamp
> > modifyTimestamp: 20020516212058Z
> > -
> >
> > ------------------------------------------------
> > /var/run/openldap-slurp/replica/486dx66.hrnet.de:3389.rej:
> > ------------------------------------------------
> >
> > replica: 486dx66.hrnet.de:3389
> > time: 1021584059
> > dn: uid=root, ou=Users, ou=accounts, ou=mynetwork,
> > o=myorganization, dc=hrnet,dc=de
> > changetype: modify
> > replace: krb5PrincipalName
> > krb5PrincipalName: ldapRoot@HRNET.DE
> > -
> > replace: modifiersName
> > modifiersName: uid=admin,ou=ldap, o=myorganization,
> > dc=hrnet,dc=de
> > -
> > replace: modifyTimestamp
> > modifyTimestamp: 20020516212058Z
> > -
> >
> > ------------------------------------------------
> > /var/run/openldap-slurp/replica/slurpd.status:
> > ------------------------------------------------
> >
> > 486dx66.hrnet.de:3389:1021584059:0
> >
> > ------------------------------------------------
> >
> > As you can see, slurpd seems tp be okay,as it shows the
> > data that has been modified.
> >
> > The backup-slapd shows the line
> >
> > ERROR: No such object
> >
> > Although the data afterwards is the same as slurpd has
> > shown.
> >
> > Anybody out there with a hint what's wrong ?
> >
> > Thanks Harry
> 
> Hi,
> 
> It looks like the entry
> 
> dn: uid=root, ou=Users, ou=accounts, ou=mynetwork, o=myorganization,
> dc=hrnet,dc=de
> 
> does not exist on the replica. 

No, it exists definitely.
I did the following:

1. shutting down all slapd with "killall slapd"
2. shutting down all slurpd with "killall slurpd"

> Did you copy over the db files from the
> master when you setup the replica?

3. Then i made an exact copy from /var/lib/ldap to
/var/lib/ldap.replica
 
> Dave


Here's the part of /var/log/messages which shows what
happens.
I show the line where the error seems to be logged with --> 
: 

--------------------------------------------------------------------------------
May 17 23:12:53 486dx66 slapd[10017]: daemon: activity on 1
descriptors
May 17 23:12:53 486dx66 slapd[10017]: daemon: activity on:
May 17 23:12:53 486dx66 slapd[10017]:  12r
May 17 23:12:53 486dx66 slapd[10017]:
May 17 23:12:53 486dx66 slapd[10017]: daemon: read activity
on 12
May 17 23:12:53 486dx66 slapd[10017]: connection_get(12)
May 17 23:12:53 486dx66 slapd[10017]: connection_get(12):
got connid=0
May 17 23:12:53 486dx66 slapd[10017]: connection_read(12):
checking for input on id=0
May 17 23:12:53 486dx66 slapd[10031]: do_modify
May 17 23:12:53 486dx66 slapd[10031]: do_modify: dn
(nsLIElementType=globalhistory, nsLIProfileName=harry,
ou=Roaming, ou=accounts, ou=mynetwork, o=myorganization,
dc=hrnet,dc=de)
May 17 23:12:53 486dx66 slapd[10031]: => get_ctrls
May 17 23:12:53 486dx66 slapd[10031]: => get_ctrls:
oid="2.16.840.1.113730.3.4.2" (noncritical)
May 17 23:12:53 486dx66 slapd[10031]: <= get_ctrls: 1 0
May 17 23:12:53 486dx66 slapd[10031]: modifications:
May 17 23:12:53 486dx66 slapd[10031]: ^Ireplace: nsLIData
May 17 23:12:53 486dx66 slapd[10031]: ^Ireplace:
modifiersName
May 17 23:12:53 486dx66 slapd[10031]: ^Ireplace:
modifyTimestamp
May 17 23:12:53 486dx66 slapd[10031]: conn=0 op=6 MOD
dn="nsLIElementType=globalhistory, nsLIProfileName=harry,
ou=Roaming, ou=accounts, ou=mynetwork, o=myorganization,
dc=hrnet,dc=de"
May 17 23:12:53 486dx66 slapd[10031]: send_ldap_result:
conn=0 op=6 p=3
May 17 23:12:53 486dx66 slapd[10031]: send_ldap_result: 10::
--> May 17 23:12:53 486dx66 slapd[10031]:
send_ldap_response: msgid=7 tag=103 err=32
May 17 23:12:53 486dx66 slapd[10017]: ber_get_next on fd 12
failed errno=11 (Resource temporarily unavailable)
May 17 23:12:53 486dx66 slapd[10031]: conn=0 op=6 RESULT
tag=103 err=32 text=
May 17 23:12:53 486dx66 slapd[10017]: daemon: select:
listen=8 active_threads=1 tvp=NULL
May 17 23:12:53 486dx66 slapd[10017]: daemon: select:
listen=9 active_threads=1 tvp=NULL
May 17 23:12:53 486dx66 slapd[10017]: daemon: activity on 1
descriptors
May 17 23:12:53 486dx66 slapd[10017]: daemon: select:
listen=8 active_threads=1 tvp=NULL
May 17 23:12:53 486dx66 slapd[10017]: daemon: select:
listen=9 active_threads=1 tvp=NULL
--------------------------------------------------------------------------------

Any hints on this ?

greets Harry