I installed a build agent on a different box than my teamcity server (where a build agent runs fine). The new build agent is in a disconnected state and I'm trying to figure out how to make it connect. My conjecture is that the new build agent is trying to apply upgrades and is failing. I see several stack-traces in the upgrade.log like this, it's not clear to me what it's getting denied access to:
[2009-03-04 11:35:08,972] INFO - .agent.run.ProcessOutputLogger - C:\BuildAgent\bin>..\launcher\bin\TeamCityAgentService-windows-x86-32.exe -t ../conf/wrapper.conf
[2009-03-04 11:35:08,988] INFO - .agent.run.ProcessOutputLogger - wrapper | OpenSCManager failed - Access is denied. (0x5)
[2009-03-04 11:35:08,988] ERROR - r.agent.upgrade.UpgradeRunBase - java.io.IOException: Failed to start process. Return code was 1 not equal to zero.
java.io.IOException: Failed to start process. Return code was 1 not equal to zero.
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
And the following in the teamcity-agent.log suggests that the upgrade failure is causing the agent to shutdown:
[2009-03-04 11:28:40,366] INFO - rocesses.ProcessTreeTerminator - No processes to kill
[2009-03-04 11:28:40,366] INFO - jetbrains.buildServer.AGENT - Exit for upgrade
[2009-03-04 11:28:40,366] INFO - jetbrains.buildServer.AGENT - Shutdown agent start
[2009-03-04 11:28:40,366] INFO - jetbrains.buildServer.AGENT - Unregistering from build server: 2
[2009-03-04 11:28:40,381] INFO - jetbrains.buildServer.AGENT - Shutdown agent WebServer start
[2009-03-04 11:28:40,381] INFO - jetbrains.buildServer.AGENT - Shutdown agent WebServer finish
[2009-03-04 11:28:40,381] INFO - jetbrains.buildServer.AGENT - Shutdown agent finish
I've also verified that there's no firewall blocking the port on the build-agent side (port 9090). I don't know how the build-agent communicates with the server though, so I don't know what port to verify for that line of communication. Can someone help me to track down the ports I can verify for that? I don't think that's the problem but I want to be sure.