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

Unexpected error in launching a slave. This is probably a bug in Jenkins.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: selenium-plugin
    • Labels:
    • Environment:
      Ubuntu server 64 bit 14.04 (master)
      Jenkins 1.589
      Selenium 2.41

      Ubuntu 14.04 (slave)
      selenium node
    • Similar Issues:

      Description

      upgraded Jenkins from 1.585 to 1.589 and now I can't connect to one slave machine. I have another that is a Windows machine and it connects fine.

        Attachments

          Activity

          zonkey Neal Storey created issue -
          Hide
          zonkey Neal Storey added a comment -

          I also updated a few plugins like Credentials and enabled Slave to Master Access Control but this made no difference

          Show
          zonkey Neal Storey added a comment - I also updated a few plugins like Credentials and enabled Slave to Master Access Control but this made no difference
          Hide
          mawatech Markus Wagner added a comment -

          Same here, but I'm not sure if this also occurred with 1.588.

          Show
          mawatech Markus Wagner added a comment - Same here, but I'm not sure if this also occurred with 1.588.
          Hide
          zonkey Neal Storey added a comment -

          I reverted back to 1.586 which is actually what I was on prior to the upgrade (typo above). Node is back online.

          Show
          zonkey Neal Storey added a comment - I reverted back to 1.586 which is actually what I was on prior to the upgrade (typo above). Node is back online.
          Hide
          kool79 Oleksandr Kulychok added a comment -

          Please read this - https://wiki.jenkins-ci.org/display/JENKINS/Slave+To+Master+Access+Control
          >> Starting 1.587 (and 1.580.1), Jenkins added a subsystem to put a wall between a master and a slave to safely allow less trusted slaves to be connected to a master.

          Show
          kool79 Oleksandr Kulychok added a comment - Please read this - https://wiki.jenkins-ci.org/display/JENKINS/Slave+To+Master+Access+Control >> Starting 1.587 (and 1.580.1), Jenkins added a subsystem to put a wall between a master and a slave to safely allow less trusted slaves to be connected to a master.
          Hide
          zonkey Neal Storey added a comment -

          I upgraded those 3 plugins and enabled that under Global Security and the node still would come online. I believe it's related to the problem though.

          Show
          zonkey Neal Storey added a comment - I upgraded those 3 plugins and enabled that under Global Security and the node still would come online. I believe it's related to the problem though.
          danielbeck Daniel Beck made changes -
          Field Original Value New Value
          Labels jenkins selenium selenium
          Component/s slave-utilization [ 17575 ]
          Hide
          danielbeck Daniel Beck added a comment -

          To clarify, this completely breaks Selenium plugin, and it started with 1.587? 1.580.1 is also affected?

          Show
          danielbeck Daniel Beck added a comment - To clarify, this completely breaks Selenium plugin , and it started with 1.587? 1.580.1 is also affected?
          Hide
          darkrift Richard Lavoie added a comment -

          It seems that a new version of Jenkins has added a method call to Jenkins.getInstance() when create a new Channel (the trick I use to create multiple selenium slaves per node) which makes this error occur when the code is executed on the slave. When the code is executed on the slave, Jenkins.getInstance() returns null.

          Show
          darkrift Richard Lavoie added a comment - It seems that a new version of Jenkins has added a method call to Jenkins.getInstance() when create a new Channel (the trick I use to create multiple selenium slaves per node) which makes this error occur when the code is executed on the slave. When the code is executed on the slave, Jenkins.getInstance() returns null.
          Hide
          aje Andrew Erickson added a comment - - edited

          I'm seeing this with LTS (1.580.1) and 1.592. I have a test job that can ssh to the machine just fine.

          Update: I don't believe this is related to selenium... I'm not running it.

          Update 2: This was due to misconfiguration. Please disregard.

          Show
          aje Andrew Erickson added a comment - - edited I'm seeing this with LTS (1.580.1) and 1.592. I have a test job that can ssh to the machine just fine. Update: I don't believe this is related to selenium... I'm not running it. Update 2: This was due to misconfiguration. Please disregard.
          aje Andrew Erickson made changes -
          Priority Minor [ 4 ] Major [ 3 ]
          Hide
          tkurdyna Taras Kurdyna added a comment -

          Any idea, when can this be fixed?

          Show
          tkurdyna Taras Kurdyna added a comment - Any idea, when can this be fixed?
          Hide
          darkrift Richard Lavoie added a comment -

          This should be fixed with commit 0b77252fc88ba9ac3ab2a7faf7b5a3a4da61bbc1

          Show
          darkrift Richard Lavoie added a comment - This should be fixed with commit 0b77252fc88ba9ac3ab2a7faf7b5a3a4da61bbc1
          Hide
          ashokm Ashok Manji added a comment -

          That's great @darkrift! Do you know when v2.44 be available in the update-center?

          Show
          ashokm Ashok Manji added a comment - That's great @darkrift! Do you know when v2.44 be available in the update-center?
          Hide
          aragavan ragavan Ambighananthan added a comment -

          @darkrift thanks for the fix, is there anyway we can have this released ?

          Show
          aragavan ragavan Ambighananthan added a comment - @darkrift thanks for the fix, is there anyway we can have this released ?
          Hide
          darkrift Richard Lavoie added a comment -

          I'm trying to convert the tests to the new recipe and fixture and I'm having some problems with that. I'll also try to add more tests to this plugin as it's coverage is really suffering.. However, in a few days, maybe weeks I believe, this should be done.

          I'm mostly working on this part time outside of my job so I'm not able to put alot of time in this. I'm doing the best I can because I know I put this plugin aside for way too long before fixing this issue. I'll probably end up release this after manually validating it in a real installation so I can release it even if the tests and the coverage is not how I'd like it to be.

          Stay tuned !

          Show
          darkrift Richard Lavoie added a comment - I'm trying to convert the tests to the new recipe and fixture and I'm having some problems with that. I'll also try to add more tests to this plugin as it's coverage is really suffering.. However, in a few days, maybe weeks I believe, this should be done. I'm mostly working on this part time outside of my job so I'm not able to put alot of time in this. I'm doing the best I can because I know I put this plugin aside for way too long before fixing this issue. I'll probably end up release this after manually validating it in a real installation so I can release it even if the tests and the coverage is not how I'd like it to be. Stay tuned !
          Hide
          aragavan ragavan Ambighananthan added a comment -

          thanks @darkrift

          Show
          aragavan ragavan Ambighananthan added a comment - thanks @darkrift
          Hide
          tkurdyna Taras Kurdyna added a comment -

          Richard, any progress on this? When can we expect new version with your fix included?

          Show
          tkurdyna Taras Kurdyna added a comment - Richard, any progress on this? When can we expect new version with your fix included?
          Hide
          lavoie_sl Sebastien Lavoie added a comment -

          The thing is, the commits are there, in master, but there are no release and I can’t figure out how to properly compile this plugin, I run into all sorts of issues. A release would be much appreciated.

          Show
          lavoie_sl Sebastien Lavoie added a comment - The thing is, the commits are there, in master, but there are no release and I can’t figure out how to properly compile this plugin, I run into all sorts of issues. A release would be much appreciated.
          Hide
          acorsini Anthony Corsini added a comment -

          Same thing here, if a new package including the fix could be released, it would be really appreciated

          Show
          acorsini Anthony Corsini added a comment - Same thing here, if a new package including the fix could be released, it would be really appreciated
          Hide
          burdandrei Andrei Burd added a comment -

          Well it's an old story, but why not to release the fix?

          Show
          burdandrei Andrei Burd added a comment - Well it's an old story, but why not to release the fix?
          Hide
          sunisunil007 Sunil N added a comment -

          Facing the same issue with Jenkins 1.641 & Selenium jar 2.48.2... Does any one has the fix for this issue?

          Show
          sunisunil007 Sunil N added a comment - Facing the same issue with Jenkins 1.641 & Selenium jar 2.48.2... Does any one has the fix for this issue?
          Hide
          velikan Serge Velikanov added a comment -

          same here
          looks like Selenium Plugin ruins every slave that have to run Selenium agent

          Show
          velikan Serge Velikanov added a comment - same here looks like Selenium Plugin ruins every slave that have to run Selenium agent
          Hide
          nagmani Nagmani Prasad added a comment - - edited

          I have faced similar issue, to resolve this issue, uncheck the 'Selenium Plugin' from installed manage plugin screen (i.e.<http://hostName>/pluginManager/installed)

          Show
          nagmani Nagmani Prasad added a comment - - edited I have faced similar issue, to resolve this issue, uncheck the 'Selenium Plugin' from installed manage plugin screen (i.e.< http://hostName >/pluginManager/installed)
          Hide
          mgaunin Mikael Gaunin added a comment -

          Richard Lavoie your fix is validated.
          Any chance to generate a release soon?
          Thanks

          Show
          mgaunin Mikael Gaunin added a comment - Richard Lavoie your fix is validated. Any chance to generate a release soon? Thanks
          Hide
          mobrockers Rouke Broersma added a comment -

          I will be releasing a new plugin version containing this fix soon. Please let me know how it goes.

          Show
          mobrockers Rouke Broersma added a comment - I will be releasing a new plugin version containing this fix soon. Please let me know how it goes.
          Hide
          mgaunin Mikael Gaunin added a comment -

          Glad to read your comment Rouke Broersma
          Inform us about the release thru this ticket.
          Thanks

          Show
          mgaunin Mikael Gaunin added a comment - Glad to read your comment Rouke Broersma Inform us about the release thru this ticket. Thanks
          Hide
          mobrockers Rouke Broersma added a comment -

          The plugin has been released and should be available to update to in about 8 hours. Closing this issue as resolved. If the problem persists, please create a new issue.

          Show
          mobrockers Rouke Broersma added a comment - The plugin has been released and should be available to update to in about 8 hours. Closing this issue as resolved. If the problem persists, please create a new issue.
          mobrockers Rouke Broersma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 159557 ] JNJira + In-Review [ 196124 ]

            People

            • Assignee:
              darkrift Richard Lavoie
              Reporter:
              zonkey Neal Storey
            • Votes:
              9 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: