Hi all,
this is my first post on the list. I'm using 389ds inside a kolab
environment. We are going to migrate to the new kolab version which runs
now 389ds. At the moment we are testing different scenarios for
replication. I don't have much experience with ldap and particular with
389ds.
I've got a single-master replication with one supplier (ldapmaster1) and
one consumer (ldapmaster2)
After server restart replication isn't working anymore. The error-log:
[12/Feb/2014:12:04:51 +0100] NSMMReplicationPlugin - Found replication
agreement named "cn=test
replica,cn=replica,cn=dc\3Ddatenkollektiv\2Cdc\3Dnet,cn=mapping
tree,cn=config".
[12/Feb/2014:12:04:51 +0100] NSMMReplicationPlugin - The replication
agreement named "cn=test
replica,cn=replica,cn=dc\3Ddatenkollektiv\2Cdc\3Dnet,cn=mapping
tree,cn=config" could not be correctly parsed. No replication will occur
with this replica.
[12/Feb/2014:12:04:51 +0100] NSMMReplicationPlugin -
agmtlist_config_init: found 0 replication agreements in DIT
[12/Feb/2014:12:04:51 +0100] NSMMReplicationPlugin - changelog program -
_cl5GetDBFile: found DB object 1d9bbf0 for database
/var/lib/dirsrv/slapd-ldapmaster
1/changelogdb/bbd31b03-93cd11e3-8fe4ea88-51d1475b_52fb486f000000070000.db4
[12/Feb/2014:12:04:51 +0100] - _csngen_adjust_local_time: gen state
before 52fb486f0001:1392199791:0:0
[12/Feb/2014:12:04:51 +0100] - _csngen_adjust_local_time: gen state
after 52fb55530000:1392203091:0:0
[12/Feb/2014:12:04:51 +0100] NSMMReplicationPlugin -
ruv_add_csn_inprogress: successfully inserted csn 52fb5553000000070000
into pending list
[12/Feb/2014:12:04:52 +0100] NSMMReplicationPlugin - Purged state
information from entry dc=datenkollektiv,dc=net up to CSN
52f2180c000000070000
[12/Feb/2014:12:04:52 +0100] NSMMReplicationPlugin -
csn=52fb5553000000070000 process postop: canceling operation csn
[12/Feb/2014:12:04:52 +0100] - slapd started. Listening on All
Interfaces port 389 for LDAP requests
[12/Feb/2014:12:04:53 +0100] NSMMReplicationPlugin -
_replica_update_state: failed to update state of csn generator for
replica dc=example,dc=org: LDAP error - 32
[12/Feb/2014:12:05:36 +0100] - _csngen_adjust_local_time: gen state
before 52fb55530001:1392203091:0:0
[12/Feb/2014:12:05:36 +0100] - _csngen_adjust_local_time: gen state
after 52fb55800000:1392203136:0:0
[12/Feb/2014:12:05:37 +0100] NSMMReplicationPlugin -
ruv_add_csn_inprogress: successfully inserted csn 52fb5580000000070000
into pending list
[12/Feb/2014:12:05:37 +0100] NSMMReplicationPlugin - Purged state
information from entry uid=kolab-service,ou=Special
Users,dc=datenkollektiv,dc=net up to CSN 52f2180c000000070000
[12/Feb/2014:12:05:37 +0100] - Error: ldbm_txn_ruv_modify_context failed
to retrieve and lock RUV entry
[12/Feb/2014:12:05:37 +0100] - ldbm_back_modify:
ldbm_txn_ruv_modify_context failed to construct RUV modify context
[12/Feb/2014:12:05:37 +0100] NSMMReplicationPlugin -
csn=52fb5580000000070000 process postop: canceling operation csn
[12/Feb/2014:12:05:37 +0100] - _csngen_adjust_local_time: gen state
before 52fb55800001:1392203136:0:0
[12/Feb/2014:12:05:37 +0100] - _csngen_adjust_local_time: gen state
after 52fb55810000:1392203137:0:0
[12/Feb/2014:12:05:37 +0100] NSMMReplicationPlugin -
ruv_add_csn_inprogress: successfully inserted csn 52fb5581000000070000
into pending list
[12/Feb/2014:12:05:37 +0100] NSMMReplicationPlugin - Purged state
information from entry uid=kolab-service,ou=Special
Users,dc=datenkollektiv,dc=net up to CSN 52f2180c000000070000
Also disable and reenable replication doesn't help.
dn: cn=test replica,cn=replica,cn=dc\=datenkollektiv\,dc\=net,cn=mapping
tree,cn=config
changetype: modify
add: nsds5ReplicaEnabled
nsds5ReplicaEnabled: on
dn: cn=test replica,cn=replica,cn=dc\=datenkollektiv\,dc\=net,cn=mapping
tree,cn=config
changetype: modify
replace:nsds5ReplicaUpdateSchedule
nsds5ReplicaUpdateSchedule: 0000-2359 0123456
dn: cn=test replica,cn=replica,cn=dc\=datenkollektiv\,dc\=net,cn=mapping
tree,cn=config
changetype: modify
replace: nsds5BeginReplicaRefresh
nsds5BeginReplicaRefresh: start
then I get the errors:
[12/Feb/2014:12:06:02 +0100] NSMMReplicationPlugin - Total update
aborted: Replication agreement for "agmt="cn=test replica"
(ldapmaster2:389)" can not be updated while the replica is disabled
[12/Feb/2014:12:06:02 +0100] NSMMReplicationPlugin - (If the suffix is
disabled you must enable it then restart the server for replication to
take place).
Is that the right procedure at all?
Any idea?
Thanks and best regards
Jan