directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 刘宝强 <liu.baoqi...@mydreamplus.com>
Subject Apacheds cannot Replication
Date Thu, 25 Feb 2016 05:59:44 GMT
hello everyone:
Now i’m in trouble, the situation on below,
I’m using Master-Slave replication  

master in aws,
slave in office.

slave configure

========configure============
$cat conf/ou\=config/ads-directoryserviceid\=default/ou\=servers/ads-serverid\=ldapserver/ou\=replconsumers/ads-replconsumerid\=consumer1.ldif

version: 1
dn: ads-replconsumerid=consumer1,ou=replConsumers,ads-serverId=ldapServer,ou=ser
 vers,ads-directoryServiceId=default,ou=config
entryCSN: 20160225053746.649000Z#000000#001#000000
ads-replsearchtimeout: 10
ads-replCookie:: cmlkPTAxMSxjc249MjAxNTEwMDQwNjIxMDkuNjcxMDAwWiMwMDAwMDAjMDAxIzA
 wMDAwMA==
ads-replstrictcertvalidation: FALSE
ads-replusetls: FALSE
ads-replconsumerid: consumer1
ads-replsearchfilter: (objectClass=*)
ads-replsearchscope: sub
ads-searchbasedn: dc=xyz,dc=com
ads-replprovhostname: aws.xyz.com
ads-replrefreshnpersist: TRUE
modifyTimestamp: 20160225053746.649Z
ads-repluserdn: uid=admin,ou=system
modifiersName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
ads-replprovport: 389
ads-replrefreshinterval: 10000
entryuuid: f8fab67e-4da1-4cde-b010-9de41ba3247f
ads-enabled: TRUE
ads-repluserpassword:: c2VjcmV0
ads-replsearchsizelimit: 0
ads-replattributes: *
ads-replaliasderefmode: never
objectclass: ads-replConsumer
objectclass: ads-base
objectclass: top
entryParentId: b64f4e5a-f5c9-4cc3-bca0-1a405f4221bf
========configure============

configure is right?????

when slave start , all data will transport to slave from master.
then after 10 minutes or longer, master add some data and slave will not replication .
and sometimes after 2 hours master occur a WARN .

========WARN============

[06:02:08] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected exception
forcing session to close: sending disconnect notice to client.
java.io.IOException: Connection timed out
        at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
        at sun.nio.ch.IOUtil.read(IOUtil.java:197)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
        at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:311)
        at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:45)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:694)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

========WARN============

so, i don’t know why this happened, or i use master-slave replication not right?

please help.




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message