[ 
https://issues.apache.org/jira/browse/DIRSERVER-1943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13854174#comment-13854174
 ] 

RakeshAcharya commented on DIRSERVER-1943:
------------------------------------------

thanks Kiran for your prompt and quick reply. We have to stick on with M10 
version as all our testing was done with that version and we cant just change 
the version for production release.

Let me elaborate, below are the steps I took

Created a partition(dc=fico,dc=com) same one in both MASTER and SLAVE and want 
all the objects under this subtree replicated..

MATSER-SLAVE:

Master Server: Added below entry 

dn: ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
changetype: modify
add: ads-replReqHandler
ads-replReqHandler:
org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler

This is the only configuration done on Master Server.

Slave Server: Added below entry 

objectclass 'ads-replConsumer' under
ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config

dn:ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
objectClass: ads-base
objectClass: ads-replConsumer
objectClass: top
ads-replAliasDerefMode: never
ads-replAttributes: *
ads-replConsumerId: 1
ads-replProvHostName: XXX
ads-replProvPort: 389
ads-replRefreshInterval: 6000
ads-replRefreshNPersist: true
ads-replSearchFilter: (objectClass=*)
ads-replSearchScope: sub
ads-replSearchSizeLimit: 0
ads-replSearchTimeOut: 0
ads-replUserDn: uid=admin,ou=system
ads-replUserPassword:: XXXX
ads-searchBaseDN: dc=fico,dc=com

 finally the server were restarted to make these changes effective

Errors:
It initially works all fine , but after a day or so replication fails and I 
don't see the entry in the Slave and I get below errors.

INFO   | jvm 1    | 2013/12/20 09:23:41 | [09:23:40] ERROR 
[org.apache.directory.server.ldap.replication.consumer.ReplicationConsumerImpl] 
- ERR_251_PARENT_NOT_FOUND Parent ou=groups,dc=fico,dc=com not found
INFO   | jvm 1    | 2013/12/20 09:23:41 | 
org.apache.directory.api.ldap.model.exception.LdapNoSuchObjectException: 
ERR_251_PARENT_NOT_FOUND Parent ou=groups,dc=fico,dc=com not found

INFO   | jvm 1    | 2013/12/20 09:23:41 | [09:23:41] ERROR 
[org.apache.directory.server.ldap.replication.consumer.ReplicationConsumerImpl] 
- ERR_251_PARENT_NOT_FOUND Parent ou=users,dc=fico,dc=com not found
INFO   | jvm 1    | 2013/12/20 09:23:41 | 
org.apache.directory.api.ldap.model.exception.LdapNoSuchObjectException: 
ERR_251_PARENT_NOT_FOUND Parent ou=users,dc=fico,dc=com not found
 
MASTER-MASTER:

Same configuration as MASTER -SLAVE done on each Servers.

Errors :

Here are also I am getting similar errors as in Master-Slave, Its little 
inconsistent and it works sometimes and fails after restart..

Let me know what you think.

Appreciate your assistance.





> Apache DS 2.0.0-M10 Replication Doesnt work
> -------------------------------------------
>
>                 Key: DIRSERVER-1943
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1943
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M10
>         Environment: Production
>            Reporter: RakeshAcharya
>              Labels: features, performance
>
> Trying to set up Master-Matser  and Master-Slave replication in apacheDS 
> 2.0.0-M10 but the results are not conistsent , it works and fails sometime.
> Followed below link to configure the same.
> http://joacim.breiler.com/apacheds/ch08s02.html
> Can you please let me know what am I missing? We have a live date and needs 
> this replication FIXED ASAP.
> Errors: (some of the error)
> INFO   | jvm 1    | 2013/12/19 17:50:48 | [17:50:48] ERROR 
> [org.apache.directory.server.ldap.replication.consumer.ReplicationConsumerImpl]
>  - ERR_251_PARENT_NOT_FOUND Parent ou=users,dc=fico,dc=com not found
> INFO   | jvm 1    | 2013/12/19 17:50:48 | 
> org.apache.directory.api.ldap.model.exception.LdapNoSuchObjectException: 
> ERR_251_PARENT_NOT_FOUND Parent ou=users,dc=fico,dc=com not found
> INFO   | jvm 1    | 2013/12/19 17:50:48 |       at 
> org.apache.directory.server.core.exception.ExceptionInterceptor.add(ExceptionInterceptor.java:164)



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to