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

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




Thanks. I have forgotten about logs of slave :)

Here it is:

Oct 6 09:56:14 fs slapd[73322]: slapd stopped.
Oct 6 09:56:17 fs slapd[75559]: @(#) $OpenLDAP: slapd 2.2.30 (Mar 10 2006 11:31:03) $ root@slave_server:/usr/ports/net/openldap22-server/work/openldap-2.2.30/s
ervers/slapd
Oct 6 09:56:17 fs slapd[75559]: line 51 (database bdb)
Oct 6 09:56:17 fs slapd[75559]: bdb_db_init: Initializing BDB database
Oct 6 09:56:17 fs slapd[75559]: line 53 (suffix "o=campus,c=ru")
Oct 6 09:56:17 fs slapd[75559]: line 54 (rootdn "cn=Manager,o=campus,c=ru")
Oct 6 09:56:17 fs slapd[75559]: line 58 (rootpw ***)
Oct 6 09:56:17 fs slapd[75559]: line 61 (directory /var/db/openldap-data)
Oct 6 09:56:17 fs slapd[75559]: line 63 (index objectClass eq)
Oct 6 09:56:17 fs slapd[75559]: index objectClass 0x0004
Oct 6 09:56:17 fs slapd[75559]: line 65 (index uid pres,eq)
Oct 6 09:56:17 fs slapd[75559]: index uid 0x0006
Oct 6 09:56:17 fs slapd[75559]: line 67 (index rid eq)
Oct 6 09:56:17 fs slapd[75559]: index rid 0x0004
Oct 6 09:56:17 fs slapd[75559]: line 70 (index uidNumber eq)
Oct 6 09:56:17 fs slapd[75559]: index uidNumber 0x0004
Oct 6 09:56:17 fs slapd[75559]: line 71 (index gidNumber eq)
Oct 6 09:56:17 fs slapd[75559]: index gidNumber 0x0004
Oct 6 09:56:17 fs slapd[75559]: line 72 (index cn eq)
Oct 6 09:56:17 fs slapd[75559]: index cn 0x0004
Oct 6 09:56:17 fs slapd[75559]: line 73 (index memberUid eq)
Oct 6 09:56:17 fs slapd[75559]: index memberUid 0x0004
Oct 6 09:56:17 fs slapd[75559]: line 74 (index gecos eq)
Oct 6 09:56:17 fs slapd[75559]: index gecos 0x0004
Oct 6 09:56:17 fs slapd[75559]: line 75 (index description eq)
Oct 6 09:56:17 fs slapd[75559]: index description 0x0004
Oct 6 09:56:17 fs slapd[75559]: line 76 (index default sub)
Oct 6 09:56:17 fs slapd[75559]: line 101 (access to * by dn="cn=replicator,o=campus,c=ru" write by * read)
Oct 6 09:56:17 fs slapd[75560]: slapd starting
Oct 6 09:56:52 fs slapd[75560]: bdb(o=campus,c=ru): illegal flag specified to txn_begin
Oct 6 09:56:52 fs slapd[75560]: bdb_txn_get: BerkeleyDB 4.2.52 library needs TXN patch!
Oct 6 09:59:35 fs slapd[73322]: No structuralObjectClass for entry (uid=romen5,ou=People,o=campus,c=ru)


Here is the error!

"No structuralObjectClass for entry (uid=....)"

But i didn't understand this. I am copied ldiff from master's slurpd.replog, comment few lines like this:


#ERROR: Unknown error #replica: 127.0.0.1:636 #time: 1160113877.0

dn: uid=romen5,ou=People,o=campus,c=ru
#changetype: add
objectClass: top
objectClass: account
objectClass: posixAccount
cn: romen5
uid: romen5
uidNumber: 11693
gidNumber: 545
homeDirectory: /home/romen5
loginShell: /usr/bin/false
gecos: System User
description: System User
userPassword:: e2NyeXB0fXg=
#creatorsName: cn=Manager,o=campus,c=ru
#createTimestamp: 20061006055117Z
#modifiersName: cn=Manager,o=campus,c=ru
#modifyTimestamp: 20061006055117Z


Turned off replication at slave (removed updatedn "cn=replicator,o=campus,c=ru"
updateref ldap://127.0.0.1:636)
And then i am added that ldiff!


[root@slave_server]# ldapadd -D "cn=manager,o=campus,c=ru" -w password -f /path-to/test_replica.ldiff
adding new entry "uid=romen5,ou=People,o=campus,c=ru"


Replication between those tho servers worked fine recently. At march of this year i tune it up, but now prblems have appeared now..
We don't need to upgrade openldap cause soon we will change our servers. Then i'll set up latest release of openldap.



WBR, Yushin Roman