Subversion Checkout Failure

Hi,


We're encountering problems when attempting to check out external directories from our subversion repository.  The build regularly fails with the messages shown in the build log below, checking out automatically on server and with full support for externals.  


We've tried adding one external at a time to our svn properties and occasionally, TeamCity will succeed in getting one of the smaller directories.  It can then also update this successfully as changes are made.  However, when re-adding the additional externals or checking out initially, this error is encountered the vast majority of the time.


Other things we've tried include:
- Changing external support to "Checkout, but ignore changes", which encounters the same issue or to "Ignore externals", which successfully gets empty directories.
- Changing the SVN version from 1.5 to 1.6
- Installing TeamCity version 6.5; otherwise we've been using version 6.0.3
- Increasing the "Changes checking interval" above the default values.


Our initial thought would have been that there's a problem with our SVN server, however we've been using a generally very reliable hosting service and have not encountered any issues with it previously.


Do you have any suggestions for successfully checking out our entire project?
Please let me know if I can provide additional information or logs to help resolve this.



Thanks!




Here's of one of our failed build logs (with the URLs removed for privacy).
[10:28:44]: Checking for changes
[10:29:10]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[10:29:10]: Checkout directory: C:\Dev\CodeTeamCity
[10:29:10]: Updating sources: server side checkout... (1h:01m:40s)
[10:29:10]: [Updating sources: server side checkout...] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[10:29:10]: [Updating sources: server side checkout...] Building clean patch for VCS root: svn: http://<url>/svn/hellogames/Spec/Test
[11:30:50]: [Updating sources: server side checkout...] Failed to build patch for build #1 {build id=1}, VCS root: svn: http://<url>/svn/hellogames/Spec/Test {id=1}, due to error: org.tmatesoft.svn.core.SVNException: svn: timed out waiting for server
svn: REPORT request failed on '/svn/hellogames/!svn/vcc/default'
[11:30:50]: [Updating sources: server side checkout...] Repository sources transferred
[11:30:50]: Will repeat attempt when server will be available, number of attempts left: 2
[11:31:00]: Updating sources: server side checkout... (1h:01m:19s)
[11:31:00]: [Updating sources: server side checkout...] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[11:31:00]: [Updating sources: server side checkout...] Building clean patch for VCS root: svn: http://<url>/svn/hellogames/Spec/Test
[12:32:20]: [Updating sources: server side checkout...] Failed to build patch for build #1 {build id=1}, VCS root: svn: http://<url>/svn/hellogames/Spec/Test {id=1}, due to error: org.tmatesoft.svn.core.SVNException: svn: timed out waiting for server
svn: REPORT request failed on '/svn/hellogames/!svn/vcc/default'
[12:32:20]: [Updating sources: server side checkout...] Repository sources transferred
[12:32:20]: Will repeat attempt when server will be available, number of attempts left: 1
[12:32:30]: Updating sources: server side checkout... (1h:06m:37s)
[12:32:30]: [Updating sources: server side checkout...] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[12:32:30]: [Updating sources: server side checkout...] Building clean patch for VCS root: svn: http://<url>/svn/hellogames/Spec/Test
[13:39:07]: [Updating sources: server side checkout...] Failed to build patch for build #1 {build id=1}, VCS root: svn: http://<url>/svn/hellogames/Spec/Test {id=1}, due to error: org.tmatesoft.svn.core.SVNException: svn: timed out waiting for server
svn: REPORT request failed on '/svn/hellogames/!svn/vcc/default'
[13:39:07]: [Updating sources: server side checkout...] Repository sources transferred
[13:39:07]: Patch is broken, can be found in file: C:\TeamCity\buildAgent\temp\cache\temp1398427825948925446patch_1
[13:39:07]:
Failed to build patch for build #1 {build id=1}, VCS root: svn: http://<url>/svn/hellogames/Spec/Test {id=1}, due to error: org.tmatesoft.svn.core.SVNException: svn: timed out waiting for server
svn: REPORT request failed on '/svn/hellogames/!svn/vcc/default'
jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$1: Server was not able to build correct patch, most likely due to VCS errors, will try again.
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.throwError(PatchDownloaderImpl.java:113)
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:103)
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:64)
 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:90)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:58)
 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:29)
 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:24)
 at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:65)
 at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:48)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:250)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:223)
 at java.lang.Thread.run(Unknown Source)
Caused by: jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Failed to build patch for build #1 {build id=1}, VCS root: svn: http://<url>/svn/hellogames/Spec/Test {id=1}, due to error: org.tmatesoft.svn.core.SVNException: svn: timed out waiting for server
svn: REPORT request failed on '/svn/hellogames/!svn/vcc/default'
 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:83)
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:93)
 ... 18 more
[13:39:07]: Build failed to start. Artifacts will not be published for this build
[13:39:07]: Build finished
3 comments
Comment actions Permalink

Hello Hazel,

  The error indicates that TeamCity cannot get the timely response from the subversion server when building the data patch.

  The default timeout for building the patch from http-server is 60 minutes, but you can configure it in the Subversion 'servers' file, using http-timeout property.

  You can also try to change checkout mode to "checkout on agent" - this may help.

  To investigate the problem further, we will need VCS debug logs from your server, please send them to teamcity-feedback@.

  Hope, this helps,
  KIR

0
Comment actions Permalink

Email address to send us your logs privately is teamcity-feedback@jetbrains.com

0
Comment actions Permalink

Thanks for the suggestions.

We've now tried chaging the http-timeout value in our "servers" file and also using "checkout on agent", however the problem still persists.

I'll send you our logs privately.

0

Please sign in to leave a comment.