So the server is complaining that it already has a server by that name.  When 
the slave job is down, does the Server still regard it as up?  Maybe Jenkins 
hasn't noticed yet (there's a 4-minute "ping timeout" involved, so it might not 
have).

I have a cron job that runs every five minutes, looking for the slave job with 
the help of "ps".  When it can't find it, it fires off "nohup bash 
launchSlave.sh &".  The launchSlave.sh job sets some environment variables and 
launches "java -jar slave.jar -jnlpUrl ...".

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Stuart Green
Sent: Tuesday, May 28, 2013 10:03 AM
To: jenkinsci-users@googlegroups.com
Subject: Jenkins Linux Slave fails to connect to Jenkins master - JLNP Java Web 
Start

Hello..

This is getting to be a bit of a pain, it seems to happen every time we reboot 
the linux slave, but does not happen when we reboot the windows slave that we 
have. We are on Jenkins ver. 1.515 so the fix in 1.398(off the top of my head) 
is definitely there.


May 15, 2013 11:13:37 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected

May 15, 2013 11:13:37 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected

Session terminated, killing shell... ...killed.
Skipping HTTPS certificate checks altogether. Note that this is not secure at 
all.
May 22, 2013 9:52:30 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
May 22, 2013 9:52:31 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [https://jenkins.internal.ourserver.com/, 
http://jenkins.internal.ourserver.com/]
May 22, 2013 9:52:31 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to jenkins.internal.ourserver.com:8081
May 22, 2013 9:52:31 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
May 22, 2013 9:52:31 AM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: The server rejected the connection: SRV-LJS-03 is already connected to 
this master. Rejecting this connection.
java.lang.Exception: The server rejected the connection: SRV-LJS-03 is already 
connected to this master. Rejecting this connection.
at hudson.remoting.Engine.onConnectionRejected(Engine.java:257)
at hudson.remoting.Engine.run(Engine.java:232)

Then if I start it manually (when someone shouts) its fine.
Skipping HTTPS certificate checks altogether. Note that this is not secure at 
all.
May 28, 2013 2:17:10 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
May 28, 2013 2:17:10 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [https://jenkins.internal.ourserver.com/, 
http://jenkins.internal.ourserver.com/]
May 28, 2013 2:17:10 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to jenkins.internal.ourserver.com:8081
May 28, 2013 2:17:10 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
May 28, 2013 2:17:10 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected


Is there anyone that is using the same method sucessfully able to advise on how 
they are doing it?

Thanks,
Stu
--
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.


The information in this message is for the intended recipient(s) only and may 
be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
protected from disclosure. If you are not the intended recipient(s), or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any use, dissemination, distribution or 
copying of this communication is prohibited. If you have received this 
communication in error, please notify Litle & Co. immediately by replying to 
this message and then promptly deleting it and your reply permanently from your 
computer.

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


Reply via email to