directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben April (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRSERVER-1277) Mitosis with 1.5.4 (linux BIN) blocking login and not replicating.
Date Thu, 09 Oct 2008 20:14:44 GMT
Mitosis with 1.5.4 (linux BIN) blocking login and not replicating.
------------------------------------------------------------------

                 Key: DIRSERVER-1277
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1277
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: core, mitosis
    Affects Versions: 1.5.4
         Environment: Linux hostname 2.6.18-92.1.10.el5 #1 SMP Tue Aug 5 07:42:41 EDT 2008
x86_64 x86_64 x86_64 GNU/Linux
Linux .bin distribution with the following jars pulled from the 1.5.4 tag of SVN:

mitosis-1.5.4.jar
derby-10.3.1.4.jar
commons-pool-1.3.jar
commons-dbcp-1.2.2.jar

            Reporter: Ben April


I have a working directory running on ApacheDS. Things break pretty badly when I add the following
mitosis config:

      <replicationInterceptor>
        <configuration>
          <replicationConfiguration replicaId="host-2" serverPort="10390" peerReplicas="host-1@host-1:10390">
          </replicationConfiguration>
        </configuration>
      </replicationInterceptor>


First at startup I get:
# /etc/init.d/apacheds-1.5.4-default console
Running Apache Directory Server - default...
wrapper  | --> Wrapper Started as Console
wrapper  | Using tick timer.
wrapperp | server listening on port 32000.
wrapper  | Command[0] : java
wrapper  | Command[1] : -Dlog4j.configuration=file:////var/lib/apacheds-1.5.4/default/conf/log4j.properties
wrapper  | Command[2] : -Dapacheds.var.dir=/var/lib/apacheds-1.5.4/default
wrapper  | Command[3] : -Dapacheds.log.dir=/var/lib/apacheds-1.5.4/default/log
wrapper  | Command[4] : -Dapacheds.run.dir=/var/lib/apacheds-1.5.4/default/run
wrapper  | Command[5] : -Dapacheds.instance=default
wrapper  | Command[6] : -Dbootstrap.start.class=org.apache.ldap.server.Service
wrapper  | Command[7] : -Dbootstrap.stop.class=org.apache.ldap.server.Service
wrapper  | Command[8] : -Xms384m
wrapper  | Command[9] : -Xmx384m
wrapper  | Command[10] : -Djava.library.path=../lib
wrapper  | Command[11] : -classpath
wrapper  | Command[12] : ../lib/bootstrapper.jar:../lib/wrapper.jar:../lib/slf4j-api-1.4.3.jar:../lib/slf4j-log4j12-1.4.3.jar:../lib/log4j-1.2.14.jar
wrapper  | Command[13] : -Dwrapper.key=XLcqj8NhXqXlQUe2
wrapper  | Command[14] : -Dwrapper.port=32000
wrapper  | Command[15] : -Dwrapper.jvm.port.min=31000
wrapper  | Command[16] : -Dwrapper.jvm.port.max=31999
wrapper  | Command[17] : -Dwrapper.debug=TRUE
wrapper  | Command[18] : -Dwrapper.pid=28005
wrapper  | Command[19] : -Dwrapper.version=3.2.3
wrapper  | Command[20] : -Dwrapper.native_library=wrapper
wrapper  | Command[21] : -Dwrapper.cpu.timeout=10
wrapper  | Command[22] : -Dwrapper.jvmid=1
wrapper  | Command[23] : org.apache.directory.daemon.TanukiBootstrapper
wrapper  | Command[24] : /opt/apache/apacheds
wrapper  | Command[25] : org.apache.directory.server.Service
wrapper  | Command[26] : /var/lib/apacheds-1.5.4/default/conf/server.xml
wrapper  | Launching a JVM...
jvm 1    | WrapperManager class initialized by thread: main  Using classloader: sun.misc.Launcher$AppClassLoader@6d6f0472
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    | 
jvm 1    | Wrapper Manager: JVM #1
jvm 1    | Running a 64-bit JVM.
jvm 1    | Wrapper Manager: Registering shutdown hook
jvm 1    | Wrapper Manager: Using wrapper
jvm 1    | Load native library.  One or more attempts may fail if platform specific libraries
do not exist.
jvm 1    | Loading native library failed: libwrapper-linux-x86-64.so  Cause: java.lang.UnsatisfiedLinkError:
no wrapper-linux-x86-64 in java.library.path
jvm 1    | Loaded native library: libwrapper.so
jvm 1    | Calling native initialization method.
jvm 1    | Inside native WrapperManager initialization method
jvm 1    | Java Version   : 1.6.0_07-b06 Java HotSpot(TM) 64-Bit Server VM
jvm 1    | Java VM Vendor : Sun Microsystems Inc.
jvm 1    | 
jvm 1    | WrapperManager.start(org.apache.directory.daemon.TanukiBootstrapper@77c99159, args["/opt/apache/apacheds",
"org.apache.directory.server.Service", "/var/lib/apacheds-1.5.4/default/conf/server.xml"])
called by thread: main
jvm 1    | Control event monitor thread started.
jvm 1    | Startup runner thread started.
jvm 1    | Communications runner thread started.
jvm 1    | Open socket to wrapper...Wrapper-Connection
jvm 1    | Opened Socket from 31000 to 32000
jvm 1    | Send a packet KEY : XLcqj8NhXqXlQUe2
jvm 1    | handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000])
wrapperp | accepted a socket from 127.0.0.1 on port 31000
wrapperp | read a packet KEY : XLcqj8NhXqXlQUe2
wrapper  | Got key from JVM: XLcqj8NhXqXlQUe2
wrapperp | send a packet LOW_LOG_LEVEL : 1
wrapperp | send a packet PING_TIMEOUT : 30
wrapperp | send a packet PROPERTIES : (Property Values)
wrapper  | Start Application.
wrapperp | send a packet START : start
jvm 1    | Received a packet LOW_LOG_LEVEL : 1
jvm 1    | Wrapper Manager: LowLogLevel from Wrapper is 1
jvm 1    | Received a packet PING_TIMEOUT : 30
jvm 1    | PingTimeout from Wrapper is 30000
jvm 1    | Received a packet PROPERTIES : (Property Values)
jvm 1    | Received a packet START : start
jvm 1    | calling WrapperListener.start()
jvm 1    | Waiting for WrapperListener.start runner thread to complete.
jvm 1    | WrapperListener.start runner thread started.
jvm 1    |            _                     _          ____  ____   
jvm 1    |           / \   _ __   __ _  ___| |__   ___|  _ \/ ___|  
jvm 1    |          / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \   
jvm 1    |         / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |  
jvm 1    |        /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/   
jvm 1    |                |_|                                                            
  
jvm 1    | 
jvm 1    | [15:50:30] ERROR [org.apache.directory.server.core.security.CoreKeyStoreSpi] -
Failed on attempt to extract key.
jvm 1    | java.lang.NullPointerException
jvm 1    | 	at org.apache.directory.server.core.security.TlsKeyGenerator.getKeyPair(TlsKeyGenerator.java:167)
jvm 1    | 	at org.apache.directory.server.core.security.CoreKeyStoreSpi.engineGetKey(CoreKeyStoreSpi.java:230)
jvm 1    | 	at java.security.KeyStore.getKey(KeyStore.java:763)
jvm 1    | 	at com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:113)
jvm 1    | 	at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:48)
jvm 1    | 	at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
jvm 1    | 	at org.apache.directory.server.ldap.handlers.extended.StartTlsHandler.setLdapServer(StartTlsHandler.java:169)
jvm 1    | 	at org.apache.directory.server.ldap.LdapService.startLDAP0(LdapService.java:393)
jvm 1    | 	at org.apache.directory.server.ldap.LdapService.start(LdapService.java:321)
jvm 1    | 	at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:136)
jvm 1    | 	at org.apache.directory.server.Service.init(Service.java:86)
jvm 1    | 	at org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:151)
jvm 1    | 	at org.apache.directory.daemon.TanukiBootstrapper.start(TanukiBootstrapper.java:51)
jvm 1    | 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
jvm 1    | [15:50:30] ERROR [org.apache.directory.server.core.security.CoreKeyStoreSpi] -
Failed on attempt to extract key.
jvm 1    | java.lang.NullPointerException
jvm 1    | 	at org.apache.directory.server.core.security.TlsKeyGenerator.getKeyPair(TlsKeyGenerator.java:167)
jvm 1    | 	at org.apache.directory.server.core.security.CoreKeyStoreSpi.engineGetKey(CoreKeyStoreSpi.java:230)
jvm 1    | 	at java.security.KeyStore.getKey(KeyStore.java:763)
jvm 1    | 	at com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:113)
jvm 1    | 	at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:48)
jvm 1    | 	at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
jvm 1    | 	at org.apache.directory.server.ldap.handlers.ssl.LdapsInitializer.init(LdapsInitializer.java:59)
jvm 1    | 	at org.apache.directory.server.ldap.LdapService.start(LdapService.java:307)
jvm 1    | 	at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:143)
jvm 1    | 	at org.apache.directory.server.Service.init(Service.java:86)
jvm 1    | 	at org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:151)
jvm 1    | 	at org.apache.directory.daemon.TanukiBootstrapper.start(TanukiBootstrapper.java:51)
jvm 1    | 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
jvm 1    | WrapperListener.start runner thread stopped.
jvm 1    | returned from WrapperListener.start()
jvm 1    | Send a packet STARTED : 
wrapperp | read a packet STARTED : 
wrapper  | JVM signalled that it was started.
jvm 1    | Startup runner thread stopped.
wrapperp | send a packet PING : ping
jvm 1    | Received a packet PING : ping
jvm 1    | Send a packet PING : ok
wrapperp | read a packet PING : ok
wrapper  | Got ping response from JVM
wrapperp | send a packet PING : ping
jvm 1    | Received a packet PING : ping
jvm 1    | Send a packet PING : ok
wrapperp | read a packet PING : ok
wrapper  | Got ping response from JVM
jvm 1    | [15:50:35] WARN [org.apache.directory.mitosis.service.protocol.handler.ReplicationClientProtocolHandler]
- [host-1/10.3.134.201:10390] [Replica-host-2] Starting a partial replication log transfer.

When trying to connect the same exact credentials that work without mitosis fail with error
code 49 "INVALID_CREDENTIALS"
I can bind anonymous while running and even create a user in the directory, but It did not
propagate nor could I use it to login. 
using anonymous access to search both peers it is clear that the directory is NOT being replicated
at this point. 
Both sides claim to be sending partial replication logs to each other. 

I'm happy to send any more details. Please let me know what you need. 

Also, please note I spend the better part of the day trying to RTFM. 
Most of the luck I have had to his point has been trial and error. 

Thanks
Ben

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message