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 - .agent.run.ProcessOutputLogger - 
[2009-05-13 11:50:36,526]   INFO - .agent.run.ProcessOutputLogger - C:\TeamCity\buildAgent\bin>..\launcher\bin\TeamCityAgentService-windows-x86-32.exe -t ../conf/wrapper.conf 
[2009-05-13 11:50:36,541]   INFO - .agent.run.ProcessOutputLogger - wrapper  | OpenSCManager failed - Access is denied. (0x5)
[2009-05-13 11:50:36,541]   INFO - .agent.run.ProcessOutputLogger - 
[2009-05-13 11:50:36,541]  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 jetbrains.buildServer.agent.upgrade.UpgradeRunBase.runCmdLine(UpgradeRunBase.java:67)
at jetbrains.buildServer.agent.upgrade.NTServiceUpgrade.exec(NTServiceUpgrade.java:36)
at jetbrains.buildServer.agent.upgrade.NTServiceUpgrade.startAgain(NTServiceUpgrade.java:26)
at jetbrains.buildServer.agent.upgrade.UpgradeRunBase.run(UpgradeRunBase.java:41)
at jetbrains.buildServer.agent.upgrade.UpgradeMode$2.run(UpgradeMode.java:26)
at jetbrains.buildServer.agent.upgrade.Upgrade2.main2(Upgrade2.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at jetbrains.buildServer.agent.ClazzLoader.call(ClazzLoader.java:59)
at jetbrains.buildServer.agent.ClazzLoader.callMain2(ClazzLoader.java:19)
at jetbrains.buildServer.agent.upgrade.Upgrade.main(Upgrade.java:16)


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

2 comments
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.

0
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.
http://www.jetbrains.net/tracker/issue2/TW-8221

0

Please sign in to leave a comment.