TcpSlaveAgentListener not found on Jenkins server

I am trying to connect to an instance of a Jenkins wizard from a subordinate. In terms of connectivity, everything looks good. I can twist the selected “TCP port for the JNLP agent”, as indicated in “Configure global security” in Jenkins, from where I run the slave node:

$ curl http://myjenkinsurl:7004/ Jenkins-Agent-Protocols: CLI-connect, CLI2-connect, JNLP-connect, JNLP2-connect, JNLP4-connect, Ping Jenkins-Version: 2.62 Jenkins-Session: 77c90621 Client: 10.0.0.2 Server: 172.0.0.2 

However, when you try to start the slave node, I get this error reported on the slave node:

 INFO: Locating server among [http://myjenkinsurl:7004] May 25, 2017 12:22:12 PM hudson.remoting.jnlp.Main$CuiListener error SEVERE: http://myjenkinsurl:7004/tcpSlaveAgentListener/ is invalid: 404 Not Found 

I also get 404 Not Found error when twisting http: // myjenkinsurl: 7004 / tcpSlaveAgentListener /

Here's what my relevant Global Security Configuration section looks like:

Customize Global Security

I get this error since upgrading to Jenkins 2.62, and it previously worked with a similar configuration on Jenkins 2.19.

Most of the similar queries that I can find on this issue do not have a properly configured additional port, but the output that I get from Jenkins twisting on this installation port, in my case 7004, seems to indicate that this is not the case when the problem lies.

How do I get the tcpSlaveAgentListener url?

+7
source share
1 answer

In my case, I control both the master and the slaves in Kubernetes. The task of sorting this out while working, I got a similar error, and if I understood correctly: /tcpSlaveAgentListener/ must exist under the main Jenkins port (usually 8080). This URL is configured under "Manage Jenkins -> Configuration-> Cloud / Kubernetes

Jenkins URL: http://jenkins:8080

Then under Jenkins Management → Global Security-> Agents

TCP port for incoming agents: 50000 .

You cannot use the same port here as your main service for Jenkins.

+1
source

Source: https://habr.com/ru/post/1268230/


All Articles