Failed to build patch
So i am attempting to get a build agent to build a visual studio project that sits on perforce. I have setup perforce and tested the connection in the vcs settings. The project was automatically detected. When the build goes to build i get the following error. I did a lot of googling and turned up no results. Any ideas of what might be happening would be great. Thanks in advance!
Build 'Test :: Testing' #5
Started 'Wed Mar 12 10:21:02 EDT 2014' on 'Jason-PC' by 'Perforce'
Finished 'Wed Mar 12 10:26:38 EDT 2014' with status 'FAILURE Failed to start build'
TeamCity URL http://10.1.10.138:8111/viewLog.html?buildId=5&buildTypeId=Test_Testing
TeamCity server version is 8.1.1 (build 29939)
[10:21:02]E: bt1 (5m:36s)
[10:21:02] : TeamCity server version is 8.1.1 (build 29939)
[10:21:02] : Checking for changes (running for 5m:36s)
[10:21:02] : Will collect changes in 1 VCS roots
[10:21:02] : Waiting for completion of current operations for the VCS roots
[10:21:02] : Loading current repository state for VCS root 'testroot'
[10:21:02] : Detecting changes in VCS root 'testroot' (used in Testing)
[10:21:02] : Agent time zone: America/New_York
[10:21:05] : Agent is running under JRE: 1.7.0_51-b13
[10:21:05] : Publishing internal artifacts
[10:21:05] : [Publishing internal artifacts] Sending using WebPublisher
[10:21:06] : [Publishing internal artifacts] Sending using ArtifactsCachePublisher
[10:21:05] : Clearing temporary directory: X:\BuildAgent\temp\buildTmp
[10:21:05] : Checkout directory: X:\BuildAgent\work\12af014327531a75
[10:21:05]W: Updating sources: server side checkout (1m:47s)
[10:21:05] : [Updating sources] Using vcs information from server. Reason: no revision information for buildtype Testing and checkout directory X:\BuildAgent\work\12af014327531a75 on agent
[10:21:04] : [Updating sources] Will perform clean checkout
[10:21:04] : [Updating sources] Clean checkout reasons
[10:21:04] : [Clean checkout reasons] Agent doesn't have any version of the project sources
[10:21:04] : [Clean checkout reasons] Checkout directory is empty or doesn't exist
[10:21:04] : [Updating sources] Building and caching clean patch for VCS root: testroot
[10:22:50]W: [Updating sources] Failed to build patch for build #5 {build id=5}, VCS root: "testroot" {instance id=3, parent internal id=1, parent id=Test_Testroot, description: "perforce: 10.1.10.202:1666"}, due to error: Perforce problem: Fatal client error; disconnecting!
Operation 'client-OutputBinary' failed.
Required parameter 'data' not set!
[10:22:53] : [Updating sources] Repository sources transferred
[10:22:53]W: Will repeat attempt when server will be available, number of attempts left: 2
[10:23:03]W: Updating sources: server side checkout (1m:41s)
[10:23:00] : [Updating sources] Will perform clean checkout
[10:23:00] : [Updating sources] Clean checkout reasons
[10:23:00] : [Clean checkout reasons] Agent doesn't have any version of the project sources
[10:23:00] : [Clean checkout reasons] Checkout directory is empty or doesn't exist
[10:23:00] : [Updating sources] Building and caching clean patch for VCS root: testroot
[10:24:41]W: [Updating sources] Failed to build patch for build #5 {build id=5}, VCS root: "testroot" {instance id=3, parent internal id=1, parent id=Test_Testroot, description: "perforce: 10.1.10.202:1666"}, due to error: Perforce problem: Fatal client error; disconnecting!
Operation 'client-OutputBinary' failed.
Required parameter 'data' not set!
[10:24:44] : [Updating sources] Repository sources transferred
[10:24:44]W: Will repeat attempt when server will be available, number of attempts left: 1
[10:24:55]W: Updating sources: server side checkout (1m:45s)
[10:24:52] : [Updating sources] Will perform clean checkout
[10:24:52] : [Updating sources] Clean checkout reasons
[10:24:52] : [Clean checkout reasons] Agent doesn't have any version of the project sources
[10:24:52] : [Clean checkout reasons] Checkout directory is empty or doesn't exist
[10:24:52] : [Updating sources] Building and caching clean patch for VCS root: testroot
[10:26:37]W: [Updating sources] Failed to build patch for build #5 {build id=5}, VCS root: "testroot" {instance id=3, parent internal id=1, parent id=Test_Testroot, description: "perforce: 10.1.10.202:1666"}, due to error: Perforce problem: Fatal client error; disconnecting!
Operation 'client-OutputBinary' failed.
Required parameter 'data' not set!
[10:26:40] : [Updating sources] Repository sources transferred
[10:26:40]E: Patch is broken, can be found in file: X:\BuildAgent\temp\globalTmp\temp6185888050155466233patch_5
[10:26:40]E: Failed to build patch for build #5 {build id=5}, VCS root: "testroot" {instance id=3, parent internal id=1, parent id=Test_Testroot, description: "perforce: 10.1.10.202:1666"}, due to error: Perforce problem: Fatal client error; disconnecting!
Operation 'client-OutputBinary' failed.
Required parameter 'data' not set!
[10:26:40]W: 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:118)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:108)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:69)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:71)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:60)
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:263)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:50)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:236)
at java.lang.Thread.run(Thread.java:744)
Caused by: jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Failed to build patch for build #5 {build id=5}, VCS root: "testroot" {instance id=3, parent internal id=1, parent id=Test_Testroot, description: "perforce: 10.1.10.202:1666"}, due to error: Perforce problem: Fatal client error; disconnecting!
Operation 'client-OutputBinary' failed.
Required parameter 'data' not set!
at jetbrains.buildServer.vcs.patches.AbstractPatcher$1.fail(AbstractPatcher.java:93)
at jetbrains.buildServer.vcs.patches.LowLevelPatcher.readPatchStream(LowLevelPatcher.java:165)
at jetbrains.buildServer.vcs.patches.LowLevelPatcher.applyPatch(LowLevelPatcher.java:88)
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:88)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:98)
... 18 more
[10:26:40] : ##teamcity[buildStatisticValue key='buildStageDuration:buildFinishing' value='334722.0']
[10:26:40] : Publishing internal artifacts
[10:26:40] : [Publishing internal artifacts] Sending using WebPublisher
[10:26:40] : [Publishing internal artifacts] Sending using ArtifactsCachePublisher
[10:26:40] : Build failed to start. Artifacts will not be published for this build
[10:26:41] : ##teamcity[buildStatisticValue key='buildStageDuration:artifactsPublishing' value='1259.0']
[10:26:39] : Build finished
Please sign in to leave a comment.
You can try enabling debug-vcs logging under Administration->Diagnostics and get more informative details. Teamcity uses perforce native client to perform the operation and as far as I remember it writes the command to the log, so you can repeat the command by yourself from the command line to see what is wrong.