在Jenkins服务器上找不到tcpSlaveAgentListener [英] tcpSlaveAgentListener not found on Jenkins server
问题描述
我正在尝试从从服务器连接到Jenkins主服务器实例。从连接性的角度来看,一切看起来都不错。我可以按照在Jenkins中配置全局安全性中设置的从设备启动从属节点的位置来卷曲所选的 JNLP代理的TCP端口:
$ curl http:// myjenkinsurl:7004 /
Jenkins-Agent-Protocols:CLI-connect,CLI2-connect,JNLP-connect,
JNLP2-connect,JNLP4-connect ,Ping
Jenkins版本:2.62
Jenkins会话:77c90621
客户端:10.0.0.2
服务器:172.0.0.2
但是,当尝试启动从属节点时,在从属节点上报告了此错误:
信息:在[http:// myjenkinsurl:7004]中定位服务器
2017年5月25日12:22:12 hudson.remoting.jnlp.Main $ CuiListener错误
严重:http:// myjenkinsurl:7004 / tcpSlaveAgentListener /无效:404未找到
在卷曲
自升级到Jenkins 2.62以来,我收到此错误,并且以前在Jenkins 2.19上使用了类似的配置。
我可以找到的大多数类似查询都没有正确配置此额外的端口,但是我从此设置端口上的卷曲Jenkins获得的输出(在我的情况下为7004)似乎表明这不是问题所在。
如何使tcpSlaveAgentListener URL起作用?
我的情况是,我在Kubernetes上同时运行:主服务器和从服务器。
让它在入口下工作的挑战,我遇到了类似的错误,如果我理解正确的话:
/ tcpSlaveAgentListener /
应该在詹金斯主港(通常为8080)下存在。
此URL,您在Manage Jenkins->配置->云/ Kubernetes中配置
Jenkins URL: http:// jenkins: 8080
然后,在Manage Jenkins-> Global Security-> Agents
下,入站代理的TCP端口: 50000
。
在这里,您不能使用与您的Jenkins主要服务相同的端口。
I am trying to connect to a Jenkins master instance from a slave. From a connectivity standpoint, everything looks good. I am able to curl the selected "TCP port for JNLP agent" as set in "Configure Global Security" in Jenkins from where I am starting 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 trying to get to start a 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 the 404 Not Found error when curling http://myjenkinsurl:7004/tcpSlaveAgentListener/
This is what my relevant section of Configure Global Security looks like:
I am getting this error since upgrading to Jenkins 2.62 and it was previously working with a similar configuration on Jenkins 2.19.
Most of the similar queries I can find to this question do not have this additional port configured correctly, but the output I get from curling Jenkins on this set port, 7004 in my case, seems to indicate that this is not where the problem lies.
How do I get the tcpSlaveAgentListener URL to function?
My case, I'm running both: master and the slaves on Kubernetes.
The challenge of getting this working under a ingress apart, I was getting a similar error, and if I understood it right:
the /tcpSlaveAgentListener/
should exist under Jenkins main port (usually 8080).
This URL, you configure at Manage Jenkins -> Configuration-> Cloud / Kubernetes
Jenkins URL: http://jenkins:8080
Then, under Manage Jenkins -> Global Security-> Agents
TCP Port for inbound agents: 50000
.
Here you can't use the same port as your main service for Jenkins.
这篇关于在Jenkins服务器上找不到tcpSlaveAgentListener的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!