TeamCity Build 代理未连接到 TeamCity Server



我在 Amazon EC2 Windows 实例上有一个 TeamCity Server(9.0.3(build 32334))。

我还有另一个用于构建代理的 EC2 实例 (Windows)。我在端口 9090 上的这个新实例上安装了构建代理,它在 teamCity UI 上完美显示,但是当我这次使用端口 9091 在同一台计算机上安装第二个代理时,新代理没有显示在 TeamCity UI 上(在已连接/已断开连接/未经授权下)。

但是,两个代理服务都在运行(在Windows服务下进行了验证)。

我点击了此链接来安装多个代理:https://confluence.jetbrains.com/display/TCD9/Setting+up+and+Running+Additional+Build+Agents#SettingupandRunningAdditionalBuildAgents-UsingLaunchDaemonsStartupFilesonMacOSx

这是我从TeamCity代理日志中得到的

buildServer.AGENT.registration - Call http://1.2.3.4/RPC2 buildServer.registerAgent3: org.apache.xmlrpc.XmlRpcException: jetbrains.buildServer.CannotPingAgentException: Unable to ping agent BuildAgent_QANEW. Check firewall and/or try to specify 'ownAddress' in the agent configuration. Details: Agent 'BuildAgent_QANEW' cannot be accessed by any of the addresses: [1.2.3.4, 2001:0:9d38:90d7:1ca5:281b:f575:9901, 1.2.3.4], (port 9091) 

原来是防火墙问题,我为 EC2 上的安全组添加了端口 9091 的自定义 TCP 规则,现在端口 9091 上的代理也在连接。因此,每当出现CannotPingAgentException时,它很可能是由于防火墙或不正确的代理属性。

最新更新