java.lang.IllegalStateException: Unsupported command: SSH_MSG_KEXINIT

Atlassian JIRA | Luuk van Raaij | 3 years ago
  1. 0

    - Installed Bamboo version: 5.3 build 4101 - 10 Dec 13 - Bamboo is configured with Git repositories using "git@host.name:REPO/name" Repository URL's - Remote Git repository runs gitolite on a Gentoo server - Previously, that Gentoo gitolite server ran OpenSSH_5.9p1-hpn13v11, OpenSSL 1.0.1e 11 Feb 2013 as it's sshd - After upgrading the net-misc/openssh package on that machine to openssh-6.4_p1-r1, bamboo cannot check out any repository contained on that machine, failing with this message: {code} 2014-01-06 18:02:03,027 WARN [NioProcessor-1] [ClientSessionImpl] Exception caught java.lang.IllegalStateException: Unsupported command: SSH_MSG_KEXINIT at org.apache.sshd.client.session.ClientSessionImpl.doHandleMessage(ClientSessionImpl.java:440) at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:307) at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:566) at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:236) at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:58) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:697) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640) at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1111) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 2014-01-06 18:02:03,028 WARN [Connection monitoring thread - 9958077f-ce4f-4e46-9138-9fae93832b7b] [SshProxyCommand] While connecting to [git@host.name/host.ip.address:22]: Error opening exec channel org.apache.sshd.common.SshException: Channel closed at org.apache.sshd.client.channel.AbstractClientChannel.close(AbstractClientChannel.java:90) at org.apache.sshd.common.session.AbstractSession.close(AbstractSession.java:314) at org.apache.sshd.client.session.ClientSessionImpl.close(ClientSessionImpl.java:301) at org.apache.sshd.common.session.AbstractSession.exceptionCaught(AbstractSession.java:276) at org.apache.sshd.common.AbstractSessionIoHandler.exceptionCaught(AbstractSessionIoHandler.java:50) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:697) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:483) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:46) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:791) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:111) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:483) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:471) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:437) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:697) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640) at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1111) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 2014-01-06 18:02:03,030 INFO [4-BAM::PlanExec:pool-7-thread-4] [RetryingTaskExecutor] Task 'Collecting changes for XXXX-YYY' was unsuccessful. Run 2 / 2. Exception thrown when running task 'Collecting changes for XXXX-YYY', with message: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://9958077f-ce4f-4e46-9138-9fae93832b7b@127.0.0.1:56820/XXXX/ZZZZ failed with code 128. Working directory was [.]., stderr: Error opening exec channel stdout: [BAMBOO-SSH-PROXY: [While connecting to [git@host.name/host.ip.address:22]: Error opening exec channel: Channel closed], fatal: The remote end hung up unexpectedly] 2014-01-06 18:02:03,030 ERROR [4-BAM::PlanExec:pool-7-thread-4] [RetryingTaskExecutor] Failed to run task 'Collecting changes for XXXX-YYY' after 2 attempts. Task was not executed. {code} This only occurs with Bamboo. Regular ssh and 'git ls-remote' commands from the CLI work as expected against the host. After downgrading the remote OpenSSH server back to 5.9 all is fine once more.

    Atlassian JIRA | 3 years ago | Luuk van Raaij
    java.lang.IllegalStateException: Unsupported command: SSH_MSG_KEXINIT
  2. 0

    - Installed Bamboo version: 5.3 build 4101 - 10 Dec 13 - Bamboo is configured with Git repositories using "git@host.name:REPO/name" Repository URL's - Remote Git repository runs gitolite on a Gentoo server - Previously, that Gentoo gitolite server ran OpenSSH_5.9p1-hpn13v11, OpenSSL 1.0.1e 11 Feb 2013 as it's sshd - After upgrading the net-misc/openssh package on that machine to openssh-6.4_p1-r1, bamboo cannot check out any repository contained on that machine, failing with this message: {code} 2014-01-06 18:02:03,027 WARN [NioProcessor-1] [ClientSessionImpl] Exception caught java.lang.IllegalStateException: Unsupported command: SSH_MSG_KEXINIT at org.apache.sshd.client.session.ClientSessionImpl.doHandleMessage(ClientSessionImpl.java:440) at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:307) at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:566) at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:236) at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:58) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:697) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640) at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1111) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 2014-01-06 18:02:03,028 WARN [Connection monitoring thread - 9958077f-ce4f-4e46-9138-9fae93832b7b] [SshProxyCommand] While connecting to [git@host.name/host.ip.address:22]: Error opening exec channel org.apache.sshd.common.SshException: Channel closed at org.apache.sshd.client.channel.AbstractClientChannel.close(AbstractClientChannel.java:90) at org.apache.sshd.common.session.AbstractSession.close(AbstractSession.java:314) at org.apache.sshd.client.session.ClientSessionImpl.close(ClientSessionImpl.java:301) at org.apache.sshd.common.session.AbstractSession.exceptionCaught(AbstractSession.java:276) at org.apache.sshd.common.AbstractSessionIoHandler.exceptionCaught(AbstractSessionIoHandler.java:50) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:697) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:483) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:46) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:791) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:111) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:483) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:471) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:437) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:697) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640) at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1111) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 2014-01-06 18:02:03,030 INFO [4-BAM::PlanExec:pool-7-thread-4] [RetryingTaskExecutor] Task 'Collecting changes for XXXX-YYY' was unsuccessful. Run 2 / 2. Exception thrown when running task 'Collecting changes for XXXX-YYY', with message: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://9958077f-ce4f-4e46-9138-9fae93832b7b@127.0.0.1:56820/XXXX/ZZZZ failed with code 128. Working directory was [.]., stderr: Error opening exec channel stdout: [BAMBOO-SSH-PROXY: [While connecting to [git@host.name/host.ip.address:22]: Error opening exec channel: Channel closed], fatal: The remote end hung up unexpectedly] 2014-01-06 18:02:03,030 ERROR [4-BAM::PlanExec:pool-7-thread-4] [RetryingTaskExecutor] Failed to run task 'Collecting changes for XXXX-YYY' after 2 attempts. Task was not executed. {code} This only occurs with Bamboo. Regular ssh and 'git ls-remote' commands from the CLI work as expected against the host. After downgrading the remote OpenSSH server back to 5.9 all is fine once more.

    Atlassian JIRA | 3 years ago | Luuk van Raaij
    java.lang.IllegalStateException: Unsupported command: SSH_MSG_KEXINIT
  3. 0

    Step: 1) create blank data db and key db for opal 2) install a opal and make neccessary changes in configuration files 3) issue an upgrade on opal and startup opal server 4) login to opal via putty 5) run command help or show or copy or all of them 6) leave putty untouched for a certain time Result: step1-5) everything runs smooth before step 5 step 6) putty will be disconnected from opal server and pop up a small window with message: "server unexpected closed network connection" with windows title "Putty Fatal Error". (see the attachement). by the way, the duration between running command and network disconnection is not fixed, once it was only one mininute after running copy command, the the longest time lasted up to one hour) in this case, there're two observations: a) to continue work, need to close the current putty window and re-run putty to login. b) no error info logged in opal-session.log, but in opal.log, there's warning info about 'ServerSession' (see the bottom lines) ---------------------------------- Warning info from opal.log 2010-03-24 12:21:52,125 - INFO - opal.fs.OpalFileSystem - nativeRootURL: file:///C:/Documents and Settings/cliu/My Documents/Opal/opal-work/ 2010-03-24 12:21:52,125 - INFO - opal.fs.OpalFileSystem - nativeFileURL: file:///C:/Documents and Settings/cliu/My Documents/Opal/opal-work/a.xls 2010-03-24 12:21:52,171 - WARN - urce.excel.ExcelDatasource - Creating an ExcelDatasource using Excel 97 format which only supports 256 columns. This may not be sufficient for large amounts of variables. Specify a filename with an extension other than 'xls' to use Excel 2007 format. 2010-03-24 12:21:55,875 - INFO - a.support.DatasourceCopier - Copying ValueTable 'Hips' to 'a.xls.Hips' (copyMetadata=true, copyValues=true). 2010-03-24 12:48:22,875 - INFO - rver.session.ServerSession - Received SSH_MSG_IGNORE 2010-03-24 12:48:23,296 - WARN - rver.session.ServerSession - Exception caught java.lang.IllegalStateException: Unsupported command: SSH_MSG_KEXINIT at org.apache.sshd.server.session.ServerSession.handleMessage(ServerSession.java:225) at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:501) at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:225) at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:58) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:713) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793) at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:638) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:598) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:587) at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:61) at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:969) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2010-03-24 12:48:23,328 - INFO - rver.session.ServerSession - Closing session 2010-03-24 12:48:23,328 - INFO - ver.channel.ChannelSession - Closing channel 0 immediately 2010-03-24 12:49:01,609 - INFO - ctValidatingSessionManager - Validating all active sessions... 2010-03-24 12:49:01,609 - INFO - ctValidatingSessionManager - Finished session validation. [1] sessions were stopped.

    JIRA | 7 years ago
    java.lang.IllegalStateException: Unsupported command: SSH_MSG_KEXINIT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I know the problem is not in the crash, but will you could help me with these problems??

    Google Groups | 4 years ago | Paulo Henrique Lerbach Rodrigues
    java.lang.IllegalStateException: Unable to negociate key exchange for item 1
  6. 0

    Gerrit and Sonar don't play well together in Tomcat, no such provider: BC

    Google Groups | 6 years ago | provegard
    java.lang.IllegalStateException: Unable to negociate key exchange for item 1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Unsupported command: SSH_MSG_KEXINIT

      at org.apache.sshd.client.session.ClientSessionImpl.doHandleMessage()
    2. Apache Mina SSHD :: Core
      AbstractSessionIoHandler.messageReceived
      1. org.apache.sshd.client.session.ClientSessionImpl.doHandleMessage(ClientSessionImpl.java:440)
      2. org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:307)
      3. org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:566)
      4. org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:236)
      5. org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:58)
      5 frames
    3. Apache MINA Core
      AbstractPollingIoProcessor$Processor.run
      1. org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)
      2. org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
      3. org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
      4. org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
      5. org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
      6. org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
      7. org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
      8. org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:697)
      9. org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651)
      10. org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640)
      11. org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
      12. org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1111)
      12 frames
    4. MINA
      NamePreservingRunnable.run
      1. org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames