2013-09-23 36 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。

相關問題