2014-02-09 52 views
0

我在启动TeamCity代理时遇到了这个问题。在EC2上公开TC服务器我正在使用应用程序请求路由,创建一个服务器场并在内部路由80到8080。我可以在下面的日志中看到端口9090的提及 - 我想知道是否需要为9090创建第二个应用程序请求路由 - 我没有在任何文档中看到提及 - 任何人都有XP?TeamCity代理返回502错误的网关

[2014-02-09 07:31:35,994] INFO - buildServer.AGENT.registration - Registering on 
server http://team.xxxx.com.au, AgentDetails{Name='WIN-IXXX', 
AgentId=null, BuildId=null, AgentOwnAddress='null', AlternativeAddresses= 
[10.xxx.xxx.xxx, 54.xxx.xxx.xxx], Port=9090, Version='27767', PluginsVersion='NA', 
AvailableRunners=[], AvailableVcs=[], AuthorizationToken=''} 

[2014-02-09 07:32:08,567] WARN - buildServer.AGENT.registration - Call 
http://team.xxxx.com.au/RPC2 buildServer.registerAgent3: 
org.apache.xmlrpc.XmlRpcClientException: Server returned incorrect status code: 502 Bad 
Gateway 

回答

1

的TeamCity的服务器必须能够通过buildAgent.properties文件的ownPort财产开到代理HTTP连接。该端口默认为9090

你可以在这里阅读更多:

TeamCity - Setting Up Additional Build Agents

+0

感谢您的答复。我在代理和服务器的安全组中都打开了9090,但代理上有防火墙 - 现在已关闭 - 非常感谢您的提示。 – MikeW