Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3791

Unable to connect to an instance with instance:connect command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • karaf
    • None

    Description

      After starting a new instance, trying to connect to the instance with instance:connect doesn't work (even using -u option):

      karaf@root()> instance:connect test
      Connecting to host localhost on port 8102
      Password:  *****
      Password:  *****
      Password:  *****
      Error executing command: Authentication failed
      

      In the log, we can see:

      2015-06-17 11:08:21,205 | INFO  | 2]-nio2-thread-1 | ClientSessionImpl                | 46 - org.apache.sshd.core - 0.14.0 | Client session created
      2015-06-17 11:08:21,207 | INFO  | 2]-nio2-thread-1 | ClientSessionImpl                | 46 - org.apache.sshd.core - 0.14.0 | Server version string: SSH-2.0-SSHD-CORE-0.14.0
      2015-06-17 11:08:21,207 | INFO  | nsole user karaf | ClientSessionImpl                | 46 - org.apache.sshd.core - 0.14.0 | Start flagging packets as pending until key exchange is done
      2015-06-17 11:08:21,306 | INFO  | 2]-nio2-thread-4 | ClientSessionImpl                | 46 - org.apache.sshd.core - 0.14.0 | Dequeing pending packets
      2015-06-17 11:08:21,308 | INFO  | 2]-nio2-thread-5 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
      2015-06-17 11:08:21,314 | INFO  | 2]-nio2-thread-6 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
      2015-06-17 11:08:21,316 | INFO  | 2]-nio2-thread-7 | UserAuthKeyboardInteractive      | 46 - org.apache.sshd.core - 0.14.0 | Received Password authentication  en-US
      2015-06-17 11:08:23,144 | INFO  | 2]-nio2-thread-8 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
      2015-06-17 11:08:23,147 | INFO  | 2]-nio2-thread-9 | UserAuthKeyboardInteractive      | 46 - org.apache.sshd.core - 0.14.0 | Received Password authentication  en-US
      2015-06-17 11:08:24,197 | INFO  | 2]-nio2-thread-1 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
      2015-06-17 11:08:24,199 | INFO  | 2]-nio2-thread-2 | UserAuthKeyboardInteractive      | 46 - org.apache.sshd.core - 0.14.0 | Received Password authentication  en-US
      2015-06-17 11:08:25,099 | INFO  | 2]-nio2-thread-3 | ClientUserAuthServiceNew         | 46 - org.apache.sshd.core - 0.14.0 | Received SSH_MSG_USERAUTH_FAILURE
      2015-06-17 11:08:25,105 | ERROR | nsole user karaf | ShellUtil                        | 42 - org.apache.karaf.shell.core - 4.0.0.SNAPSHOT | Exception caught while executing command
      org.apache.sshd.common.SshException: Authentication failed
              at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:44)[46:org.apache.sshd.core:0.14.0]
              at org.apache.karaf.shell.ssh.SshAction.execute(SshAction.java:141)[43:org.apache.karaf.shell.ssh:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.execute(ConsoleSessionImpl.java:293)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.instance.command.ConnectCommand.doExecute(ConnectCommand.java:81)[30:org.apache.karaf.instance.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.instance.command.InstanceCommandSupport.execute(InstanceCommandSupport.java:90)[30:org.apache.karaf.instance.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:267)[42:org.apache.karaf.shell.core:4.0.0.SNAPSHOT]
              at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              jbonofre Jean-Baptiste Onofré
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: