【问题标题】:Cannot see remote Build Agent from server in TeamCity无法从 TeamCity 中的服务器看到远程构建代理
【发布时间】:2014-11-17 18:08:40
【问题描述】:

场景:

TeamCity Server 安装在服务器 A(运行 Windows Server 2003)上。 Build Agent 在第一次尝试中直接安装,在第二次尝试中通过 Agent Push 在开发机器 B(运行 Windows 7)上安装。

builtAgent.properties 已正确配置。在机器 B 上,我创建了一个防火墙规则,允许 UDP 和 TCP 使用端口 9090。服务器似乎到达远程代理,但不成功(见日志 sn-ps):

来自服务器端(机器 A)的日志:

[2014-02-19 14:52:22,698]   WARN -   jetbrains.buildServer.SERVER - Exception occurred while communicating by XML RPC: ClientAbortException:  java.io.IOException: An existing connection was forcibly closed by the remote host /remote: 192.168.70.229:50166

从代理端(机器 B)记录:

[2014-02-19 10:37:20,199]   INFO - buildServer.AGENT.registration - Registering on server http://buserver.ff.local, AgentDetails{Name='DREPTATE03', AgentId=null, BuildId=null, AgentOwnAddress='192.168.70.229', AlternativeAddresses=[127.0.0.1], Port=9090, Version='29879', PluginsVersion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='MKH4lrA7rQn3nZFQUxaMPsorTqpjzoh6'}
[2014-02-19 10:37:20,239]   INFO - agent.impl.AgentPortFileWriter - Writing agent runtime file to C:\BuildAgent\logs\buildAgent.port
[2014-02-19 10:37:20,239]   INFO - agent.impl.AgentPortFileWriter - Launcher version is 29879
[2014-02-19 10:37:20,239]   INFO - agent.impl.AgentPortFileWriter - Writing agent runtime file to C:\BuildAgent\logs\buildAgent.port :DONE!
[2014-02-19 10:37:20,239]   INFO -    jetbrains.buildServer.AGENT - Build agent started
[2014-02-19 10:37:20,299]   WARN - buildServer.AGENT.registration - Call http://buserver.ff.local/RPC2 buildServer.registerAgent3: java.net.UnknownHostException: buserver.ff.local
[2014-02-19 10:37:20,299]   WARN - buildServer.AGENT.registration - Connection to TeamCity server is probably lost. Will be trying to restore it. Take a look at logs/teamcity-agent.log for details (unless you're using custom logging).

builtAgent.properties:

#Generated properties (see buildAgent.dist.properties for description)
#Tue Feb 18 16:41:59 CST 2014
name=DREPTATE03
ownAddress=192.168.70.229
ownPort=9090
serverUrl=http\://buserver.ff.local
workDir=C\:\\BuildAgent\\work
tempDir=C\:\\BuildAgent\\temp
#User defined properties
#Tue Feb 18 16:41:59 CST 2014
env.TEAMCITY_JRE=C\:\\BuildAgent\\jre

任何想法为什么我看不到服务器上未经授权的组中的代理?我的想法用完了....

【问题讨论】:

    标签: teamcity


    【解决方案1】:

    在 /etc/hosts 文件中指定您的 Teamcity ip 地址。启动您的代理,现在您的代理将出现在断开连接的代理列表中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-06
      • 2012-10-20
      • 1970-01-01
      • 2015-11-15
      相关资源
      最近更新 更多