Trouble running JNLP slave as a service in Windows 10

9 vues
Accéder directement au premier message non lu

David Aldrich

non lue,
4 oct. 2017, 06:42:4004/10/2017
à jenkins...@googlegroups.com

Hi

 

I want to install a JNLP slave as a service in Windows 10.

 

If I use the ‘easy’ method of going to the node page, from the slave machine, and clicking on the Launch button, the slave launches. But if I select ‘File > Install as a service’ I get an exception:

 

 

I wonder if this is because I haven’t done it properly in administrator mode. But I did open an admin command prompt and ran my browser (Edge) from there.

 

Alternatively, I can start the slave from a command line using:

 

java -jar slave.jar -jnlpUrl http://<my-server>/computer/<my-node>/slave-agent.jnlp -secret <my-secret> described at computer/<my-node>/

 

but that doesn’t allow me to run the agent as a service.

 

Please can anyone help me with this?

 

Best regards

 

David

 

Khomyuk Viktor

non lue,
4 oct. 2017, 08:02:5804/10/2017
à jenkins...@googlegroups.com

Hi. Install slave as service is not easy :)

Look at the https://wiki.jenkins.io/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM

Start with "Enable Remote Registry Access".

One error will be replaced by another, but after some time you will achieve your goal.


От: jenkins...@googlegroups.com <jenkins...@googlegroups.com> от имени David Aldrich <David....@EMEA.NEC.COM>
Отправлено: 4 октября 2017 г. 17:42
Кому: jenkins...@googlegroups.com
Тема: Trouble running JNLP slave as a service in Windows 10
 
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/37b7943ef2a74239b0e23ad16cb70cde%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

Slide

non lue,
4 oct. 2017, 09:11:5704/10/2017
à jenkins...@googlegroups.com
That page is for DCOM agents, not JNLP agents. 

The easiest method to do this is to open an administrator console and then run the command you specified in your original email:

java -jar slave.jar -jnlpUrl http://<my-server>/computer/<my-node>/slave-agent.jnlp -secret <my-secret> 

Does that not show the "Install as a Service" menu item?

David Aldrich

non lue,
4 oct. 2017, 09:36:2804/10/2017
à jenkins...@googlegroups.com

> Does that not show the "Install as a Service" menu item?

 

No. The command windows shows the agent is connected but there is no pop-up with an "Install as a Service" menu item.

 

BR

David

 


For more options, visit https://groups.google.com/d/optout.

Click here to report this email as spam.

Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message