jboss-fuse / jboss-fuse-docker

Creates a docker image for JBoss Fuse
34 stars 57 forks source link

Can't ssh into the karaf container #9

Closed rparree closed 9 years ago

rparree commented 9 years ago

Hi,

I can't ssh into the container. (See connection attempts below).

I am able to connect to hawtio and use amq (after changing activemq.host to 0.0.0.0). I am also not getting the console when starting the container with it

I have tried setting karaf.delay.console to true and false (in both config.properties and in custom.properties

Note i am using fuse version 6.2.0.redhat-099 (but had the same problems with an older version)

 [jboss@5a73967f4a8b bin]$ ./client -u admin -p admin -l 4 -a 8101
 21 [main] INFO org.apache.sshd.common.util.SecurityUtils - BouncyCastle not registered, using the  default JCE provider
 162 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Connector - Creating Nio2Connector
 Logging in as admin
 164 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Connector - Connecting to /0.0.0.0:8101
 org.apache.sshd.common.RuntimeSshException: Failed to get the session.
    at  org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:43)
    at org.apache.karaf.client.Main.main(Main.java:250)
 Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.UnixAsynchronousSocketChannelImpl.checkConnect(Native Method)
    at  sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishConnect(UnixAsynchronousSocketChannelIm pl.java:252)
    at  sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:198)
    at  sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.jav a:213)
    at sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:293)
    at java.lang.Thread.run(Thread.java:745)
rparree commented 9 years ago

I just found out the karaf container is still in starting mode. That's probably the reason. Now i need to find out why it is not completing the startup.

rparree commented 9 years ago

I have justed tried 6.2.1.redhat-044 and it works without a problem