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

Jenkins: [reproducible] ssh slave log not available, spinning wheel after upgrading to SSH Credentials 1.4, SSH Slaves 1.2 and disconnecting/reconnecting

      With a brand new Jenkins 1.532 install, no plugins, I am able to setup a dumb ssh slave fine, and can see the slave logfile when I disconnect/reconnect and click Log. This is using Credentials Plugin 1.4, SSH Credentials Plugin 0.3, SSH Slaves Plugin 0.25

      When I update to use Credentials Plugin 1.8.2 and restart, this process continues working fine. So far so good.

      But when I update to use SSH Credentials Plugin 1.4, SSH Slaves Plugin 1.2 I see a regression – when I disconnect/reconnect, then click on Log to view the slave logfile, I just see a spinning wheel in the browser. I can tell the slave did successfully connect (since I see 1 executor available), but I cannot see any slave log output.

      I can consistently reproduce this issue.

      This is a pretty major issue when used in a virtualized slaves environment where slaves are disconnected, reset, and reconnected, since this makes it very difficult to understand the status of the slaves and to troubleshoot slave connection issues.

          [JENKINS-19758] Jenkins: [reproducible] ssh slave log not available, spinning wheel after upgrading to SSH Credentials 1.4, SSH Slaves 1.2 and disconnecting/reconnecting

          Ok, I cannot reproduce this issue with Jenkins 1.520 but I can with Jenkins 1.521... now to hunt for the culprit commit

          Stephen Connolly added a comment - Ok, I cannot reproduce this issue with Jenkins 1.520 but I can with Jenkins 1.521... now to hunt for the culprit commit

          Something is closing the PrintStream of the TaskListener after disconnection and that is disconnecting the stream from the file

          Stephen Connolly added a comment - Something is closing the PrintStream of the TaskListener after disconnection and that is disconnecting the stream from the file

          Stephen Connolly added a comment - https://github.com/jenkinsci/ssh-slaves-plugin/commit/2006a55e549d3b3094b04f9bd694c2f1ef8e9283 is the culprit

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/main/java/hudson/plugins/sshslaves/SSHLauncher.java
          http://jenkins-ci.org/commit/ssh-slaves-plugin/f6a1e98bfb33c6d8501a8221cbad2cc6e13e5f55
          Log:
          [FIXED JENKINS-19758] Trilead SSH was closing the logger stream on Jenkins 1.521+

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/hudson/plugins/sshslaves/SSHLauncher.java http://jenkins-ci.org/commit/ssh-slaves-plugin/f6a1e98bfb33c6d8501a8221cbad2cc6e13e5f55 Log: [FIXED JENKINS-19758] Trilead SSH was closing the logger stream on Jenkins 1.521+

          Fixed in SSH Slaves 1.4

          Stephen Connolly added a comment - Fixed in SSH Slaves 1.4

          Steve Roth added a comment -

          Thank-you, Stephen. I will try to verify with this new version as soon as possible.

          Steve Roth added a comment - Thank-you, Stephen. I will try to verify with this new version as soon as possible.

          Steve Roth added a comment -

          I can no longer repro this issue after upgrading to SSH-slaves 1.4, and after upgrading to Jenkins 1.534. Looks good!

          Thanks!
          -Steve

          Steve Roth added a comment - I can no longer repro this issue after upgrading to SSH-slaves 1.4, and after upgrading to Jenkins 1.534. Looks good! Thanks! -Steve

          Costin Caraivan added a comment - - edited

          Upgraded to Jenkins 1.534, SSH Slaves 1.4, Credentials 1.9, SSH credentials 1.5.1.
          Same error, still.
          Master + slave Ubuntu 12.04, Java versions on both:
          java version "1.6.0_27"
          OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2)
          OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

          Costin Caraivan added a comment - - edited Upgraded to Jenkins 1.534, SSH Slaves 1.4, Credentials 1.9, SSH credentials 1.5.1. Same error, still. Master + slave Ubuntu 12.04, Java versions on both: java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

          Daniel Beck added a comment -

          ccaraivan: Are you still experiencing this issue on recent Jenkins + plugin versions?

          Daniel Beck added a comment - ccaraivan : Are you still experiencing this issue on recent Jenkins + plugin versions?

          Daniel Beck added a comment -

          No response to comment asking for updated information in three weeks, so resolving as Fixed again.

          Please file a new issue if a similar issue occurs again, it will likely have a different cause.

          Daniel Beck added a comment - No response to comment asking for updated information in three weeks, so resolving as Fixed again. Please file a new issue if a similar issue occurs again, it will likely have a different cause.

            stephenconnolly Stephen Connolly
            sroth Steve Roth
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: