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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core, windows-slaves-plugin
    • master: Jenkins v2.50 on openSUSE 42.2
      slave: Windows 8.1 x64

      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.

          [JENKINS-42724] Windows Slaves Plugin: agent is not starting after upgrade to Jenkins 2.50

          Frank Illenseer created issue -

          Dan McFarlane added a comment -

          It appears https://github.com/jenkinsci/jenkins/pull/2765/commits removed the jenkins-slave.xml file, but something is still trying to read the file, failing to find it and blowing up

          Dan McFarlane added a comment - It appears https://github.com/jenkinsci/jenkins/pull/2765/commits  removed the jenkins-slave.xml file, but something is still trying to read the file, failing to find it and blowing up
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]

          Oleg Nenashev added a comment -

          Right. I have removed this file after the initial testing, but it didn't blow up for me.
          Though I didn't pay much attention to the Windows Slaves Plugin

          Oleg Nenashev added a comment - Right. I have removed this file after the initial testing, but it didn't blow up for me. Though I didn't pay much attention to the Windows Slaves Plugin
          Oleg Nenashev made changes -
          Priority Original: Critical [ 2 ] New: Blocker [ 1 ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "jenkins/pull/2803 (Web Link)" [ 15703 ]
          Oleg Nenashev made changes -
          Summary Original: Windows slave not starting after upgrade to Jenkins 2.50 New: Windows slaves Plugin: agent is not starting after upgrade to Jenkins 2.50
          Oleg Nenashev made changes -
          Summary Original: Windows slaves Plugin: agent is not starting after upgrade to Jenkins 2.50 New: Windows Slaves Plugin: agent is not starting after upgrade to Jenkins 2.50

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

              Created:
              Updated:
              Resolved: