RE: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-27 Thread Dhrutiben.Patel
I think "-secret " has to do with keys. Like how Jenkins 
creates .jks file.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Chanda Unmack
Sent: Friday, September 27, 2013 1:41 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: No longer provided a means to add Jenkins slave as a service. What 
to do now?

I have no idea why -secret  works or doesn't work depending on 
windows version - just figured out enough to get things working on our windows 
slaves :)

Glad it worked for you

chanda

On Fri, Sep 27, 2013 at 1:20 PM, Steve K 
mailto:steve.kerxha...@carestream.com>> wrote:

Chandra,

Thank you very much.  I've successfully used your method on one of the XP 
machines that was previously failing.
It's important to note that, at first, I kept the "-secret " 
but that did not work.
After editing the jenkins-slave.xml as you recommended to contain 
"file:///C:/Jenkins/slave-agent.jnlp", it 
worked.

I am curious.  Why does "http:///computer//slave-agent.jnlp 
-secret  
<http://%3cserver%3e/computer/%3cnode%3e/slave-agent.jnlp%20-secret%20%3cbig-identifier%3e%20>
 " work on newer versions of Windows, but not on XP?

Thank you very much for your solution.  I appreciate it greatly.

Steve K.

--
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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-27 Thread Chanda Unmack
I have no idea why -secret  works or doesn't work depending
on windows version - just figured out enough to get things working on our
windows slaves :)

Glad it worked for you

chanda


On Fri, Sep 27, 2013 at 1:20 PM, Steve K wrote:

>
> Chandra,
>
> Thank you very much.  I've successfully used your method on one of the XP
> machines that was previously failing.
> It's important to note that, at first, I kept the "-secret
> " but that did not work.
> After editing the jenkins-slave.xml as you recommended to contain
> "file:///C:/Jenkins/slave-agent.jnlp", it worked.
>
> I am curious.  Why does "http:///computer//slave-agent.jnlp
> -secret  " work on newer versions of Windows, but not on XP?
>
> Thank you very much for your solution.  I appreciate it greatly.
>
> Steve K.
>
>
>  --
> 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-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-27 Thread Steve K

Chandra,

Thank you very much.  I've successfully used your method on one of the XP 
machines that was previously failing.
It's important to note that, at first, I kept the "-secret 
" but that did not work.
After editing the jenkins-slave.xml as you recommended to contain 
"file:///C:/Jenkins/slave-agent.jnlp", it worked.

I am curious.  Why does "http:///computer//slave-agent.jnlp 
-secret  " work on newer versions of Windows, but not on XP?

Thank you very much for your solution.  I appreciate it greatly.

Steve K.


-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-27 Thread Chanda Unmack
Not sure if this will work on XP as I've only done this on Win7...

This is what I did to get multiple masters configured on one slave, but I
think you can use this to setting it up as a service on your own.

make a note of the folder listed in the "Remote FS root" in
http:///computer//configure.
In my case, it was C:\Jenkins
launch a web browser on the windows box, log in to your jenkins server and
go to http:///computer//, right click on the "Launch" icon
and "save as" the slave-agent.jnlp to C:\Jenkins
edit C:\Jenkins\jenkins-slave.xml, change the -jnlpUrl in 
element from "http:///computer//slave-agent.jnlp" to
"file:///C:/Jenkins/slave-agent.jnlp".
install the service C:\Jenkins\jenkins-slave.exe install

notes: this assumes you attempted to launch as a service previously and the
files are already there

hth

chanda


On Fri, Sep 27, 2013 at 11:18 AM, Steve K wrote:

>
> I'm still struggling with a couple of my XP boxes. As Curtis Kline
> recommended, I now attempt to add the slave and the service by browsing to
> the node from the slave, then "File|Install as service".
> I suspected that my Java JRE was too old (6.x), so I upgraded to v7 on the
> XP machines.
> That did not work. After I "Click on FIle | Install as service", the
> process still does not terminate and I don't get the jenkins-slave.exe nor
> do I get an entry for a service.
>
> Should I try creating my own service?  If so, how would I create my own
> service?
>
> Thanks in advance.
>
> Steve K
>
>
> On Wednesday, September 25, 2013 4:59:41 PM UTC-4, Steve K wrote:
>>
>> Things are not completely settled yet.
>> I'm having trouble with my older, Windows XP, machines.
>> On the XP machines, after I "Click on FIle | Install as service", the
>> process never completes and I don't get the jenkins-slave.exe in my
>> C:\Jenkins directory.
>>
>> I'm guessing that something(s) on the XP boxes are not as up-to-date as
>> needed.  Do you have any idea of what that might be?
>>
>> Thanks in advance.
>>
>> Steve K.
>>
>  --
> 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-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-27 Thread Steve K

I'm still struggling with a couple of my XP boxes. As Curtis Kline 
recommended, I now attempt to add the slave and the service by browsing to 
the node from the slave, then "File|Install as service".
I suspected that my Java JRE was too old (6.x), so I upgraded to v7 on the 
XP machines. 
That did not work. After I "Click on FIle | Install as service", the 
process still does not terminate and I don't get the jenkins-slave.exe nor 
do I get an entry for a service.

Should I try creating my own service?  If so, how would I create my own 
service?

Thanks in advance.

Steve K

On Wednesday, September 25, 2013 4:59:41 PM UTC-4, Steve K wrote:
>
> Things are not completely settled yet.
> I'm having trouble with my older, Windows XP, machines.
> On the XP machines, after I "Click on FIle | Install as service", the 
> process never completes and I don't get the jenkins-slave.exe in my 
> C:\Jenkins directory.
>
> I'm guessing that something(s) on the XP boxes are not as up-to-date as 
> needed.  Do you have any idea of what that might be?
>
> Thanks in advance.
>
> Steve K.
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-25 Thread Ruslan Zasukhin
On 9/25/13 11:59 PM, "Steve K"  wrote:

> Things are not completely settled yet.
> I'm having trouble with my older, Windows XP, machines.
> On the XP machines, after I "Click on FIle | Install as service", the process
> never completes and I don't get the jenkins-slave.exe in my C:\Jenkins
> directory.
> 
> I'm guessing that something(s) on the XP boxes are not as up-to-date as
> needed.  Do you have any idea of what that might be?
> 
> Thanks in advance.

This is my first post to this group.
I am new to jenkins. Trying to start use it last week.

Last 3 days was nightmare for me.
* docs are very old, snpshoots are old.
* step by step, googling I did found info.

Finally I have come that
1) my VirtualBox - win7_x64  -- even not loads slave when I click button
install save in browser.

2) normal win7_x64 computer, did install files,
   connect IF and WHILE runs Java Agent,
   but as only I choose File -> Install as service,
  agent closes and  node is shows as off line.
   
   in log file I see constant attempts and failures on load slave file.


So this is exactly not XP only problem.

* I have try reinstall latest stable, not helps.
* then I reinstall latest build1.531 -- same picture.

Yes, I have found similar complains start yet in Feb 2013.
Resone fix of security whole ...



** I was able so far get it working only if Java Agent is loaded ...
Then slave node works


** I have found stackoverflow issue, where people say:
  FORGET about Windows Service for slave.  It always VERY glitches.







Of course this is very frustrating, when the most default (by docs) way not
works during so many months ...

Or for 90% users Windows Slave as Service works fine?
If yes, then where is secret? :-)



-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-25 Thread Steve K
Things are not completely settled yet.
I'm having trouble with my older, Windows XP, machines.
On the XP machines, after I "Click on FIle | Install as service", the 
process never completes and I don't get the jenkins-slave.exe in my 
C:\Jenkins directory.

I'm guessing that something(s) on the XP boxes are not as up-to-date as 
needed.  Do you have any idea of what that might be?

Thanks in advance.

Steve K.

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-25 Thread Steve K

Curtis,

Thank you very much for your reply.
That does seem to do the trick.

As a note, for the slaves that already had a service entry, I did get 
errors when I added the service:
[Jenkins]$ C:\Jenkins\jenkins-slave.exe installl
WMI.WmiException: ...service exists

but, it seems to work.

This makes my life much less stressful.  Thanks again.

Sincerely,

Steve K.

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-25 Thread Curtis Kline
Steve,

Instead of using the command line, I run the JNLP agent using the "Launch"
button on the Node page. My steps are:

1. Get on the desktop of the slave machine.
2. Open a browser and browse to my Jenkins master.
3. Click on Manage Nodes and then the link for the slave (if I've already
set it up).
4. On the slave page click on the Launch button (see screenshot link:
http://note.io/18WJNlS)
5. Click on File | Install as a service

Does that help?

Curtis




On Wed, Sep 25, 2013 at 9:09 AM, Steve K wrote:

> Hello,
>
> Previously, with Jenkins 1.40x.x, when adding a new slave, I would log in
> to the slave and use the command provided to me. Something like:
> java -jar slave.jar 
>
> With that, I would be given the opportunity to add the slave process as a
> service.
>
> Now, the command includes the -secret , which is OK with
> me, but I'm never given the opportunity to add the slave as a service.
>
> The old service entry is totally incompatible. The old service entry
> executes a "jenkins-slave.exe" which, apparently, is no longer used (at
> least, I didn't get one when I executed the command
>
> java -jar slave.jar  -jnlpUrl 
> http://##.##.##.##:8080/computer/SLAVE_NAME/slave-agent.jnlp -secret 
> x ).
>
> If it matters, my master is Linux and my slaves are Windows.
>
> From the master, I tried to "Let Jenkins control this Windows slave as a 
> Windows service", but that didn't work.
> In fact, the master tried and failed to authenticate so many times, it locked 
> my slave's user account (really not good at all :-().
>
> So, I'd like to go back to how things worked before. Each slave had a 
> jenkinsslave-C__Jenkins service.
>
> Thanks in advance.
>
> Steve K.
>
>
>  --
> 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-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


No longer provided a means to add Jenkins slave as a service. What to do now?

2013-09-25 Thread Steve K
Hello,

Previously, with Jenkins 1.40x.x, when adding a new slave, I would log in 
to the slave and use the command provided to me. Something like:
java -jar slave.jar 

With that, I would be given the opportunity to add the slave process as a 
service.

Now, the command includes the -secret , which is OK with 
me, but I'm never given the opportunity to add the slave as a service.

The old service entry is totally incompatible. The old service entry 
executes a "jenkins-slave.exe" which, apparently, is no longer used (at 
least, I didn't get one when I executed the command

java -jar slave.jar  -jnlpUrl 
http://##.##.##.##:8080/computer/SLAVE_NAME/slave-agent.jnlp -secret 
x ).

If it matters, my master is Linux and my slaves are Windows.

>From the master, I tried to "Let Jenkins control this Windows slave as a 
>Windows service", but that didn't work.
In fact, the master tried and failed to authenticate so many times, it locked 
my slave's user account (really not good at all :-().

So, I'd like to go back to how things worked before. Each slave had a 
jenkinsslave-C__Jenkins service.

Thanks in advance.

Steve K.


-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.