引起的是:org.jenkinsci.remoting.protocol.impl.connectionrefusalexception:连接在确认发送之前已关闭
尝试使用“ Java -jar Agent.jar -jnlpurl”连接代理节点(RHEL)时,连接不成功。 获取错误“协议JNLP4-Connect遇到了意外的异常” 错误堆栈如下:
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://app.test.sl.com:8080/]
Jul 05, 2022 12:26:55 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: app.test.sl.com
Agent port: 50000
Identity: c8:4d:*:*:*:*:*:*:*:*:*:*:*:*:*:*
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to app.test.sl.com:50000
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Jul 05, 2022 12:26:55 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Protocol JNLP4-connect encountered an unexpected exception
java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Connection closed before acknowledgement sent
at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:223)
at hudson.remoting.Engine.innerRun(Engine.java:799)
at hudson.remoting.Engine.run(Engine.java:544)
Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Connection closed before acknowledgement sent
at org.jenkinsci.remoting.protocol.impl.AckFilterLayer.onRecvClosed(AckFilterLayer.java:280)
at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:825)
at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:155)
at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BIONetworkLayer.java:51)
at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONetworkLayer.java:257)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:126)
at hudson.remoting.Engine$1$$Lambda$9/0000000048003ED0.run(Unknown Source)
at java.lang.Thread.run(Thread.java:820)
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: reconnect rejected, sleeping 10s:
java.lang.Exception: The server rejected the connection: None of the protocols were accepted
at hudson.remoting.Engine.onConnectionRejected(Engine.java:878)
at hudson.remoting.Engine.innerRun(Engine.java:825)
at hudson.remoting.Engine.run(Engine.java:544)
Jenkins日志
javax.net.ssl.SSLHandshakeException: Client requested protocol TLSv1 is not enabled or supported in server context
When trying to connect an agent node (Rhel) using the "java -jar agent.jar -jnlpUrl", the connection is not successful.
Getting the error "Protocol JNLP4-connect encountered an unexpected exception"
The error stack is below:
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://app.test.sl.com:8080/]
Jul 05, 2022 12:26:55 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: app.test.sl.com
Agent port: 50000
Identity: c8:4d:*:*:*:*:*:*:*:*:*:*:*:*:*:*
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to app.test.sl.com:50000
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Jul 05, 2022 12:26:55 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Protocol JNLP4-connect encountered an unexpected exception
java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Connection closed before acknowledgement sent
at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:223)
at hudson.remoting.Engine.innerRun(Engine.java:799)
at hudson.remoting.Engine.run(Engine.java:544)
Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Connection closed before acknowledgement sent
at org.jenkinsci.remoting.protocol.impl.AckFilterLayer.onRecvClosed(AckFilterLayer.java:280)
at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:825)
at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:155)
at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BIONetworkLayer.java:51)
at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONetworkLayer.java:257)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:126)
at hudson.remoting.Engine$1$Lambda$9/0000000048003ED0.run(Unknown Source)
at java.lang.Thread.run(Thread.java:820)
Jul 05, 2022 12:26:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: reconnect rejected, sleeping 10s:
java.lang.Exception: The server rejected the connection: None of the protocols were accepted
at hudson.remoting.Engine.onConnectionRejected(Engine.java:878)
at hudson.remoting.Engine.innerRun(Engine.java:825)
at hudson.remoting.Engine.run(Engine.java:544)
Jenkins Logs
javax.net.ssl.SSLHandshakeException: Client requested protocol TLSv1 is not enabled or supported in server context
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论