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

Fail to start the windows service when trying to launch agent node

    • Jenkins 2.248

      We used to be able to launch the slave node successfully, but it did not work since we upgraded the jenkins to latest version (1.449)

      It doesn't dump any exception to the console, but I captured the output:

      Connecting to 192.168.160.62
      Checking if Java exists
      java full version "1.7.0-b147"
      Installing the Jenkins slave service
      Copying jenkins-slave.exe
      Copying slave.jar
      Copying jenkins-slave.xml
      Registering the service
      ERROR: Failed to create a service: Status Invalid Service Account
      ...
      

          [JENKINS-12660] Fail to start the windows service when trying to launch agent node

          Rico ZHANG created issue -

          Alexis Morelle added a comment - - edited

          Had the same today installing a Windows Server 2008 R2 x64 node using the local admin account.
          However, I added another node with the same OS to the same Master successfully this morning too but with a domain account.

          Master is 1.444

          Alexis Morelle added a comment - - edited Had the same today installing a Windows Server 2008 R2 x64 node using the local admin account. However, I added another node with the same OS to the same Master successfully this morning too but with a domain account. Master is 1.444

          Benny Chew added a comment -

          Have the same issue as well as stated above, master is 1.450, slave a Windows Server 2008 R2 x64.

          Benny Chew added a comment - Have the same issue as well as stated above, master is 1.450, slave a Windows Server 2008 R2 x64.

          Brad Huggins added a comment -

          I had the same issue but was able to resolve it by using <Computer Name>\<User name>

          Brad Huggins added a comment - I had the same issue but was able to resolve it by using <Computer Name>\<User name>

          Sergey Titov added a comment - - edited

          The same issue. Master is 1.451, slave - Windows Server 2003.

          Sergey Titov added a comment - - edited The same issue. Master is 1.451, slave - Windows Server 2003.
          Frederik Fromm made changes -
          Component/s New: master-slave [ 15489 ]
          Component/s Original: slave-setup [ 15929 ]

          changed to master/slave component as it is not related to the slave-setup plugin.

          Frederik Fromm added a comment - changed to master/slave component as it is not related to the slave-setup plugin.

          So what I did was add the Machine-Name part to the user names:

          Launch method: Let Jenkins control this Windows slave as a Windows service
          Administrator user name: .\Administrator
          Password: ***
          Host:
          Run service as: Log on using a different account
          User name: .\Builder
          Password: ***

          Christian Höltje added a comment - So what I did was add the Machine-Name part to the user names: Launch method: Let Jenkins control this Windows slave as a Windows service Administrator user name: .\Administrator Password: *** Host: Run service as: Log on using a different account User name: .\Builder Password: ***

          I'm getting a similar problem with Jenkins 1.451 and 2008 R2

          However, I'm trying to use a managed Service Account under the domain.

          Walter Kacynski added a comment - I'm getting a similar problem with Jenkins 1.451 and 2008 R2 However, I'm trying to use a managed Service Account under the domain.

          Tom Fanning added a comment -

          Prefixing the username with "computername\" resolves this issue for me.

          Tom Fanning added a comment - Prefixing the username with "computername\" resolves this issue for me.

            Unassigned Unassigned
            rico_bee Rico ZHANG
            Votes:
            5 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: