Error trying to run my first build - please help

On a newly created project I click "Run" and get these errors....

(I've set the checkout and build directory to be c:\Polo\PMC, which is a directory on my machine.  My machine is the only agent configured.)

[14:08:37]: Checking for changes
[14:08:42]: Clean build enabled: removing old files from C:\Polo\PMC\BuildDirectory
[14:08:42]: Checkout directory: C:\Polo\PMC\BuildDirectory
[14:08:42]: Updating sources: Agent side checkout... (8s)
[14:08:42]: [Updating sources: Agent side checkout...] Will perform clean checkout. Reason: Checkout directory is empty or doesn't exist
[14:08:42]: [Updating sources: Agent side checkout...] Cleaning C:\Polo\PMC\BuildDirectory
[14:08:42]: [Updating sources: Agent side checkout...] VCS Root: PMC Production (8s)
[14:08:42]: [VCS Root: PMC Production] revision: 6171
[14:08:50]: [Updating sources: Agent side checkout...] Failed to perform checkout on agent: TFS failed. ExitCode: 1, Stdout:: TFS Native Verifier v5.1 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Use Tfs from JetBrains.TeamCity.Tfs.Tfs10Accessor
TFS Native Accessor v5.1 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Connecting to server http://usnypdtfs1v:8080/tfs/defaultcollection
Build Patch:
Server='http://usnypdtfs1v:8080/tfs/defaultcollection'
Username='mmaddux'
Mappings File='C:\TeamCity\buildAgent\temp\cache\TC-TFS-111-1285614522337.mappings'
CurrentVersion='6171'
INFO - No matched workspaces were found. Will recreate workspace and perofming clean checkout.
INFO - Created workspace:TeamCity-A2-lmkoxq6bdwe62ikfe6cm72dv02/PRLRM01\mmaddux(TeamCity checkout workspace)
INFO - Settings up mappings for created workspace: TeamCity-A2-lmkoxq6bdwe62ikfe6cm72dv02/PRLRM01\mmaddux(TeamCity checkout workspace).
INFO - Failed to setup workspace TeamCity-A2-lmkoxq6bdwe62ikfe6cm72dv02/PRLRM01\mmaddux(TeamCity checkout workspace). The working folder C:\Polo\PMC is already in use by the workspace WHITERIDER;PRLRM01\mmaddux on computer WHITERIDER.
INFO - Exception type is Microsoft.TeamFoundation.VersionControl.Client.WorkingFolderInUseException
INFO - Tried to setup mappings:
+:$/InteractiveDevelopment/Main/Pmc=>C:\Polo\PMC\BuildDirectory

INFO - Workspace TeamCity-A2-lmkoxq6bdwe62ikfe6cm72dv02/PRLRM01\mmaddux(TeamCity checkout workspace) removed
INFO - Failed to create workspace. The working folder C:\Polo\PMC is already in use by the workspace WHITERIDER;PRLRM01\mmaddux on computer WHITERIDER.
INFO - Exception type is Microsoft.TeamFoundation.VersionControl.Client.WorkingFolderInUseException
INFO - Delete all intersecting TeamCity workspaces.
INFO - My mappings:
+:$/InteractiveDevelopment/Main/Pmc=>C:\Polo\PMC\BuildDirectory

INFO - My mappings:
+:$/InteractiveDevelopment/Main/Pmc=>C:\Polo\PMC\BuildDirectory

INFO - Created workspace:TeamCity-A2-nevo8642o4o427ym661bidfge/PRLRM01\mmaddux(TeamCity checkout workspace)
INFO - Settings up mappings for created workspace: TeamCity-A2-nevo8642o4o427ym661bidfge/PRLRM01\mmaddux(TeamCity checkout workspace).
INFO - Failed to setup workspace TeamCity-A2-nevo8642o4o427ym661bidfge/PRLRM01\mmaddux(TeamCity checkout workspace). The working folder C:\Polo\PMC is already in use by the workspace WHITERIDER;PRLRM01\mmaddux on computer WHITERIDER.
INFO - Exception type is Microsoft.TeamFoundation.VersionControl.Client.WorkingFolderInUseException
INFO - Tried to setup mappings:
+:$/InteractiveDevelopment/Main/Pmc=>C:\Polo\PMC\BuildDirectory

INFO - Workspace TeamCity-A2-nevo8642o4o427ym661bidfge/PRLRM01\mmaddux(TeamCity checkout workspace) removed
INFO - Start Update workspaces cache
INFO - Finished Update workspaces cache in 1221.0698ms
ERROR - Failed to create workspace. Try simplifying checkout rules. The working folder C:\Polo\PMC is already in use by the workspace WHITERIDER;PRLRM01\mmaddux on computer WHITERIDER.
System.Exception: Failed to create workspace. Try simplifying checkout rules. The working folder C:\Polo\PMC is already in use by the workspace WHITERIDER;PRLRM01\mmaddux on computer WHITERIDER. ---> System.Exception: Failed to create workspace. Try simplifying checkout rules. The working folder C:\Polo\PMC is already in use by the workspace WHITERIDER;PRLRM01\mmaddux on computer WHITERIDER. ---> Microsoft.TeamFoundation.VersionControl.Client.WorkingFolderInUseException: The working folder C:\Polo\PMC is already in use by the workspace WHITERIDER;PRLRM01\mmaddux on computer WHITERIDER. ---> System.Web.Services.Protocols.SoapException: The working folder C:\Polo\PMC is already in use by the workspace WHITERIDER;PRLRM01\mmaddux on computer WHITERIDER.
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ProcessHttpResponse(HttpWebResponse response, Stream responseStream, WebException webException, XmlReader& xmlResponseReader)
at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ExecWebServiceRequest(HttpWebRequest request, XmlWriter requestXml, String methodName, HttpWebResponse& response)
at Microsoft.TeamFoundation.VersionControl.Client.Repository.UpdateWorkspace(String oldWorkspaceName, String ownerName, Workspace newWorkspace, Int32 supportedFeatures)
at Microsoft.TeamFoundation.VersionControl.Client.Client.UpdateWorkspace(Workspace workspace, String newName, String newOwner, String newComment, WorkingFolder[] newMappings, String newComputer, WorkspacePermissionProfile newPermissionProfile, Boolean fixMappingErrors)
at Microsoft.TeamFoundation.VersionControl.Client.Client.UpdateWorkspace(Workspace workspace, String newName, String newOwner, String newComment, WorkingFolder[] newMappings, String newComputer)
at Microsoft.TeamFoundation.VersionControl.Client.Client.InternalSetWorkingFolder(Workspace workspace, WorkingFolder workingFolder, Boolean isDelete)
at Microsoft.TeamFoundation.VersionControl.Client.Workspace.CreateMapping(WorkingFolder mapping)
at JetBrains.TeamCity.Tfs.ExtensionMethods.ForEach[T](IEnumerable`1 enu, Action`1 act) in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\ExtensionMethods.cs:line 25
at JetBrains.TeamCity.Tfs.WorkspaceMappings.SetupMappings(Workspace wp) in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\WorkspaceMappings.cs:line 28
at JetBrains.TeamCity.Tfs.WorkspaceManager.SetupWorkspace(Workspace sp) in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\WorkspaceManager.cs:line 52
at JetBrains.TeamCity.Tfs.WorkspaceManager.<CreateWorkspace>b__1() in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\WorkspaceManager.cs:line 58
at JetBrains.TeamCity.Tfs.WorkspaceManager.CreateWorkspace() in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\WorkspaceManager.cs:line 80
--- End of inner exception stack trace ---
at JetBrains.TeamCity.Tfs.WorkspaceManager.CreateWorkspace() in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\WorkspaceManager.cs:line 84
at JetBrains.TeamCity.Tfs.WorkspaceManager.GetMappedWorkspaceImpl() in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\WorkspaceManager.cs:line 105
at JetBrains.TeamCity.Tfs.WorkspaceManager.GetMappedWorkspace() in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\WorkspaceManager.cs:line 91
at JetBrains.TeamCity.Tfs.CleanPatchCommandBase.DoWithWorkspace(WorkspaceManager manager, Int32 currentChangesetId) in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\CleanPatchCommandBase.cs:line 0
at JetBrains.TeamCity.Tfs.CleanPatchCommandBase.DoWithTfs(VersionControlServer vcs, Int32 fromChangesetId, Int32 currentChangesetId) in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\CleanPatchCommandBase.cs:line 35
at JetBrains.TeamCity.Tfs.ComplicatedCommand.DoWithTfs(VersionControlServer vcs) in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\ComplicatedCommand.cs:line 39
at JetBrains.TeamCity.Tfs.Command.Do() in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\Command.cs:line 29
at JetBrains.TeamCity.Tfs.Program.Main(String[] args) in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\Program.cs:line 222
--- End of inner exception stack trace ---
at JetBrains.TeamCity.Tfs.Program.Main(String[] args) in c:\Agent\work\bf3e38e9237c2e2\TfsNativeAccessor\src\Program.cs:line 296
, Stderr::
[14:08:51]: Build finished


1 comment

We have just discussed it via teamcity-feedback@jetbrains.com.

TFS checkout on agent failed because you have another TFS workspace  mapped to a folder where build agent checkout of the build. is  performed. To make it work, please either change build checkout  directory or remove all TFS workspace mappings to the build checkout  directory path. Another workaround it to switch to server-side checkout  in version control settings of the build configuration.

0

Please sign in to leave a comment.