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

CVS-Plugin sporadically fails to connect via SSH

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cvs-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      We see seemingly random connection failures:

      FATAL: CVS authentication failure while running rlog command
      java.lang.RuntimeException: CVS authentication failure while running rlog command
      at hudson.scm.AbstractCvs.getRemoteLogForModule(AbstractCvs.java:630)
      at hudson.scm.AbstractCvs.calculateChangeLog(AbstractCvs.java:696)
      at hudson.scm.AbstractCvs.postCheckout(AbstractCvs.java:715)
      at hudson.scm.CVSSCM.checkout(CVSSCM.java:359)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1367)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:674)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:579)
      at hudson.model.Run.execute(Run.java:1575)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)
      Caused by: org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.
      at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141)
      at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: com.jcraft.jsch.JSchException: verify: false
      at com.jcraft.jsch.Session.connect(Session.java:307)
      at com.jcraft.jsch.Session.connect(Session.java:160)
      at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:139)
      ... 2 more

      There is a (fixed in 1.50) jsch bug, which seems related. I updated our Jsch yesterday and since then no more connection errors occurred (Before it occurred at least a few times a day, so I'm pretty confident that 1.50 fixed the issue).

        Attachments

          Activity

          Hide
          saschavogt Sascha Vogt added a comment -

          Created a pull-request with the modified POM (to include Jsch 1.50)

          Not sure, this is the correct way, as previously Jsch wasn't specified as dependency, so I guess it was included via some sort of dependency management.

          Anyway, here's the pull request: https://github.com/jenkinsci/cvs-plugin/pull/23

          Show
          saschavogt Sascha Vogt added a comment - Created a pull-request with the modified POM (to include Jsch 1.50) Not sure, this is the correct way, as previously Jsch wasn't specified as dependency, so I guess it was included via some sort of dependency management. Anyway, here's the pull request: https://github.com/jenkinsci/cvs-plugin/pull/23
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Sascha Vogt
          Path:
          pom.xml
          http://jenkins-ci.org/commit/cvsclient/4af5d719eb203d125dcf807a8228d64ab9e35333
          Log:
          [FIXED JENKINS-18591] - Sporadic connection failures

          Jsch bug http://sourceforge.net/p/jsch/bugs/58/ causes random connection
          failures. Fixed in Jsch 1.50 - updating dependency

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sascha Vogt Path: pom.xml http://jenkins-ci.org/commit/cvsclient/4af5d719eb203d125dcf807a8228d64ab9e35333 Log: [FIXED JENKINS-18591] - Sporadic connection failures Jsch bug http://sourceforge.net/p/jsch/bugs/58/ causes random connection failures. Fixed in Jsch 1.50 - updating dependency
          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/cvsclient/3003bc92180c2fcca84fef32b535ee418fc9037e
          Log:
          Merge pull request #1 from svogt/JENKINS-18591

          [FIXED JENKINS-18591] - Sporadic connection failures

          Compare: https://github.com/jenkinsci/cvsclient/compare/33d0c09f41a9...3003bc92180c

          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/cvsclient/3003bc92180c2fcca84fef32b535ee418fc9037e Log: Merge pull request #1 from svogt/ JENKINS-18591 [FIXED JENKINS-18591] - Sporadic connection failures Compare: https://github.com/jenkinsci/cvsclient/compare/33d0c09f41a9...3003bc92180c
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Sascha Vogt
          Path:
          pom.xml
          http://jenkins-ci.org/commit/cvs-plugin/b93ce65fb81ca5f19f6faab1689cb4695341d13a
          Log:
          [FIXED JENKINS-18591] - Update cvsclient to latest version

          The new cvsclient lib should contain Jsch 1.50

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sascha Vogt Path: pom.xml http://jenkins-ci.org/commit/cvs-plugin/b93ce65fb81ca5f19f6faab1689cb4695341d13a Log: [FIXED JENKINS-18591] - Update cvsclient to latest version The new cvsclient lib should contain Jsch 1.50
          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/cvs-plugin/3ec70dd4f1a744a87c93f71d2a3588d7cc629c91
          Log:
          Merge pull request #24 from svogt/JENKINS-18591

          [FIXED JENKINS-18591] - Update cvsclient to latest version

          Compare: https://github.com/jenkinsci/cvs-plugin/compare/839a9f84d88f...3ec70dd4f1a7

          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/cvs-plugin/3ec70dd4f1a744a87c93f71d2a3588d7cc629c91 Log: Merge pull request #24 from svogt/ JENKINS-18591 [FIXED JENKINS-18591] - Update cvsclient to latest version Compare: https://github.com/jenkinsci/cvs-plugin/compare/839a9f84d88f...3ec70dd4f1a7

            People

            • Assignee:
              Unassigned
              Reporter:
              saschavogt Sascha Vogt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: