Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44120

Git checkout hangs after update on 2.59

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          cmuche Christoph M created issue -
          cmuche Christoph M made changes -
          Field Original Value New Value
          Description 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:

          {color:#707070}{{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)}}{color}
          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:

          {color:#707070}{{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)}}{color}

          {color:#707070}---{color}

          {color:#707070}Updated from 2.53 to 2.59, updated OpenJDK from 1.7 to 1.8. Jenkins running on Ubuntu 15.{color}
          markewaite Mark Waite made changes -
          Assignee Mark Waite [ markewaite ]
          markewaite Mark Waite made changes -
          Component/s trilead-api-plugin [ 22324 ]
          Component/s git-plugin [ 15543 ]
          Hide
          markewaite Mark Waite added a comment -

          Can you confirm that you're using JGit as your git implementation for that job, rather than command line git?

          Can you provide enough steps so that someone else can duplicate the problem?

          I've reassigned the report to the trilead plugin since that has been changed recently to update to a newer version.

          Show
          markewaite Mark Waite added a comment - Can you confirm that you're using JGit as your git implementation for that job, rather than command line git? Can you provide enough steps so that someone else can duplicate the problem? I've reassigned the report to the trilead plugin since that has been changed recently to update to a newer version.
          Hide
          cmuche Christoph M added a comment - - edited

          Yes, JGit is the only configured (and used) git tool.

          The checkout process is done in a pipeline by this code:

          checkout([$class: 'GitSCM', branches: [[name: BRANCH_NAME]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '...', url: 'git@github.com:.../....git']]])

          but also the multibranch / branch tracking project isn't able to access (prune) the repository.

          Show
          cmuche Christoph M added a comment - - edited Yes, JGit is the only configured (and used) git tool. The checkout process is done in a pipeline by this code: checkout([$class: 'GitSCM', branches: [ [name: BRANCH_NAME] ], doGenerateSubmoduleConfigurations: false, extensions: [ [$class: 'CleanBeforeCheckout'] ], submoduleCfg: [], userRemoteConfigs: [ [credentialsId: '...', url: 'git@github.com:.../....git'] ]]) but also the multibranch / branch tracking project isn't able to access (prune) the repository.
          Hide
          vlastimil_dolejs Vlastimil Dolejš added a comment -

          Hi, I have the same issue. JGit, Oracle JDK 8u131, Jenkins 2.61, Windows server slave.

          Please look into this - this issue is preventing all the jobs from running.

          Show
          vlastimil_dolejs Vlastimil Dolejš added a comment - Hi, I have the same issue. JGit, Oracle JDK 8u131, Jenkins 2.61, Windows server slave. Please look into this - this issue is preventing all the jobs from running.
          Hide
          cmuche Christoph M added a comment -

          I also just tested it with v2.61. The problem still exists.

          Show
          cmuche Christoph M added a comment - I also just tested it with v2.61. The problem still exists.
          markewaite Mark Waite made changes -
          Assignee Michael Clarke [ mc1arke ]
          Hide
          mc1arke 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

          Show
          mc1arke 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
          Hide
          cmuche 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.

          Show
          cmuche 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.
          Hide
          vlastimil_dolejs Vlastimil Dolejš added a comment -

          Michael Clarke - I also clone from Github.

          Show
          vlastimil_dolejs Vlastimil Dolejš added a comment - Michael Clarke - I also clone from Github.
          Hide
          mc1arke 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.

          Show
          mc1arke 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.
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          danielbeck Daniel Beck made changes -
          Labels lts-candidate
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          scm_issue_link 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)

          Show
          scm_issue_link 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)
          olivergondza Oliver Gondža made changes -
          Labels lts-candidate 2.60.1-fixed
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: