Fail to install Jenkins slave agent as a service

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

Fail to install Jenkins slave agent as a service

Victoria Wei Lei
I launched Jenkins Slave via web start,  but when I tried to Install as a service,  error pop up, please see attached screen shot, 

Can anyone help for this issue? 

Thanks
Victoria 

--
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/71a9d045-38d4-49c8-96da-a59f9e2bc5a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

Fail to install Jenkins slave agent as a service

Ewelina Wilkosz
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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/d0c21adf-a217-4206-ad3b-173dc0972e79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

Victoria Wei Lei
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 

On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

slide
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <[hidden email]> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.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/CAPiUgVfM9JXM3L1GQxjP4e9es2RXRWu%3D5qyybdfz74_PXrTC1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

Victoria Wei Lei
run command from your slave path:

$ java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlp

make sure slave.jar was copied there. A copy of slave.jar can be downloaded from <a href="http://yourserver:port/jnlpJars/slave.jar" class="external-link" rel="nofollow" style="color: rgb(75, 117, 139); text-decoration-line: underline;">http://yourserver:port/jnlpJars/slave.jar 

On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="OueXYzjwAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">weil...@...> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="OueXYzjwAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/fefacdb1-cdbc-447e-8cba-0f4020beb7fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

Victoria Wei Lei
In reply to this post by slide
run command from your slave path:

$ java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlp (the full command should be listed on your launch screen)

make sure slave.jar was copied there. A copy of slave.jar can be downloaded from <a href="http://yourserver:port/jnlpJars/slave.jar" rel="nofollow" target="_blank" style="color: rgb(75, 117, 139); cursor: pointer;">http://yourserver:port/jnlpJars/slave.jar 


On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="OueXYzjwAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">weil...@...> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="OueXYzjwAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

slide
The instructions on my Jenkins install also have a -secret parameter, does yours? Are you passing in the secret?

On Fri, Sep 22, 2017 at 1:14 PM Victoria Wei Lei <[hidden email]> wrote:
run command from your slave path:

$ java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlp (the full command should be listed on your launch screen)

make sure slave.jar was copied there. A copy of slave.jar can be downloaded from <a href="http://yourserver:port/jnlpJars/slave.jar" rel="nofollow" style="color:rgb(75,117,139)" target="_blank">http://yourserver:port/jnlpJars/slave.jar 


On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <[hidden email]> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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].

--
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/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.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/CAPiUgVcUBoGeG6RMBxDKU7Jp3bzTH14WnxrAZkyL-NKRAzh9Kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

Victoria Wei Lei
yes, you need to attach that secret key in the command

On Friday, September 22, 2017 at 3:22:01 PM UTC-5, slide wrote:
The instructions on my Jenkins install also have a -secret parameter, does yours? Are you passing in the secret?

On Fri, Sep 22, 2017 at 1:14 PM Victoria Wei Lei <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="UDj-i4XxAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">weil...@...> wrote:
run command from your slave path:

$ java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlp (the full command should be listed on your launch screen)

make sure slave.jar was copied there. A copy of slave.jar can be downloaded from <a href="http://yourserver:port/jnlpJars/slave.jar" rel="nofollow" style="color:rgb(75,117,139)" target="_blank" onmousedown="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;" onclick="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;">http://yourserver:port/jnlpJars/slave.jar 


On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <[hidden email]> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="UDj-i4XxAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/cffcbe07-2b92-408f-be72-41e708dcaf06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

Ewelina Wilkosz
Did you manage to make it work? 
because I do it differently, usually:

- download slave-agent.jnlp from agent page - I think it's under this 'launch via web' button, or something, I don't remember what it says :) 
- open a command window with "Run as Administrator".
- change directory to the place where you saved the slave-agent.jnlp file.
- run "slave-agent.jnlp"
- now with the running slave click the menu item to "Install as Service".
- run services.msc and you can find and configure your service

So it is a little bit simpler command in cmd, maybe not making any difference... but you have to try everything :)

On Friday, September 22, 2017 at 11:15:31 PM UTC+2, Victoria Wei Lei wrote:
yes, you need to attach that secret key in the command

On Friday, September 22, 2017 at 3:22:01 PM UTC-5, slide wrote:
The instructions on my Jenkins install also have a -secret parameter, does yours? Are you passing in the secret?

On Fri, Sep 22, 2017 at 1:14 PM Victoria Wei Lei <[hidden email]> wrote:
run command from your slave path:

$ java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlp (the full command should be listed on your launch screen)

make sure slave.jar was copied there. A copy of slave.jar can be downloaded from <a href="http://yourserver:port/jnlpJars/slave.jar" rel="nofollow" style="color:rgb(75,117,139)" target="_blank" onmousedown="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;" onclick="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;">http://yourserver:port/jnlpJars/slave.jar 


On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <[hidden email]> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/010c5f19-3f5d-40a5-b067-c60d3df8f9ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

Oleg Nenashev
Hi all,

Just FYI, Jenkins Windows Service command line is documented here: https://github.com/kohsuke/winsw .

WinSW is a standalone project, Jenkins just generates an XML configuration file for it. You can take the template from here and then configure the instance manually if the service installation fails.

P.S: The error in the first message is greek to me. Would be great to get info about the Java version you use in Windows

BR, Oleg


пятница, 29 сентября 2017 г., 15:47:07 UTC+3 пользователь Ewelina Wilkosz написал:
Did you manage to make it work? 
because I do it differently, usually:

- download slave-agent.jnlp from agent page - I think it's under this 'launch via web' button, or something, I don't remember what it says :) 
- open a command window with "Run as Administrator".
- change directory to the place where you saved the slave-agent.jnlp file.
- run "slave-agent.jnlp"
- now with the running slave click the menu item to "Install as Service".
- run services.msc and you can find and configure your service

So it is a little bit simpler command in cmd, maybe not making any difference... but you have to try everything :)

On Friday, September 22, 2017 at 11:15:31 PM UTC+2, Victoria Wei Lei wrote:
yes, you need to attach that secret key in the command

On Friday, September 22, 2017 at 3:22:01 PM UTC-5, slide wrote:
The instructions on my Jenkins install also have a -secret parameter, does yours? Are you passing in the secret?

On Fri, Sep 22, 2017 at 1:14 PM Victoria Wei Lei <[hidden email]> wrote:
run command from your slave path:

$ java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlp (the full command should be listed on your launch screen)

make sure slave.jar was copied there. A copy of slave.jar can be downloaded from <a href="http://yourserver:port/jnlpJars/slave.jar" rel="nofollow" style="color:rgb(75,117,139)" target="_blank" onmousedown="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;" onclick="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;">http://yourserver:port/jnlpJars/slave.jar 


On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <[hidden email]> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/1df612ba-5018-4940-9e90-bde7662a688c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fail to install Jenkins slave agent as a service

Victoria Wei Lei
Oleg, 

The java error message was gone after I change java version from 64 bit to 32 bit.  But installing service give me different error pop up. see attached. 
I am going to look at and try you suggested WinSW.  

Thanks
 

On Sunday, October 1, 2017 at 10:32:40 AM UTC-5, Oleg Nenashev wrote:
Hi all,

Just FYI, Jenkins Windows Service command line is documented here: <a href="https://github.com/kohsuke/winsw" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkohsuke%2Fwinsw\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHntTkAirzObnpoqi8WM3XoGYY9dg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkohsuke%2Fwinsw\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHntTkAirzObnpoqi8WM3XoGYY9dg&#39;;return true;">https://github.com/kohsuke/winsw .

WinSW is a standalone project, Jenkins just generates an XML configuration file for it. You can take the template from <a href="https://github.com/jenkinsci/windows-slave-installer-module/blob/master/src/main/resources/org/jenkinsci/modules/windows_slave_installer/jenkins-slave.xml" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fwindows-slave-installer-module%2Fblob%2Fmaster%2Fsrc%2Fmain%2Fresources%2Forg%2Fjenkinsci%2Fmodules%2Fwindows_slave_installer%2Fjenkins-slave.xml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxs3NZ8Bx9JkWkKVK1iWKpv-cN9Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fwindows-slave-installer-module%2Fblob%2Fmaster%2Fsrc%2Fmain%2Fresources%2Forg%2Fjenkinsci%2Fmodules%2Fwindows_slave_installer%2Fjenkins-slave.xml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxs3NZ8Bx9JkWkKVK1iWKpv-cN9Q&#39;;return true;">here and then configure the instance manually if the service installation fails.

P.S: The error in the first message is greek to me. Would be great to get info about the Java version you use in Windows

BR, Oleg


пятница, 29 сентября 2017 г., 15:47:07 UTC+3 пользователь Ewelina Wilkosz написал:
Did you manage to make it work? 
because I do it differently, usually:

- download slave-agent.jnlp from agent page - I think it's under this 'launch via web' button, or something, I don't remember what it says :) 
- open a command window with "Run as Administrator".
- change directory to the place where you saved the slave-agent.jnlp file.
- run "slave-agent.jnlp"
- now with the running slave click the menu item to "Install as Service".
- run services.msc and you can find and configure your service

So it is a little bit simpler command in cmd, maybe not making any difference... but you have to try everything :)

On Friday, September 22, 2017 at 11:15:31 PM UTC+2, Victoria Wei Lei wrote:
yes, you need to attach that secret key in the command

On Friday, September 22, 2017 at 3:22:01 PM UTC-5, slide wrote:
The instructions on my Jenkins install also have a -secret parameter, does yours? Are you passing in the secret?

On Fri, Sep 22, 2017 at 1:14 PM Victoria Wei Lei <[hidden email]> wrote:
run command from your slave path:

$ java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlp (the full command should be listed on your launch screen)

make sure slave.jar was copied there. A copy of slave.jar can be downloaded from <a href="http://yourserver:port/jnlpJars/slave.jar" rel="nofollow" style="color:rgb(75,117,139)" target="_blank" onmousedown="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;" onclick="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;">http://yourserver:port/jnlpJars/slave.jar 


On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <[hidden email]> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/bc8afcad-5c07-44bb-bd8a-e2e00c99d90c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

Re: Fail to install Jenkins slave agent as a service

Victoria Wei Lei
In reply to this post by Ewelina Wilkosz
Ewelina,  

I did run slave-agent.jnlp from command line,  agent started running,  however I did not have running slave pop up which give me the option from file -> Install as a service (:

Thanks


On Friday, September 29, 2017 at 7:47:07 AM UTC-5, Ewelina Wilkosz wrote:
Did you manage to make it work? 
because I do it differently, usually:

- download slave-agent.jnlp from agent page - I think it's under this 'launch via web' button, or something, I don't remember what it says :) 
- open a command window with "Run as Administrator".
- change directory to the place where you saved the slave-agent.jnlp file.
- run "slave-agent.jnlp"
- now with the running slave click the menu item to "Install as Service".
- run services.msc and you can find and configure your service

So it is a little bit simpler command in cmd, maybe not making any difference... but you have to try everything :)

On Friday, September 22, 2017 at 11:15:31 PM UTC+2, Victoria Wei Lei wrote:
yes, you need to attach that secret key in the command

On Friday, September 22, 2017 at 3:22:01 PM UTC-5, slide wrote:
The instructions on my Jenkins install also have a -secret parameter, does yours? Are you passing in the secret?

On Fri, Sep 22, 2017 at 1:14 PM Victoria Wei Lei <[hidden email]> wrote:
run command from your slave path:

$ java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlp (the full command should be listed on your launch screen)

make sure slave.jar was copied there. A copy of slave.jar can be downloaded from <a href="http://yourserver:port/jnlpJars/slave.jar" rel="nofollow" style="color:rgb(75,117,139)" target="_blank" onmousedown="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;" onclick="this.href=&#39;http://yourserver:port/jnlpJars/slave.jar&#39;;return true;">http://yourserver:port/jnlpJars/slave.jar 


On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
How are you running from the command line? 

On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <[hidden email]> wrote:
Ewelina, 

thanks so much for the reply.  I tried command line before as admin,  yes, the slave can launch successfully,  but am I supposed to get Slave agent  pop up and the option to Install as a service?  I did not have pop up window as I start by web start.  Therefore, I can't install slave as a window service.  If cmd window got killed for some reason,  my slave agent died as well.  

Victoria 


On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz wrote:
Not sure if it will solve your issue, but what I usually do is I download the file instead of running it from the browser - the one you have under web start button - then run 'cmd' as administrator, there I cd to directory with downloaded file and run it from there. If you're familiar with command line it should be easy :) if not I can try to provide more details. But in general running it as admin solved a similar (I think, I don't remember) problem I had

--
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/e7ac804e-4a62-435d-a73b-3fd6723350a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.