timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-14426] Can't install more than one JNLP windows slave #2422

Open timja opened 12 years ago

timja commented 12 years ago

JNLP slave, when installed as a service, is created as "Jenkins Slave" service.
Trying to add a second slave on same host fail with WMI.WmiException:UnknownFailure
(thanks to WMI API not to let us know this is just a f... name conflict)

renaming the first installed service as "Jenkins Slave 1", rebooting
second JNLP slave now can be installed successfully.


Originally reported by ndeloof, imported from: Can't install more than one JNLP windows slave
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 12 years ago

rmyung:

To change the service name, open Registry Editor and modify
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\\DisplayName
You will need to reboot the machine afterwards.

timja commented 12 years ago

akiko_pusu:

Hello. This is just a FYI.
I saw the same situation and I could change DisplayName without rebooting.
We can change srvice configuration with "sc" command.

For example, to change DisplayName to "Jenkins Slave 1", please run:
c:\> sc config DisplayName= "Jenkins Slave 1"