情景:
TeamCity Server安装在服务器A上(运行Windows Server 2003)。 Build Agend直接安装在第一次尝试中,并通过Agent Push在开发机器B(运行Windows 7)上进行第二次尝试。
已正确配置builtAgent.properties。在机器B上,我创建了一个firrewall规则,允许端口9090用于UDP和TCP。服务器似乎到达远程代理,但是unsuccesfull(参见日志片段):
从服务器端(机器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
为什么我无法在服务器上看到未授权组中的代理?我的想法用完了......
答案 0 :(得分:0)
在/ etc / hosts文件中指定您的Teamcity IP地址。启动代理,现在您的代理将出现在断开连接的代理列表中。