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

Windows Slaves Plugin: agent is not starting after upgrade to Jenkins 2.50

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After upgrading the master to Jenkins v2.50, the Windows slave (working before) does not start any more, but only reports the following error:

      [2017-03-13 17:57:58] [windows-slaves] Connecting to dewxxxdev-bn02
      Checking if Java exists
      
      java -version returned 1.8.0.
      [2017-03-13 17:58:00] [windows-slaves] Installing the Jenkins slave service
      [2017-03-13 17:58:00] [windows-slaves] Copying jenkins-slave.exe
      [2017-03-13 17:58:00] [windows-slaves] Copying slave.jar
      [2017-03-13 17:58:00] [windows-slaves] Copying jenkins-slave.xml
      ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
      java.lang.NullPointerException
      	at java.io.Reader.<init>(Reader.java:78)
      	at java.io.InputStreamReader.<init>(InputStreamReader.java:113)
      	at org.apache.commons.io.IOUtils.copy(IOUtils.java:1906)
      	at org.apache.commons.io.IOUtils.toString(IOUtils.java:778)
      	at org.apache.commons.io.IOUtils.toString(IOUtils.java:803)
      	at hudson.os.windows.ManagedWindowsServiceLauncher.generateSlaveXml(ManagedWindowsServiceLauncher.java:520)
      	at hudson.os.windows.ManagedWindowsServiceLauncher.createAndCopyJenkinsSlaveXml(ManagedWindowsServiceLauncher.java:456)
      	at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:301)
      	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:262)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      the config.xml for that slave is (with sensitive info X'ed out)

      <?xml version='1.0' encoding='UTF-8'?>
      <slave>
        <name>dewxxxdev-bn02</name>
        <description>Windows 64-bit (x86_64) release build machine</description>
        <remoteFS>D:\Jenkins</remoteFS>
        <numExecutors>12</numExecutors>
        <mode>EXCLUSIVE</mode>
        <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
        <launcher class="hudson.os.windows.ManagedWindowsServiceLauncher" plugin="windows-slaves@1.2">
          <userName>DOMAIN\username</userName>
          <password>{xxx}</password>
          <account class="hudson.os.windows.ManagedWindowsServiceAccount$Administrator"/>
        </launcher>
        <label>kernel windows x86_64 release</label>
        <nodeProperties/>
      </slave>
      

      Any advice is greatly appreciated. - Thanks.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            content/_data/changelogs/weekly.yml
            http://jenkins-ci.org/commit/jenkins.io/525a918e2646fcc2a106d363b0c42af4112a7f46
            Log:
            Merge pull request #754 from oleg-nenashev/changelog/JENKINS-42724

            Changelog: Reference the JENKINS-42724 regression in Jenkins 2.50

            Compare: https://github.com/jenkins-infra/jenkins.io/compare/82fa1dd813e0...525a918e2646

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: content/_data/changelogs/weekly.yml http://jenkins-ci.org/commit/jenkins.io/525a918e2646fcc2a106d363b0c42af4112a7f46 Log: Merge pull request #754 from oleg-nenashev/changelog/ JENKINS-42724 Changelog: Reference the JENKINS-42724 regression in Jenkins 2.50 Compare: https://github.com/jenkins-infra/jenkins.io/compare/82fa1dd813e0...525a918e2646
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/resources/windows-service/jenkins-slave.xml
            http://jenkins-ci.org/commit/jenkins/4ac7c0850bb316db82637e7652bc97fd6aad2418
            Log:
            JENKINS-42724 - Restore the windows-service/jenkins.xml resource to restore compatibility with windows-slaves 1.2 (#2803)

            Windows Slaves plugin performs a direct access to the resources bundled into the core.
            Hence the file removal was a bad idea though I have not seen the issue in automatic tests and ATH.

            This change also was a last-minute change in https://github.com/jenkinsci/jenkins/pull/2765/ in order to address suggestions from @daniel-beck, hence I didn't test it properly

            • JENKINS-42724 - Update the Windows Agents plugin dependency to 1.3.1
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/resources/windows-service/jenkins-slave.xml http://jenkins-ci.org/commit/jenkins/4ac7c0850bb316db82637e7652bc97fd6aad2418 Log: JENKINS-42724 - Restore the windows-service/jenkins.xml resource to restore compatibility with windows-slaves 1.2 (#2803) JENKINS-42724 - Restore the jenkins-slave.xml file Windows Slaves plugin performs a direct access to the resources bundled into the core. Hence the file removal was a bad idea though I have not seen the issue in automatic tests and ATH. This change also was a last-minute change in https://github.com/jenkinsci/jenkins/pull/2765/ in order to address suggestions from @daniel-beck, hence I didn't test it properly JENKINS-42724 - Update the Windows Agents plugin dependency to 1.3.1 JENKINS-42724 -Revert the war/pom.xml upgrade
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            content/_data/changelogs/weekly.yml
            http://jenkins-ci.org/commit/jenkins.io/7a6c0722e7c6c6d0d01c2563bcd9beceabaad993
            Log:
            JENKINS-42724 Add changelog entry

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: content/_data/changelogs/weekly.yml http://jenkins-ci.org/commit/jenkins.io/7a6c0722e7c6c6d0d01c2563bcd9beceabaad993 Log: JENKINS-42724 Add changelog entry
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            content/_data/changelogs/weekly.yml
            http://jenkins-ci.org/commit/jenkins.io/4e5e16d1915a7fd1bcea12f34e7315c96e5c6f31
            Log:
            Merge pull request #766 from daniel-beck/JENKINS-42724

            JENKINS-42724 Add changelog entry

            Compare: https://github.com/jenkins-infra/jenkins.io/compare/7079cbd12c37...4e5e16d1915a

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: content/_data/changelogs/weekly.yml http://jenkins-ci.org/commit/jenkins.io/4e5e16d1915a7fd1bcea12f34e7315c96e5c6f31 Log: Merge pull request #766 from daniel-beck/ JENKINS-42724 JENKINS-42724 Add changelog entry Compare: https://github.com/jenkins-infra/jenkins.io/compare/7079cbd12c37...4e5e16d1915a
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            The fix has been released in 2.51. I and Daniel Beck have a follow-up to think about the detached version requirements to enforce update of Windows slaves to the latest version where possible

            Show
            oleg_nenashev Oleg Nenashev added a comment - The fix has been released in 2.51. I and Daniel Beck have a follow-up to think about the detached version requirements to enforce update of Windows slaves to the latest version where possible

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                fillenseer Frank Illenseer
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: