2013-09-23 34 views
0

我在teamcity上的本地构建代理遇到问题 - 它无法向服务器注册。远程代理正在成功注册。这里是代理日志,服务器日志没有提到它。为什么本地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。

+0

尝试查看代理日志,而不是服务器日志。 –

+0

@AlexanderDoroshenko这是代理日志。 – penguat

回答

0

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

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

相关问题