directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Pohle <markus.po...@webunity.de>
Subject Re: ApacheDS 1.5 working replication configuration needed
Date Tue, 05 Jun 2007 13:45:16 GMT

Hi Martin,

both ApacheDS servers have the same partition. I used the server.xml  
configuration file from apacheds3 as server.xml file in apacheds4.
Both servers have, as root entry, dc=douglasholding. So I am not sure  
about what the is when the log file says "can't find  
'0.9.2342.19200300.100.1.25=applications,0.9.2342.19200300.100.1.25=douglasholding'".

What I did right now is, that I deleted the DouglasHolding partition  
on both apacheds servers and started over. Now I can see replication  
taking place from apacheds3 to apacheds4 and vice versa.

The only thing I dont know why happened is the following: right after  
starting apacheds3 and apacheds4, I do see the following in the  
apacheds-rolling.log file on apacheds4 server:

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

transfer.
[14:34:56] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationServerProtocolHandler] -
[/172.28.192.11:4319] 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)
[14:34:56] WARN  
[org.apache.directory.mitosis.service.protocol.handler.ReplicationServerProtocolHandler] -
[/172.28.192.11:4319] 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)

But I think this is maybe because the apacheds3 server was not  
completely up and running? This error message happened only once! Is  
that possible?

Greetings
Markus

Zitat von Martin Alderson <Martin.Alderson@salfordsoftware.co.uk>:

> 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
>
>
>



-- 
WEBUNITY - Internet, Consulting, Neue Medien
Markus Pohle (SCJP)

GPG Public Key Block available at:
http://www.webunity.de/markus.pohle@webunity.de.txt



Mime
View raw message