-
Bug
-
Resolution: Unresolved
-
Minor
-
None
The following error is intermittently shown in the Jenkins log:
Error in provisioning; agent=KubernetesSlave name: ui-1ad2b50d-8cba-4a86-9fbf-0a2292fceff4-dbgs2-q6csg, template=PodTemplate{, name='ui-1ad2b50d-8cba-4a86-9fbf-0a2292fceff4-dbgs2', namespace='jenkins-test', label='ui-1ad2b50d-8cba-4a86-9fbf-0a2292fceff4', nodeUsageMode=EXCLUSIVE, volumes=[HostPathVolume [mountPath=/var/run/docker.sock, hostPath=/var/run/docker.sock], HostPathVolume [mountPath=/users/jenkins/workspace, hostPath=/users/jenkins/workspace], EmptyDirVolume [mountPath=/tmp, memory=true]], containers=[ContainerTemplate{name='jnlp', image='dfwdtrlabawsw.ds.dtveng.net/dtdi-cicd/jenkins-centos-he-slave:OVSYS-34851-SNAPSHOT-4', workingDir='/users/jenkins', args='${computer.jnlpmac} ${computer.name}', ttyEnabled=true}], annotations=[org.csanchez.jenkins.plugins.kubernetes.PodAnnotation@aab9c821]}. Container jnlp. Logs: Running java -cp /usr/share/jenkins/remoting-3.10.2.jar hudson.remoting.jnlp.Main -headless -url http://10.27.16.33:8080/ *** ui-1ad2b50d-8cba-4a86-9fbf-0a2292fceff4-dbgs2-q6csg Jan 14, 2020 10:47:17 PM hudson.remoting.jnlp.Main createEngine INFO: Setting up slave: ui-1ad2b50d-8cba-4a86-9fbf-0a2292fceff4-dbgs2-q6csg Jan 14, 2020 10:47:17 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Jan 14, 2020 10:47:17 PM hudson.remoting.Engine startEngine WARNING: No Working Directory. Using the legacy JAR Cache location: /users/jenkins/.jenkins/cache/jars Jan 14, 2020 10:47:18 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://10.27.16.33:8080/] Jan 14, 2020 10:47:18 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping] Jan 14, 2020 10:47:18 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Agent discovery successful Agent address: 10.27.16.33 Agent port: 35758 Identity: 99:01:27:82:37:4a:ac:c5:08:83:f3:9a:aa:80:2c:68 Jan 14, 2020 10:47:18 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Jan 14, 2020 10:47:18 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to 10.27.16.33:35758 Jan 14, 2020 10:47:18 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Trying protocol: JNLP4-connect Jan 14, 2020 10:47:18 PM WARNING org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launchError in provisioning; agent=KubernetesSlave name: ui-1ad2b50d-8cba-4a86-9fbf-0a2292fceff4-dbgs2-q6csg, template=PodTemplate{, name='ui-1ad2b50d-8cba-4a86-9fbf-0a2292fceff4-dbgs2', namespace='jenkins-test', label='ui-1ad2b50d-8cba-4a86-9fbf-0a2292fceff4', nodeUsageMode=EXCLUSIVE, volumes=[HostPathVolume [mountPath=/var/run/docker.sock, hostPath=/var/run/docker.sock], HostPathVolume [mountPath=/users/jenkins/workspace, hostPath=/users/jenkins/workspace], EmptyDirVolume [mountPath=/tmp, memory=true]], containers=[ContainerTemplate{name='jnlp', image='dfwdtrlabawsw.ds.dtveng.net/dtdi-cicd/jenkins-centos-he-slave:OVSYS-34851-SNAPSHOT-4', workingDir='/users/jenkins', args='${computer.jnlpmac} ${computer.name}', ttyEnabled=true}], annotations=[org.csanchez.jenkins.plugins.kubernetes.PodAnnotation@aab9c821]} java.lang.IllegalStateException: Agent is not connected after 100 seconds, status: Running at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:187) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Please let me know if there are any troubleshooting tips that could resolve this issue.