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

Re: Problems with openldap replication with slurpd. "unknown error"



On 10/5/06, Roman Yushin <romen@infosite.ru> wrote:
Problems with openldap replication with slurpd

Hi. Trying to make openldap replication
Master server is openldap 2.0.27_3, slave server is openldap 2.2.30
Using stunnel to get acces to slave ldap
master:localhost:636 -> stunnel -> slave:127.0.0.1:389


slurpd.replog

replica: 127.0.0.1:636
time: 1160060587.0
dn: uid=test0981,ou=People,o=campus,c=ru
changetype: add
objectClass: top
objectClass: account
objectClass: posixAccount
cn: test0981
uid: test0981
uidNumber: 11686
gidNumber: 545
homeDirectory: /home/test0981
loginShell: /usr/bin/false
gecos: System User
description: System User
userPassword:: e2NyeXB0fXg=
creatorsName: cn=Manager,o=campus,c=ru
createTimestamp: 20061005150306Z
modifiersName: cn=Manager,o=campus,c=ru
modifyTimestamp: 20061005150306Z


replica: 127.0.0.1:636 time: 1160060596 dn: uid=test0981,ou=People,o=campus,c=ru changetype: modify replace: objectClass objectClass: top objectClass: account objectClass: posixAccount objectClass: sambaAccount - replace: logonTime logonTime: 0 - replace: logoffTime logoffTime: 2147483647 -

...
...



127.0.0.1:636.rej

ERROR: Unknown error
replica: 127.0.0.1:636
time: 1160057891.0
dn: uid=test6789,ou=People,o=campus,c=ru
changetype: add
objectClass: top
objectClass: account
objectClass: posixAccount
cn: test6789
uid: test6789
uidNumber: 11685
gidNumber: 545
homeDirectory: /home/test6789
loginShell: /usr/bin/false
gecos: System User
description: System User
userPassword:: e2NyeXB0fXg=
creatorsName: cn=Manager,o=campus,c=ru
createTimestamp: 20061005141804Z
modifiersName: cn=Manager,o=campus,c=ru
modifyTimestamp: 20061005141804Z

request 6 done
Error: ldap_add_s failed adding "Unknown error":
uid=test6789,ou=People,o=campus,c=ru
Error: ldap operation failed, data written to
"/var/db/openldap-slurp/replica/127.0.0.1:636.rej"
ber_flush: 51784 bytes to sd 8
request 7 done
ber_flush: 471 bytes to sd 8
request 8 done
Error: ldap_modify_s failed modifying "No such object":
uid=test6789,ou=People,o=campus,c=ru
Error: ldap operation failed, data written to
"/var/db/openldap-slurp/replica/127.0.0.1:636.rej"
ber_flush: 418 bytes to sd 8
request 9 done
Error: ldap_modify_s failed modifying "No such object":
uid=test6789,ou=People,o=campus,c=ru
Error: ldap operation failed, data written to
"/var/db/openldap-slurp/replica/127.0.0.1:636.rej"
ber_flush: 315 bytes to sd 8
request 10 done



You should upgrade.
You also need to provide the log output from the slave server.  That
will give the actual error code, which your master does not
understand.  "Unknown errors", such as code 80, can often mean you
have database corruption.

_Matt