【问题标题】:Why can't the local teamcity build agent access the server为什么本地teamcity构建代理无法访问服务器
【发布时间】:2013-09-23 13:06:18
【问题描述】:

我在使用 teamcity 上的本地构建代理时遇到问题 - 它无法在服务器上注册。远程代理注册成功。这是代理日志,服务器日志什么也没说。

[2013-09-23 12:20:43,739]   INFO - buildServer.AGENT.registration - Registering on server http://localhost, AgentDetails{Name='name', AgentId=null, BuildId=null, AgentOwnAddress='null', AlternativeAddresses=[192.168.56.1, 10.55.72.133], Port=9090, Version='27540', PluginsVersion='27540-md5-2b35d17be053845ad7c8e61930f772f0', AvailableRunners=[Ant, dotnet-tools-dupfinder, dotnet-tools-inspectcode, Duplicator, FxCop, gradle-runner, Inspection, Ipr, jb.nuget.installer, jb.nuget.pack, jb.nuget.publish, jetbrains.dotNetGenericRunner, jetbrains.mspec, jetbrains_powershell, JPS, Maven2, MSBuild, MSTest, NAnt, NUnit, rake-runner, simpleRunner, sln2003, VS.Solution], AvailableVcs=[perforce, mercurial, jetbrains.git, tfs, svn, cvs], AuthorizationToken=''} 
[2013-09-23 12:20:47,796]   WARN - buildServer.AGENT.registration - Call http://localhost/RPC2 buildServer.registerAgent3: java.net.SocketException: Connection reset 
[2013-09-23 12:20:47,797]   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). 

事件查看器日志中没有相关条目。

teamcity 代理使用的 Java 版本与服务器相同。

【问题讨论】:

  • 尝试查看代理日志,而不是服务器日志。
  • @AlexanderDoroshenko 这是代理日志。

标签: java windows teamcity teamcity-8.0


【解决方案1】:

如果它尝试使用localhost,可能与您的主机文件有关。

尝试调整本地代理以连接到远程代理正在使用的同一 IP/端口,并将本地代理的 IP 设置为机器的 IP。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多