-
Bug
-
Resolution: Unresolved
-
Minor
-
## Master
Jenkins Version : 2.65
OS: Alpine OS 3.5
Swarm Plugin 3.4
## Slave
Jenkins Swarm Client: 3.3
OS: CentOS 7
Java: 1.8
Jenkins Swarm successfully connect to master and take jobs but keep on going offline and then reconnecting after few seconds
This is how I connect to Jenkins Master
java -jar /opt/swarm-client.jar \ -master http://${master_elb} \ -username ${user} \ -password ${password} \ -labels slave \ -executors ${executors} \ -description 'Jenkins Slave' \ -retryInterval 5 \ -fsroot ${app_dir} \ -name ${LOCAL_IP}
These are the logs
INFO: Agent discovery successful Agent address: my-jenkins-master.com Agent port: 50000 Identity: 05:d2:dc:14:94:0e:3a:e9:18:7b:2b:dc:2b:e0:06:4c Jul 19, 2017 6:40:36 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Jul 19, 2017 6:40:36 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to my-jenkins-master.com:50000 Jul 19, 2017 6:40:36 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Trying protocol: JNLP4-connect Jul 19, 2017 6:40:36 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Remote identity confirmed: 05:d2:dc:14:94:0e:3a:e9:18:7b:2b:dc:2b:e0:06:4c Jul 19, 2017 6:40:36 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Jul 19, 2017 6:41:41 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated Jul 19, 2017 6:41:41 PM hudson.plugins.swarm.Client run INFO: Retrying in 5 seconds Jul 19, 2017 6:41:46 PM hudson.plugins.swarm.Client run INFO: Attempting to connect to http://my-jenkins-master.com/ ae3d1dbd-4a93-4c89-b98c-f90ed62f1f71 with ID 7aef328a Jul 19, 2017 6:41:46 PM hudson.plugins.swarm.SwarmClient getCsrfCrumb SEVERE: Could not obtain CSRF crumb. Response code: 404 Jul 19, 2017 6:41:47 PM hudson.remoting.jnlp.Main createEngine INFO: Setting up slave: 10-61-67-169-7aef328a Jul 19, 2017 6:41:47 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Jul 19, 2017 6:41:47 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://my-jenkins-master.com/] Jul 19, 2017 6:41:47 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Agent discovery successful Agent address: my-jenkins-master.com Agent port: 50000 Identity: 05:d2:dc:14:94:0e:3a:e9:18:7b:2b:dc:2b:e0:06:4c
Is there something else I can do to make it stable?