TeamCity v6 - TFS Checkout problems

Hi

Since upgrading to TeamCity v6 yesterday, we've been intermittent failures from TeamCity for builds on all of our agents.  There seems to be some kind of problem with mapping to the Workspace on the client.  I've removed all existing workspaces on the clients to allow TeamCity to create new ones, but the problem still persists.  We are using VS 2010 with TFS 2008 for Source Control.  Here is a typical stack trace of the issue:

jetbrains.buildServer.vcs.VcsException: TFS failed. ExitCode: 1, Stdout:: TFS Native Verifier v6.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Use Tfs from JetBrains.TeamCity.Tfs.Tfs10Accessor
TFS Native Accessor v6.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Connecting to server http://prods-tfs:8080/
Build Patch:
Server='http://prods-tfs:8080/'
Username='PRAGMA\BuildService'
Mappings File='C:\BuildAgent\temp\cache\TC-TFS-568-1291392788342.mappings'
CurrentVersion='44926'
INFO - Workspace TeamCity-A2-wia4d66mm5l62ovq36cc574fl/PRAGMA\buildservice(TeamCity checkout workspace) does not matches to TeamCity build configuration's checkout rules
INFO - No matched workspaces were found. Will recreate workspace and perofming clean checkout.
INFO - Start Update workspaces cache
INFO - Finished Update workspaces cache in 30.2746ms
ERROR - The process cannot access the file 'C:\TC\OK52\pOnKey\Main\Source\Pragma.OnKey5.Server\Logs\exceptions.xml' because it is being used by another process.
System.Exception: The process cannot access the file 'C:\TC\OK52\pOnKey\Main\Source\Pragma.OnKey5.Server\Logs\exceptions.xml' because it is being used by another process. ---> System.IO.IOException: The process cannot access the file 'C:\TC\OK52\pOnKey\Main\Source\Pragma.OnKey5.Server\Logs\exceptions.xml' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at JetBrains.TeamCity.Tfs.FileUtil.SafeDelete(String root) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\FileUtil.cs:line 17
at JetBrains.TeamCity.Tfs.FileUtil.SafeDelete(String root) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\FileUtil.cs:line 22
at JetBrains.TeamCity.Tfs.FileUtil.SafeDelete(String root) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\FileUtil.cs:line 22
at JetBrains.TeamCity.Tfs.FileUtil.SafeDelete(String root) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\FileUtil.cs:line 22
at JetBrains.TeamCity.Tfs.ExtensionMethods.ForEach[T](IEnumerable`1 enu, Action`1 act) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\ExtensionMethods.cs:line 29
at JetBrains.TeamCity.Tfs.WorkspaceMappings.CleanDestFolders() in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\WorkspaceMappings.cs:line 73
at JetBrains.TeamCity.Tfs.WorkspaceManager.GetMappedWorkspaceImpl() in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\WorkspaceManager.cs:line 103
at JetBrains.TeamCity.Tfs.WorkspaceManager.GetMappedWorkspace() in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\WorkspaceManager.cs:line 91
at JetBrains.TeamCity.Tfs.CleanPatchCommandBase.DoWithWorkspace(WorkspaceManager manager, Int32 currentChangesetId) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\CleanPatchCommandBase.cs:line 0
at JetBrains.TeamCity.Tfs.CleanPatchCommandBase.DoWithTfs(VersionControlServer vcs, Int32 fromChangesetId, Int32 currentChangesetId) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\CleanPatchCommandBase.cs:line 35
at JetBrains.TeamCity.Tfs.ComplicatedCommand.DoWithTfs(VersionControlServer vcs) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\ComplicatedCommand.cs:line 37
at JetBrains.TeamCity.Tfs.Command.Do() in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\Command.cs:line 28
at JetBrains.TeamCity.Tfs.Program.Main(String[] args) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\Program.cs:line 275
--- End of inner exception stack trace ---
at JetBrains.TeamCity.Tfs.Program.Main(String[] args) in c:\Agent\work\9045dc34697d9e2f\TfsNativeAccessor\src\Program.cs:line 349
, Stderr::
at jetbrains.buildServer.buildTriggers.vcs.tfs.TfsNativeExeRunner.start(TfsNativeExeRunner.java:57)
at jetbrains.buildServer.buildTriggers.vcs.tfs.TfsServerNativeExeRunner.start(TfsServerNativeExeRunner.java:102)
at jetbrains.buildServer.buildTriggers.vcs.tfs.TfsUpdateByCheckoutRules.updateSources(TfsUpdateByCheckoutRules.java:33)
at jetbrains.buildServer.agent.impl.patch.ProjectSourcesOnAgent.checkoutSources(ProjectSourcesOnAgent.java:72)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromAgent.updateSources(UpdateSourcesFromAgent.java:60)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:90)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:58)
at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:74)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:29)
at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:68)
at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:31)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:65)
at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:48)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:250)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:223)
at java.lang.Thread.run(Thread.java:595)

Please sign in to leave a comment.