Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins kubernetes jenkins slave node is offline

root@k8s:/opt/k8s/kubernetes/cluster/ubuntu/binaries# ./kubectl logs jnlp-slave-1c45182a61

Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main createEngine
INFO: Setting up slave: jnlp-slave-1c45182a61
Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://jenkins_server_ip:8080]
Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: http://jenkins_server_ip:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found
java.lang.Exception: http://jenkins_server_ip:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found
        at hudson.remoting.Engine.run(Engine.java:215)

root@k8s:/opt/k8s/kubernetes/cluster/ubuntu/binaries# curl http://jenkins_server_ip:8080/tcpSlaveAgentListener/

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /tcpSlaveAgentListener/. Reason:
<pre>    Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>

</body>
</html>
like image 448
rhinoceros.xn Avatar asked Aug 16 '16 07:08

rhinoceros.xn


People also ask

Why Jenkins node is offline?

Jenkins monitors each attached node for disk space, free temp space, free swap, clock time/sync and response time. A node is taken offline if any of these values go outside the configured threshold.

How do you check if Jenkins Slave is running?

Visit a url like http:``//myslave:3141 to see whether a slave is running and how much memory it is using. Configure the port used by clicking Manage Jenkins on the dashboard.


1 Answers

Please check http://jenkins_server_ip:8080/configureSecurity/

[TCP port for JNLP slave agents] should NOT be [Disable]

like image 85
rhinoceros.xn Avatar answered Nov 07 '22 10:11

rhinoceros.xn