teamcity windows 代理未连接到 Ubuntu 中的 teamcity 服务器 运行

teamcity windows agent not connecting to teamcity server running in Ubuntu

我正在尝试从 windows 连接 Ubuntu 中的 teamcity 服务器 运行,但它不起作用。

我更改了防火墙设置并打开了端口 9090 和 8111。

我从 windows 代理那里得到这些日志

Call http://my.domain.com:8111/RPC2 buildServer.registerAgent3: org.apache.xmlrpc.XmlRpcException: jetbrains.buildServer.CannotPingAgentException: Unable to ping agent . Check firewall and/or try to specify 'ownAddress' in the agent configuration. Details: Agent '' cannot be accessed by any of the addresses: [183.83.50.68, 192.168.1.146], (port 9090)

表示TeamCity服务器无法通过指定的地址和端口访问TeamCity代理。

确保您的代理 IP 地址是 183.83.50.68,并且到 9090 端口的传入连接未被防火墙和防病毒软件或类似软件阻止。

或者您可以更新到 TeamCity 9.1 或更高版本 - 在这些版本中,服务器不必能够连接到代理,只需要代理到服务器的连接。