Error while applying patch, server side checkout for cloud agent

Hi,

I have set up a EC2 cloud agent for running projects. So far, it works fine on most projects except the ones with the checkout mode are set to be "Automatically on Server". For those projects, I received the following error messages...


[Failure] Error while applying patch

11:24:05]: Problem while loading patch data stream: Failed to obtain stream from server. Server status: 403 (Forbidden ( The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. ))

[11:24:05]: BuildStageExecutionException when running build stage UpdateSourcesFromServer: Problem while loading patch data stream
[11:24:05]: BuildStageExecutionException when running build stage UpdateSourcesFromServer: Problem while loading patch data stream
jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$3: Problem while loading patch data stream
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.downloadPatch(PatchDownloaderImpl.java:147)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:54)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:68)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:60)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:85)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:53)
at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doLastAttempt(RecoverableBuildStage.java:102)
at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:59)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:26)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)
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:19)
at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:73)
at jetbrains.buildServer.agent.impl.BuildRunAction.runBuildInternal(BuildRunAction.java:62)
at jetbrains.buildServer.agent.impl.BuildRunAction.access$000(BuildRunAction.java:19)
at jetbrains.buildServer.agent.impl.BuildRunAction$1.run(BuildRunAction.java:53)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Failed to obtain stream from server. Server status: 403 (Forbidden ( The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. ))
at jetbrains.buildServer.http.ServerStreamProvider.getStream(ServerStreamProvider.java:102)
at jetbrains.buildServer.agent.impl.patch.PatchStreamProviderImpl.getPatchesStream(PatchStreamProviderImpl.java:50)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.downloadPatch(PatchDownloaderImpl.java:138)
... 17 more-


Can anyone help me with this issue? It only happens on the cloud agents, all other build agents (virtual machines) work fine. I am using teamcity 6.0 EAP (build 15400)

Thanks,

Tracy.

1 comment

To download patch from server build agent accessing "<server>/httpAuth/createPatch.html" url. Please check this url is accessible for build agent

0

Please sign in to leave a comment.