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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • selenium-plugin
    • Ubuntu server 64 bit 14.04 (master)
      Jenkins 1.589
      Selenium 2.41

      Ubuntu 14.04 (slave)
      selenium node

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

          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
          mawatech Markus Wagner added a comment -

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

          mawatech Markus Wagner added a comment - Same here, but I'm not sure if this also occurred with 1.588.
          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.

          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.

          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.

          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.
          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.

          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
          Component/s slave-utilization [ 17575 ]
          Labels jenkins selenium selenium
          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?

          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?

          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.

          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.
          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 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 ]
          tkurdyna Taras Kurdyna added a comment -

          Any idea, when can this be fixed?

          tkurdyna Taras Kurdyna added a comment - Any idea, when can this be fixed?

          This should be fixed with commit 0b77252fc88ba9ac3ab2a7faf7b5a3a4da61bbc1

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

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

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

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

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

          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 !

          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 !

          thanks @darkrift

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

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

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

          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.

          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.

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

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

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

          burdandrei Andrei Burd added a comment - Well it's an old story, but why not to release the fix?
          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?

          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?

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

          velikan Serge Velikanov added a comment - same here looks like Selenium Plugin ruins every slave that have to run Selenium agent
          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)

          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)
          mgaunin Mikael Gaunin added a comment -

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

          mgaunin Mikael Gaunin added a comment - darkrift your fix is validated. Any chance to generate a release soon? Thanks

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

          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.
          mgaunin Mikael Gaunin added a comment -

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

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

          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 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 -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 159557 ] JNJira + In-Review [ 196124 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: