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

JSch throws an exception every once in a while

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Incomplete
    • Component/s: ssh-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver: 1.615
      CentOS 6.5 x64
      JDK 1.7
    • Similar Issues:

      Description

      I have 5 Jenkins builds that run every 5 minutes, every day each of them fail at least 10 times randomly with the following exception:
      [SSH] Exception:verify: false
      com.jcraft.jsch.JSchException: verify: false
      at com.jcraft.jsch.Session.connect(Session.java:295)
      at com.jcraft.jsch.Session.connect(Session.java:150)
      at org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:141)
      at org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:151)
      at org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.Build$BuildExecution.build(Build.java:205)
      at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at hudson.model.Run.execute(Run.java:1744)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      Build step 'Execute shell script on remote host using ssh' marked build as failure

        Attachments

          Activity

          Hide
          stevault Steve Tevault added a comment -

          We have the exact same issue on Jenkins 1.620. Has there been any progress on this?

          Show
          stevault Steve Tevault added a comment - We have the exact same issue on Jenkins 1.620. Has there been any progress on this?
          Hide
          paulcalabro Paul Calabro added a comment -

          We're having the same issue on Jenkins 1.624 as well. Any updates on this?

          Show
          paulcalabro Paul Calabro added a comment - We're having the same issue on Jenkins 1.624 as well. Any updates on this?
          Hide
          stevault Steve Tevault added a comment -

          Paul,
          I switched to using the 'Publish Over SSH' plugin, and the problem hasn't happened.

          Show
          stevault Steve Tevault added a comment - Paul, I switched to using the 'Publish Over SSH' plugin, and the problem hasn't happened.
          Hide
          paulcalabro Paul Calabro added a comment -

          Thanks Steve for the assistance. I'll give that a try!

          Show
          paulcalabro Paul Calabro added a comment - Thanks Steve for the assistance. I'll give that a try!
          Hide
          ljader Łukasz Jąder added a comment -

          Recent 2.5 version of ssh-plugin uses upgrated JSch 0.1.54.1 version,
          which maybe was the issue cause here.

          Closing old issue (no update for over a year)

          Show
          ljader Łukasz Jąder added a comment - Recent 2.5 version of ssh-plugin uses upgrated JSch 0.1.54.1 version, which maybe was the issue cause here. Closing old issue (no update for over a year)

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jclarkk Jonathan Clark
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: