Mercurial vcs is not properly copying files for the build agent

When teamcity attempts to clone the files for the build sometimes not all the fles are transferered to the agent. Sometimes the build will not start at all because and teamcity says there is a VCS error. Here is what I get in the teamcity-vcs.log from a bad run

[2012-11-26 15:24:58,808]   INFO [TeamCity Agent ] -      jetbrains.buildServer.VCS - Setting build revisions on agent=Bus Driver {id=3, host=127.0.0.1:9090, agentTypeId=3, pool=Default}, buildPromotion=BuildPromotion{myId=5126, myPersonal=false, myBuildTypeId='bt25', myModificationId=13470, myRevisions=[BuildRevision[myVcsRootEntry=VcsRootEntry[myVcsRoot=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, myCheckoutRules==>
], myRevision=RepositoryVersion{myVersion='f81551722b1c', myDisplayVersion='f81551722b1c', myVcsBranch='default'}]], myAssociatedBuildId=4992, myBranch=}, revisions={mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}=null}
[2012-11-26 15:24:58,850]   INFO [rmal executor 8] -      jetbrains.buildServer.VCS - Requesting patch: root=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, cleanPatch=true, prevVersion=null, newVersion=f81551722b1c, buildType=Lynx :: Dev Quick {id=bt25}, buildId=4992
[2012-11-26 15:25:01,313]   INFO [TeamCity Agent ] -      jetbrains.buildServer.VCS - Setting build revisions on agent=DJ Moca {id=4, host=127.0.0.1:9091, agentTypeId=4, pool=Default}, buildPromotion=BuildPromotion{myId=5128, myPersonal=false, myBuildTypeId='bt24', myModificationId=13470, myRevisions=[BuildRevision[myVcsRootEntry=VcsRootEntry[myVcsRoot=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, myCheckoutRules==>
], myRevision=RepositoryVersion{myVersion='f81551722b1c', myDisplayVersion='f81551722b1c', myVcsBranch='default'}]], myAssociatedBuildId=4993, myBranch=}, revisions={mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}=null}
[2012-11-26 15:25:01,365]   INFO [mal executor 12] -      jetbrains.buildServer.VCS - Requesting patch: root=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, cleanPatch=true, prevVersion=null, newVersion=f81551722b1c, buildType=Lynx :: Dev {id=bt24}, buildId=4993
[2012-11-26 15:25:06,414]   WARN [rmal executor 8] -      jetbrains.buildServer.VCS - 'hg archive -t files -r f81551722b1c D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1' command failed.
stderr: abort: The system cannot find the file specified: D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1\lib/Alias/bin/PODTools.dll


[2012-11-26 15:25:06,677]   WARN [rmal executor 8] -      jetbrains.buildServer.VCS - Cannot delete directory D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1
[2012-11-26 15:25:06,678]   WARN [rmal executor 8] -      jetbrains.buildServer.VCS - Failed to build patch for build #1535 {build id=4992}, VCS root: mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, due to error: 'hg archive -t files -r f81551722b1c D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1' command failed.
stderr: abort: The system cannot find the file specified: D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1\lib/Alias/bin/PODTools.dll


jetbrains.buildServer.vcs.VcsException: 'hg archive -t files -r f81551722b1c D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1' command failed.
stderr: abort: The system cannot find the file specified: D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1\lib/Alias/bin/PODTools.dll


 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.throwVcsException(CommandResult.java:91)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.logAndThrowError(CommandResult.java:81)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.checkFailure(CommandResult.java:66)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandUtil.runCommand(CommandUtil.java:34)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.VcsRootCommand.runCommand(VcsRootCommand.java:32)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.ArchiveCommand.call(ArchiveCommand.java:53)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.buildFullPatch(MercurialVcsSupport.java:338)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.buildPatch(MercurialVcsSupport.java:664)
 at jetbrains.buildServer.serverSide.impl.projectSources.BuildPatchUtil.buildPatch(BuildPatchUtil.java:1)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildCleanPatch(PatchComposer.java:108)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.makePatch(PatchComposer.java:16)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatchForRoot(PatchComposer.java:46)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:0)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:59)
 at jetbrains.buildServer.serverSide.impl.BuildStarter$2.call(BuildStarter.java:4)
 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
[2012-11-26 15:25:16,700]   INFO [rmal executor 7] -      jetbrains.buildServer.VCS - Requesting patch: root=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, cleanPatch=true, prevVersion=null, newVersion=f81551722b1c, buildType=Lynx :: Dev Quick {id=bt25}, buildId=4992
[2012-11-26 15:25:17,563]   WARN [rmal executor 7] -      jetbrains.buildServer.VCS - Cannot delete directory D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1
[2012-11-26 15:25:30,024]   INFO [->f81551722b1c]] -      jetbrains.buildServer.VCS - Finish collecting changes for mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13} from state RepositoryStateImpl{myBranches={default=f81551722b1c}, myTimestamp=Mon Nov 26 15:25:30 MST 2012} to state RepositoryStateImpl{myBranches={default=f81551722b1c}, myTimestamp=Mon Nov 26 15:25:30 MST 2012}; 0 changes collected 0 changes reported, time spent: < 1ms
[2012-11-26 15:25:43,525]   WARN [mal executor 12] -      jetbrains.buildServer.VCS - 'hg archive -t files -r f81551722b1c D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1' command failed.
stderr: abort: The system cannot find the file specified: D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1\src/app/TTC.Lynx.WebServices/Scripts/jquery.unobtrusive-ajax.min.js


[2012-11-26 15:25:45,862]   WARN [mal executor 12] -      jetbrains.buildServer.VCS - Cannot delete directory D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1
[2012-11-26 15:25:45,862]   WARN [mal executor 12] -      jetbrains.buildServer.VCS - Failed to build patch for build #4.9.0.1196 {build id=4993}, VCS root: mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, due to error: 'hg archive -t files -r f81551722b1c D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1' command failed.
stderr: abort: The system cannot find the file specified: D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1\src/app/TTC.Lynx.WebServices/Scripts/jquery.unobtrusive-ajax.min.js


jetbrains.buildServer.vcs.VcsException: 'hg archive -t files -r f81551722b1c D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1' command failed.
stderr: abort: The system cannot find the file specified: D:\ContinuousIntegration\TeamCity\bin\..\temp\hg1\src/app/TTC.Lynx.WebServices/Scripts/jquery.unobtrusive-ajax.min.js


 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.throwVcsException(CommandResult.java:91)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.logAndThrowError(CommandResult.java:81)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.checkFailure(CommandResult.java:66)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandUtil.runCommand(CommandUtil.java:34)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.VcsRootCommand.runCommand(VcsRootCommand.java:32)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.ArchiveCommand.call(ArchiveCommand.java:53)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.buildFullPatch(MercurialVcsSupport.java:338)
 at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.buildPatch(MercurialVcsSupport.java:664)
 at jetbrains.buildServer.serverSide.impl.projectSources.BuildPatchUtil.buildPatch(BuildPatchUtil.java:1)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildCleanPatch(PatchComposer.java:108)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.makePatch(PatchComposer.java:16)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatchForRoot(PatchComposer.java:46)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:0)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:59)
 at jetbrains.buildServer.serverSide.impl.BuildStarter$2.call(BuildStarter.java:4)
 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
[2012-11-26 15:25:55,884]   INFO [mal executor 15] -      jetbrains.buildServer.VCS - Requesting patch: root=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, cleanPatch=true, prevVersion=null, newVersion=f81551722b1c, buildType=Lynx :: Dev {id=bt24}, buildId=4993
[2012-11-26 15:25:57,354]   INFO [rmal executor 7] -      jetbrains.buildServer.VCS - Done requesting patch for root mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13} cleanPatch = true, prevVersion=null, newVersion=f81551722b1c, buildId = 4992; took 40 sec 651 msec
[2012-11-26 15:25:57,376]   INFO [TeamCity Agent ] -      jetbrains.buildServer.VCS - Setting build revisions on agent=Bus Driver {id=3, host=127.0.0.1:9090, agentTypeId=3, pool=Default}, buildPromotion=BuildPromotion{myId=5126, myPersonal=false, myBuildTypeId='bt25', myModificationId=13470, myRevisions=[BuildRevision[myVcsRootEntry=VcsRootEntry[myVcsRoot=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, myCheckoutRules==>
], myRevision=RepositoryVersion{myVersion='f81551722b1c', myDisplayVersion='f81551722b1c', myVcsBranch='default'}]], myAssociatedBuildId=4992, myBranch=}, revisions={mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}=null}
[2012-11-26 15:25:58,948]   INFO [TeamCity Agent ] -      jetbrains.buildServer.VCS - Setting build revisions on agent=Bus Driver {id=3, host=127.0.0.1:9090, agentTypeId=3, pool=Default}, buildPromotion=BuildPromotion{myId=5126, myPersonal=false, myBuildTypeId='bt25', myModificationId=13470, myRevisions=[BuildRevision[myVcsRootEntry=VcsRootEntry[myVcsRoot=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, myCheckoutRules==>
], myRevision=RepositoryVersion{myVersion='f81551722b1c', myDisplayVersion='f81551722b1c', myVcsBranch='default'}]], myAssociatedBuildId=4992, myBranch=}, revisions={mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}=f81551722b1c}
[2012-11-26 15:26:39,558]   INFO [->f81551722b1c]] -      jetbrains.buildServer.VCS - Finish collecting changes for mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13} from state RepositoryStateImpl{myBranches={default=f81551722b1c}, myTimestamp=Mon Nov 26 15:26:39 MST 2012} to state RepositoryStateImpl{myBranches={default=f81551722b1c}, myTimestamp=Mon Nov 26 15:26:39 MST 2012}; 0 changes collected 0 changes reported, time spent: < 1ms
[2012-11-26 15:26:52,025]   INFO [mal executor 15] -      jetbrains.buildServer.VCS - Done requesting patch for root mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13} cleanPatch = true, prevVersion=null, newVersion=f81551722b1c, buildId = 4993; took 56 sec 139 msec
[2012-11-26 15:26:52,135]   INFO [TeamCity Agent ] -      jetbrains.buildServer.VCS - Setting build revisions on agent=DJ Moca {id=4, host=127.0.0.1:9091, agentTypeId=4, pool=Default}, buildPromotion=BuildPromotion{myId=5128, myPersonal=false, myBuildTypeId='bt24', myModificationId=13470, myRevisions=[BuildRevision[myVcsRootEntry=VcsRootEntry[myVcsRoot=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, myCheckoutRules==>
], myRevision=RepositoryVersion{myVersion='f81551722b1c', myDisplayVersion='f81551722b1c', myVcsBranch='default'}]], myAssociatedBuildId=4993, myBranch=}, revisions={mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}=null}
[2012-11-26 15:27:02,163]   INFO [TeamCity Agent ] -      jetbrains.buildServer.VCS - Setting build revisions on agent=DJ Moca {id=4, host=127.0.0.1:9091, agentTypeId=4, pool=Default}, buildPromotion=BuildPromotion{myId=5128, myPersonal=false, myBuildTypeId='bt24', myModificationId=13470, myRevisions=[BuildRevision[myVcsRootEntry=VcsRootEntry[myVcsRoot=mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}, myCheckoutRules==>
], myRevision=RepositoryVersion{myVersion='f81551722b1c', myDisplayVersion='f81551722b1c', myVcsBranch='default'}]], myAssociatedBuildId=4993, myBranch=}, revisions={mercurial: d:\repositories\lynx-hg\dev {instance id=22, parent id=13}=f81551722b1c}

3 comments
Comment actions Permalink

I am also experiencing this problem in TC 7.1.2 (build 24170) - although only for certain mercurial repositories.  Is anyone else seeing this?

0
Comment actions Permalink

I emailed jetbrains and this was their reply

this is probably caused by http://youtrack.jetbrains.com/issue/TW-24405. Please install a build of plugin attached to the issue and check if it helps.

This fixed the issue for me

0
Comment actions Permalink

Thank you very much.  I am testing this now.
-karl

0

Please sign in to leave a comment.