Trouble running JNLP slave as a service in Windows 10

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble running JNLP slave as a service in Windows 10

David Aldrich-2

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

 

--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Trouble running JNLP slave as a service in Windows 10

Viktor Khomyuk

Hi. Install slave as service is not easy :)

Look at the <a href="https://wiki.jenkins.io/display/JENKINS/Windows&#43;slaves&#43;fail&#43;to&#43;start&#43;via&#43;DCOM">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.


От: [hidden email] <[hidden email]> от имени David Aldrich <[hidden email]>
Отправлено: 4 октября 2017 г. 17:42
Кому: [hidden email]
Тема: Trouble running JNLP slave as a service in Windows 10
 

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

 

--
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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1507115712914.83840%402Gis.ru.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trouble running JNLP slave as a service in Windows 10

slide
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?

On Wed, Oct 4, 2017 at 5:02 AM Khomyuk Viktor <[hidden email]> wrote:

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.


От: [hidden email] <[hidden email]> от имени David Aldrich <[hidden email]>
Отправлено: 4 октября 2017 г. 17:42
Кому: [hidden email]
Тема: Trouble running JNLP slave as a service in Windows 10
 

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

 

--
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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1507115712914.83840%402Gis.ru.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVc0yytZF%2B%2BC68PKMhp1maOiKr-3Tgts2xrp2vumJHZHoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

image001.png (28K) Download Attachment
image001.png (28K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Trouble running JNLP slave as a service in Windows 10

David Aldrich-2

> 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

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Slide
Sent: 04 October 2017 14:12
To: [hidden email]
Subject: Re: Trouble running JNLP slave as a service in Windows 10

 

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?

 

On Wed, Oct 4, 2017 at 5:02 AM Khomyuk Viktor <[hidden email]> wrote:

Hi. Install slave as service is not easy :)

Look at the <a href="https://wiki.jenkins.io/display/JENKINS/Windows&#43;slaves&#43;fail&#43;to&#43;start&#43;via&#43;DCOM" target="_blank">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.


От: [hidden email] <[hidden email]> от имени David Aldrich <[hidden email]>
Отправлено: 4 октября 2017 г. 17:42
Кому: [hidden email]
Тема: Trouble running JNLP slave as a service in Windows 10

 

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

 

--
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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1507115712914.83840%402Gis.ru.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVc0yytZF%2B%2BC68PKMhp1maOiKr-3Tgts2xrp2vumJHZHoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Click <a href="https://www.mailcontrol.com/sr/f8qZiRe9OK3GX2PQPOmvUu5zZAYN1MosF2UIT3&#43;w12f!w!0edBs84vT7q5G54PGtgBP8rH&#43;MiVyVGm43FW9a3A=="> here to report this email as spam.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/16e2b265342d4771bd9565a4ac63f668%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.