directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Alderson" <Martin.Alder...@salfordsoftware.co.uk>
Subject Re: ApacheDS 1.5 working replication configuration needed
Date Mon, 04 Jun 2007 16:29:13 GMT
Markus,

Your second server can't find '0.9.2342.19200300.100.1.25=applications,0.9.2342.19200300.100.1.25=douglasholding'
for some reason.  I guess you have added a new partition at dc=douglasholding or dc=applications,dc=douglasholding.
 Have you added the partition configuration to the second server too?

Martin



>>> Markus Pohle <markus.pohle@webunity.de> 04/06/2007 17:15 >>>
Hi Martin,

first of all thx for helping with this port thing. It was way fault to  
configure both apacheds and replication to the same port. I changed  
that in the server.xml file. apacheds port is 389 now and replication  
port is 10390 now. Now I am able to connect to ldap and in  
apacheds-rolling.log it says: "Starting a partial replication log  
transfer."

But when I tried to replicate data, the following happened... I  
modified data on apachds3 server and hoped that it will replicate that  
to my apacheds4 server. but with no success... in the apacheds3  
logfile i do see the following:

[18:00:31] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationClientProtocolHandler] -
[apacheds4.douglas-informatik.de/172.28.192.12:10390] Starting a whole DIT  
transfer.
[18:00:36] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationClientProtocolHandler] -
[apacheds4.douglas-informatik.de/172.28.192.12:10390] Starting a partial replication log 

transfer.
[18:00:36] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationClientProtocolHandler] -
[apacheds4.douglas-informatik.de/172.28.192.12:10390] Remote peer failed to execute a log
 
entry.
[18:00:36] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationClientProtocolHandler] -
[apacheds4.douglas-informatik.de/172.28.192.12:10390] Remote peer failed to execute a log
 
entry.


on apacheds4 i do see the following messages in log:

[18:00:36] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationClientProtocolHandler] -
[apacheds3.douglas-informatik.de/172.28.192.11:10390] Starting a partial replication log 

transfer.
[18:00:37] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationServerProtocolHandler] -
[/172.28.192.11:3674] Unexpected  
exception.
org.apache.directory.shared.ldap.exception.LdapNameNotFoundException:  
Id for parent  
'0.9.2342.19200300.100.1.25=applications,0.9.2342.19200300.100.1.25=douglasholding' not  
found!
	at  
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1036)
	at  
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:311)
	at  
org.apache.directory.server.core.partition.DefaultPartitionNexus.add(DefaultPartitionNexus.java:699)
	at  
org.apache.directory.mitosis.operation.support.EntryUtil.createGlueEntry(EntryUtil.java:123)
	at  
org.apache.directory.mitosis.operation.support.EntryUtil.createGlueEntries(EntryUtil.java:87)
	at  
org.apache.directory.mitosis.operation.AttributeOperation.execute0(AttributeOperation.java:88)
	at  
org.apache.directory.mitosis.operation.Operation.execute(Operation.java:108)
	at  
org.apache.directory.mitosis.operation.CompositeOperation.execute0(CompositeOperation.java:172)
	at  
org.apache.directory.mitosis.operation.Operation.execute(Operation.java:108)
	at  
org.apache.directory.mitosis.service.protocol.handler.ReplicationServerContextHandler.onLogEntry(ReplicationServerContextHandler.java:193)
	at  
org.apache.directory.mitosis.service.protocol.handler.ReplicationServerContextHandler.messageReceived(ReplicationServerContextHandler.java:85)
	at  
org.apache.directory.mitosis.service.protocol.handler.ReplicationProtocolHandler.messageReceived(ReplicationProtocolHandler.java:85)
	at  
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
	at  
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
	at  
org.apache.mina.filter.LoggingFilter.messageReceived(LoggingFilter.java:97)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
	at  
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
	at  
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
	at  
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:190)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
	at  
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
	at  
org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
	at  
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
	at  
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
	at  
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
	at java.lang.Thread.run(Unknown Source)
[18:00:37] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationServerProtocolHandler] -
[/172.28.192.11:3674] Unexpected  
exception.
org.apache.directory.shared.ldap.exception.LdapNameNotFoundException:  
Id for parent  
'0.9.2342.19200300.100.1.25=applications,0.9.2342.19200300.100.1.25=douglasholding' not  
found!
	at  
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1036)
	at  
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:311)
	at  
org.apache.directory.server.core.partition.DefaultPartitionNexus.add(DefaultPartitionNexus.java:699)
	at  
org.apache.directory.mitosis.operation.support.EntryUtil.createGlueEntry(EntryUtil.java:123)
	at  
org.apache.directory.mitosis.operation.support.EntryUtil.createGlueEntries(EntryUtil.java:87)
	at  
org.apache.directory.mitosis.operation.AttributeOperation.execute0(AttributeOperation.java:88)
	at  
org.apache.directory.mitosis.operation.Operation.execute(Operation.java:108)
	at  
org.apache.directory.mitosis.operation.CompositeOperation.execute0(CompositeOperation.java:172)
	at  
org.apache.directory.mitosis.operation.Operation.execute(Operation.java:108)
	at  
org.apache.directory.mitosis.service.protocol.handler.ReplicationServerContextHandler.onLogEntry(ReplicationServerContextHandler.java:193)
	at  
org.apache.directory.mitosis.service.protocol.handler.ReplicationServerContextHandler.messageReceived(ReplicationServerContextHandler.java:85)
	at  
org.apache.directory.mitosis.service.protocol.handler.ReplicationProtocolHandler.messageReceived(ReplicationProtocolHandler.java:85)
	at  
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
	at  
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
	at  
org.apache.mina.filter.LoggingFilter.messageReceived(LoggingFilter.java:97)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
	at  
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
	at  
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
	at  
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:190)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
	at  
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
	at  
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
	at  
org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
	at  
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
	at  
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
	at  
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
	at java.lang.Thread.run(Unknown Source)


Please find enclosed my server.xml replication configuration part for  
the both apacheds servers. maybe you do see a configuration error:

apacheds3:
==========
<bean  
class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
           <property name="name" value="replicationService" />
           <property name="interceptor">
             <bean  
class="org.apache.directory.mitosis.service.ReplicationService">
               <property name="configuration">
                 <bean  
class="org.apache.directory.mitosis.configuration.ReplicationConfiguration">
                   <property name="replicaId">
                     <bean  
class="org.apache.directory.mitosis.common.ReplicaId">
                       <constructor-arg>
                         <value>instance_a</value>
                       </constructor-arg>
                     </bean>
                   </property>
                   <property name="serverPort" value="10390" />
                   <property name="peerReplicas">
                     <set>
                        
<value>instance_b@apacheds4.douglas-informatik.de:10390</value>
                     </set>
                   </property>
                 </bean>
               </property>
             </bean>
           </property>
         </bean>


apacheds4:
==========
<bean  
class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
           <property name="name" value="replicationService" />
           <property name="interceptor">
             <bean  
class="org.apache.directory.mitosis.service.ReplicationService">
               <property name="configuration">
                 <bean  
class="org.apache.directory.mitosis.configuration.ReplicationConfiguration">
                   <property name="replicaId">
                     <bean  
class="org.apache.directory.mitosis.common.ReplicaId">
                       <constructor-arg>
                         <value>instance_b</value>
                       </constructor-arg>
                     </bean>
                   </property>
                   <property name="serverPort" value="10390" />
                   <property name="peerReplicas">
                     <set>
                        
<value>instance_a@apacheds3.douglas-informatik.de:10390</value>
                     </set>
                   </property>
                 </bean>
               </property>
             </bean>
           </property>
         </bean>


Thanks in advance again... hopefully you can help me out of this :-)

Markus



Mime
View raw message