Since version 2.59 there is a problem when checking out Git repositories on any of our projects. Jenkins seems to hang:

      Fetching changes from the remote Git repository

      Cleaning workspace

      ...and that's it.

      When looking into the Jenkins logs I see the following exception:

      May 08, 2017 11:34:47 AM hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException SEVERE: A thread (Thread-17/172) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code. java.lang.NullPointerException at com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:447) at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:790) at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:502) at java.lang.Thread.run(Thread.java:745)

      Updated from 2.53 to 2.59, updated OpenJDK from 1.7 to 1.8. Jenkins running on Ubuntu 15.

          [JENKINS-44120] Git checkout hangs after update on 2.59

          Can anyone who is having this issue provide details about the server they're SSHing in to when checking out the Git repository - i.e. Operating System and SSH host software versions and configurations? Primarily running ssh -vv git-host (where git-host is the host you're trying to checkout from) should give an idea about the MACs, Ciphers and Key Exchange algorithms your Git host is offering, but also checking your SSH Server's logs for the Git client's connection attempt wold be useful

          Michael Clarke added a comment - Can anyone who is having this issue provide details about the server they're SSHing in to when checking out the Git repository - i.e. Operating System and SSH host software versions and configurations? Primarily running ssh -vv git-host (where git-host is the host you're trying to checkout from) should give an idea about the MACs, Ciphers and Key Exchange algorithms your Git host is offering, but also checking your SSH Server's logs for the Git client's connection attempt wold be useful

          Christoph M added a comment -

          In my case it's just Github. Credentials are stored in a file on the master which is distributed to the agents via Jenkins.

          Christoph M added a comment - In my case it's just Github. Credentials are stored in a file on the master which is distributed to the agents via Jenkins.

          mc1arke - I also clone from Github.

          Vlastimil Dolejš added a comment - mc1arke - I also clone from Github.

          I've just tried this using Jenkins 2.61 and git-plugin configured to use JGit, setupto clone one my public GitHub forks whilst authenticating with an ECDSA public key and was able to clone successfully. I therefore need some more details from people having this issue about anything specific in their setup that may help me replicate the issue.

          Michael Clarke added a comment - I've just tried this using Jenkins 2.61 and git-plugin configured to use JGit, setupto clone one my public GitHub forks whilst authenticating with an ECDSA public key and was able to clone successfully. I therefore need some more details from people having this issue about anything specific in their setup that may help me replicate the issue.

          Code changed in jenkins
          User: Michael Clarke
          Path:
          src/com/trilead/ssh2/transport/KexManager.java
          http://jenkins-ci.org/commit/trilead-ssh2/1d365242a839381a9b205c25f66f0055861c9d5c
          Log:
          JENKINS-44120 Prevent NPE when using DH group 1 or 14 with SHA1 KEX

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: src/com/trilead/ssh2/transport/KexManager.java http://jenkins-ci.org/commit/trilead-ssh2/1d365242a839381a9b205c25f66f0055861c9d5c Log: JENKINS-44120 Prevent NPE when using DH group 1 or 14 with SHA1 KEX

          Code changed in jenkins
          User: Michael Clarke
          Path:
          src/com/trilead/ssh2/transport/KexManager.java
          http://jenkins-ci.org/commit/trilead-ssh2/8ddd97a72e62f62e9eb04c873610893be1a8b053
          Log:
          Merge pull request #24 from mc1arke/jenkins-44120-fix-npe

          JENKINS-44120 Prevent NPE when using DH group 1 or 14 with SHA1 KEX

          Compare: https://github.com/jenkinsci/trilead-ssh2/compare/ef5cb143f9f5...8ddd97a72e62

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: src/com/trilead/ssh2/transport/KexManager.java http://jenkins-ci.org/commit/trilead-ssh2/8ddd97a72e62f62e9eb04c873610893be1a8b053 Log: Merge pull request #24 from mc1arke/jenkins-44120-fix-npe JENKINS-44120 Prevent NPE when using DH group 1 or 14 with SHA1 KEX Compare: https://github.com/jenkinsci/trilead-ssh2/compare/ef5cb143f9f5...8ddd97a72e62

          Code changed in jenkins
          User: Michael Clarke
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/7dbcd02cf71eabf92e58522968230d564d9b99e5
          Log:
          [FIXED JENKINS-44120] Bump Trilead version to fix NPE in KEX negotiation

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/7dbcd02cf71eabf92e58522968230d564d9b99e5 Log: [FIXED JENKINS-44120] Bump Trilead version to fix NPE in KEX negotiation

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/1f4183a9a38d347107a0d7d8be0ae53674825928
          Log:
          Merge pull request #2888 from mc1arke/jenkins-44120-trilead-npe-fix

          [FIXED JENKINS-44120] Bump Trilead version to fix NPE in KEX negotiation

          Compare: https://github.com/jenkinsci/jenkins/compare/8199ec5ae4ef...1f4183a9a38d

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/1f4183a9a38d347107a0d7d8be0ae53674825928 Log: Merge pull request #2888 from mc1arke/jenkins-44120-trilead-npe-fix [FIXED JENKINS-44120] Bump Trilead version to fix NPE in KEX negotiation Compare: https://github.com/jenkinsci/jenkins/compare/8199ec5ae4ef...1f4183a9a38d

          Code changed in jenkins
          User: Michael Clarke
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/647b78b972ca888030b1259dc4af436400d16319
          Log:
          [FIXED JENKINS-44120] Bump Trilead version to fix NPE in KEX negotiation

          (cherry picked from commit 7dbcd02cf71eabf92e58522968230d564d9b99e5)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/647b78b972ca888030b1259dc4af436400d16319 Log: [FIXED JENKINS-44120] Bump Trilead version to fix NPE in KEX negotiation (cherry picked from commit 7dbcd02cf71eabf92e58522968230d564d9b99e5)

          Code changed in jenkins
          User: Michael Clarke
          Path:
          pom.xml
          http://jenkins-ci.org/commit/ssh-slaves-plugin/cf8510581c5fcb932a54e4f3e1fd00afd1b01e91
          Log:
          Overcome JENKINS-44120 during test case

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: pom.xml http://jenkins-ci.org/commit/ssh-slaves-plugin/cf8510581c5fcb932a54e4f3e1fd00afd1b01e91 Log: Overcome JENKINS-44120 during test case

            mc1arke Michael Clarke
            cmuche Christoph M
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: