2 Replies Latest reply on Oct 23, 2011 12:25 AM by jbullock_jbullock

    Cannot connect to remote servicemix: "... Failed to get the session."

    jbullock_jbullock

      I am a new user of Fuse ServiceMix.  I'm running ServiceMix 4.4.1 on CentOS 5.6.  I successfully started servicemix in console mode and in the background using the server argument.  I have successfully installed and connected to the webconsole.  I am trying to connect a remote client but the ssh:ssh command answers: 

      Error executing command: Failed to get the session.

       

      Server 1:

      nohup ./bin/servicemix server &

       

      Server 2:

      ./bin/servicemix client

      ...

      karaf@root> ssh:ssh -l smx -P smx -p 8101 rsvsm1

      Connecting to host rsvsm1 on port 8101

      Error executing command: Failed to get the session.

       

      Any suggestions would be appreciated.

        • 1. Re: Cannot connect to remote servicemix: "... Failed to get the session."
          mjabali

          Hi John,

           

          Just out of curiosity, are you able to connect to ServiceMix using any standard SSH tool if you run:

          ssh -p 8101 localhost -l smx

          in a terminal session on the same machine?

           

          If so, can you try the same from a remote host and see what happens?

           

          Also, you can set a different log level in ServiceMix with the following command:

           

          karaf@root> log:set DEBUG

           

          and check for any additional reason that's failing.

           

          Just trying to isolate where the problem could be...

           

          Hope this helps,

           

          -Marcelo

          • 2. Re: Cannot connect to remote servicemix: "... Failed to get the session."
            jbullock_jbullock

            Thanks for these suggestions, Marcelo.

             

            I tried the standard ssh command and it worked!  I did not realize that this was a way to connect to a "server" servicemix process.  This is much better than what I had been trying to do: run a servicemix client process on another server and from it use ssh:ssh.

             

            I will retry the two servicemix connection with DEBUG level logging and see what I learn.

             

            Thanks!

             

            John