Build Agent won't show connected. Possible upgrade problem?

I recently upgraded from TeamCity 4.0 to 4.5 and when I did my agent showed as Disconnected instead of connected.   After checking the logs it appears that it is exiting, so that it can upgrade itself.  However, in the update.log I saw this:

[2009-05-13 11:50:36,479]   INFO - r.agent.upgrade.UpgradeRunBase - Run command line (arguments separated with '|'): cmd.exe|/c|C:\TeamCity\buildAgent\bin\service.start.bat| (at C:\TeamCity\buildAgent\bin)
[2009-05-13 11:50:36,526]   INFO - - 
[2009-05-13 11:50:36,526]   INFO - - C:\TeamCity\buildAgent\bin>..\launcher\bin\TeamCityAgentService-windows-x86-32.exe -t ../conf/wrapper.conf 
[2009-05-13 11:50:36,541]   INFO - - wrapper  | OpenSCManager failed - Access is denied. (0x5)
[2009-05-13 11:50:36,541]   INFO - - 
[2009-05-13 11:50:36,541]  ERROR - r.agent.upgrade.UpgradeRunBase - Failed to start process. Return code was 1 not equal to zero. Failed to start process. Return code was 1 not equal to zero.
at jetbrains.buildServer.agent.upgrade.UpgradeRunBase.runCmdLine(
at jetbrains.buildServer.agent.upgrade.NTServiceUpgrade.exec(
at jetbrains.buildServer.agent.upgrade.NTServiceUpgrade.startAgain(
at jetbrains.buildServer.agent.upgrade.UpgradeMode$
at jetbrains.buildServer.agent.upgrade.Upgrade2.main2(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at jetbrains.buildServer.agent.ClazzLoader.callMain2(
at jetbrains.buildServer.agent.upgrade.Upgrade.main(

It appears my agent won't run or update itself.  Can anyone help me with this?

Comment actions Permalink

The update process was failing, because the account I was running the build agent under did not have access to install the update.

Comment actions Permalink

Build agent upgrade start and stop it's service. Thus it need to be started under user account that have rights for this.

I've added an issue in your tracker. Please watch/vote for it.


Please sign in to leave a comment.