Failed to build patch...
I'm getting the following errors. I didn't change the configuration.
Any ideas?
[17:29:33]Checking for changes
[17:29:36]Publishing internal artifacts
[17:29:36][Publishing internal artifacts] Sending build.start.properties.gz file
[17:29:36]Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[17:29:36]Checkout directory: C:\TeamCity\buildAgent\work\workers
[17:29:36]Updating sources: server side checkout (4s)
[17:29:36][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[17:29:36][Updating sources] Building clean patch for VCS root: Falkor
[17:29:40][Updating sources] Failed to build patch for build #1.0.0.481 {build id=5929}, VCS root: mercurial: https://bitbucket.org/vht/falkor2 {instance id=30, parent id=14}, due to error: 'hg archive -t files -r d4c4e3cb5032 c:\TeamCity\bin\..\temp\hg9' command failed. stderr: abort: No space left on device
[17:29:40][Updating sources] Repository sources transferred
[17:29:40]Will repeat attempt when server will be available, number of attempts left: 2
[17:29:50]Updating sources: server side checkout
[17:29:50][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[17:29:50][Updating sources] Building clean patch for VCS root: Falkor
[17:29:54][Updating sources] Failed to build patch for build #1.0.0.481 {build id=5929}, VCS root: mercurial: https://bitbucket.org/vht/falkor2 {instance id=30, parent id=14}, due to error: 'hg archive -t files -r d4c4e3cb5032 c:\TeamCity\bin\..\temp\hg9' command failed. stderr: abort: No space left on device
[17:29:54][Updating sources] Repository sources transferred
[17:29:54]Will repeat attempt when server will be available, number of attempts left: 1
[17:30:04]Updating sources: server side checkout
[17:30:04][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[17:30:04][Updating sources] Building clean patch for VCS root: Falkor
[17:30:08][Updating sources] Failed to build patch for build #1.0.0.481 {build id=5929}, VCS root: mercurial: https://bitbucket.org/vht/falkor2 {instance id=30, parent id=14}, due to error: 'hg archive -t files -r d4c4e3cb5032 c:\TeamCity\bin\..\temp\hg9' command failed. stderr: abort: No space left on device
[17:30:08][Updating sources] Repository sources transferred
[17:30:08]Patch is broken, can be found in file: C:\TeamCity\buildAgent\temp\globalTmp\temp2385079544464457066patch_5929
[17:30:08]Failed to build patch for build #1.0.0.481 {build id=5929}, VCS root: mercurial: https://bitbucket.org/vht/falkor2 {instance id=30, parent id=14}, due to error: 'hg archive -t files -r d4c4e3cb5032 c:\TeamCity\bin\..\temp\hg9' command failed. stderr: abort: No space left on device jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$1: Server was not able to build correct patch, most likely due to VCS errors at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.throwError(PatchDownloaderImpl.java:114) at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:104) at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:65) at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:70) at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:62) at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:91) at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:59) at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doLastAttempt(RecoverableBuildStage.java:112) at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:70) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70) at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:243) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:216) at java.lang.Thread.run(Unknown Source) Caused by: jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Failed to build patch for build #1.0.0.481 {build id=5929}, VCS root: mercurial: https://bitbucket.org/vht/falkor2 {instance id=30, parent id=14}, due to error: 'hg archive -t files -r d4c4e3cb5032 c:\TeamCity\bin\..\temp\hg9' command failed. stderr: abort: No space left on device at jetbrains.buildServer.vcs.patches.AbstractPatcher$1.fail(AbstractPatcher.java:93) at jetbrains.buildServer.vcs.patches.LowLevelPatcher.readPatchStream(LowLevelPatcher.java:156) at jetbrains.buildServer.vcs.patches.LowLevelPatcher.applyPatch(LowLevelPatcher.java:79) at jetbrains.buildServer.vcs.patches.AbstractPatcher.applyPatch(AbstractPatcher.java:42) at jetbrains.buildServer.agent.impl.patch.PatchApplierImpl.applyPatch(PatchApplierImpl.java:18) at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatchInFileIsCompleted(PatchDownloaderImpl.java:84) at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:94) ... 18 more
[17:30:09]Publishing internal artifacts
[17:30:09][Publishing internal artifacts] Sending build.finish.properties.gz file
[17:30:09]Build failed to start. Artifacts will not be published for this build
[17:30:09]Build finished
Please sign in to leave a comment.
The message "No space left on device" could point to check the disk space on the server.
Yes, that was the problem. The build server didn't have any room on the C drive.
Maybe you want to consider changing the VCS checkout mode to "Automatically on agent (if supported by VCS roots)" in the configuration version control settings.
Thanks. I was thinking of that. Will have to do that.