New Agent Stuck in Upgrade Loop

Just installed 6.5.6 in a Windows non-domain (workgroup) environment.  On the build agent it seems to be stuck in an upgrade loop.  From what I can tell nothing is holding a lock on the files per say but I'm still seeing the following:

INFO   | jvm 1    | 2012/02/19 22:56:07 | Previous upgrade attempt failed with message (check upgrade.log for more details):   INFO   | jvm 1    | 2012/02/19 22:56:07 |   INFO   | jvm 1    | 2012/02/19 22:56:07 | Upgrade failed. Problems deleting C:\TeamCity\buildAgent\launcher INFO   | jvm 1    | 2012/02/19 22:56:07 |   INFO   | jvm 1    | 2012/02/19 22:56:07 | java.io.IOException: Problems deleting C:\TeamCity\buildAgent\launcher INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.UpgradeFolder.doUpgrade(UpgradeFolder.java:53) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.LauncherFolder.doUpgrade(LauncherFolder.java:27) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.UpgradeFolder.upgrade(UpgradeFolder.java:39) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.AgentUpgrade.doUpgrade(AgentUpgrade.java:82) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.AgentUpgrade.applyUpdates(AgentUpgrade.java:54) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.UpgradeRunBase.run(UpgradeRunBase.java:40) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.UpgradeMode$2.run(UpgradeMode.java:28) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.Upgrade2.main2(Upgrade2.java:34) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at java.lang.reflect.Method.invoke(Unknown Source) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.ClazzLoader.call(ClazzLoader.java:59) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.ClazzLoader.callMain2(ClazzLoader.java:19) INFO   | jvm 1    | 2012/02/19 22:56:07 |      at jetbrains.buildServer.agent.upgrade.Upgrade.main(Upgrade.java:16)



Any thoughts on what may be causing the upgrade loop?
1 comment
Comment actions Permalink

Using Process Explorer I found out that remote desktop session's Windows Explorer (explorer.exe) had a file lock on the launcher folder.  After killing that and restarting the build agent service it managed to make the upgrade happen.

0

Please sign in to leave a comment.