java - 服务器拒绝连接 : None of the protocols were accepted

标签 java git jenkins master-slave

当我在我的客户端 VM 中将 Jenkins 作为 Windows 服务启动时,我遇到了一个奇怪的问题。

1) 我在我的客户端主机(Windows 虚拟机) 中启动了 Jenkins 作为 Windows 服务 并将我的本地机器配置为从设备,但我无法在主设备和从设备之间建立连接。我收到以下错误:

"java.lang.Exception: The server rejected the connection: None of the protocols were accepted"

master 和 slave 都在同一个网络中(客户端的网络,使用 VPN 连接的 slave)。

Client主机域名ABC
native 域名xyz

console output

2) 我已将 Jenkins 作为 Windows 服务停止并使用

通过命令提示符再次启动
"java -jar jenkins.war"

现在我可以毫无问题地在主从之间建立连接。

3) 现在我已经在我的 **本地机器上启动了 Jenkins 作为 Windows 服务 和其中一台本地机器作为从机,并成功建立了两者之间的连接主从。

使用点(1)主从之间没有建立连接的具体原因是什么?

最佳答案

在我的例子中,链接到禁用的协议(protocol)。

下一步检查:如果您的 Jenkins 支持 JNLPv4,请在使用前启用它。

Jenkins -> Global Security Configuration -> Agents -> Agent protocols -> Inbound TCP Agent Protocol/4 (TLS encryption)

enter image description here

关于java - 服务器拒绝连接 : None of the protocols were accepted,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35309316/

相关文章:

java - 从 java8 迁移到 java9 时,对方法的引用不明确

Git 克隆导致 : "Cannot get remote repository information."

git - 如何解决 Git 存储库中的 merge 冲突?

ios - 使用 Jenkins 构建 Xcode 项目会出现代码设计错误

c# - MSBuild 未将文件复制到发布文件夹?

java - JBoss 到 Spring Boot 和 Spring Security 升级 : X509 Authentication problems

java - 如何在java的Swing GUI中将图像设置为Frame的背景?

java - Apache 服务器 RewriteRule 到 Tomcat war - 从 url 中删除应用程序名称

单用户的 Git 工作流程

groovy - jenkins 中找不到 hudson*.groovy