SVN Handshake failed, data stream ended unexpectedly

Hey guys,

we are using teamcity since around one week, nearly since the first day we got problems.

It's every time the same error:
org.tmatesoft.svn.core.SVNException: svn: E210004: Handshake failed, data stream ended unexpectedly

Here a few information:
- Teamcity version 9.1 / we updated to teamcity 9.1.1 yesterday
- SVN 1.6 the first days, we updated to latest version (1.8.x) a few days ago
(both had no improve).
- Our projects are Visual Studio slns
- We have different projects, 2 webprojects in ASP.Net, 2 C#.Net projects.
- All projects have a huge number of externals

What we have tried so far is nearly every setting we can imagine to fix this / to change this behaivour (e.g. different SVN user only for teamcity)

A few thoughts:
- The problems just occure on Externals (as far as we can see... we have ~40 externals and 1 main project, so it may be random)
- The problem is 100% triggered though teamcity, we never had something like this before
- As soon as the problem occures in teamcity (e.g. a triggered build) we have the same problems for all users for all svn-tools (AnkhSVN, TortoiseSVN) - so the problem which get triggered itself seems having a huge impact on our svn.

Here are a few settings:
http://imgur.com/bQhsxah

Here are a few debug information:
  jetbrains.buildServer.VCS - Requesting incremental patch: root="cccc" {instance id=50, parent internal id=2, parent id=cc_cc, properties: [enforce-revert=true; externals-mode=externals-full; labelingMessage=Labeled automatically by TeamCity; labelingPatterns=trunk=>tags; secure:svn-password=*****; svn-config-directory=C:\Windows\system32\config\systemprofile\AppData\Roaming\Subversion; svn-use-default-config-directory=true; teamcity:vcsRootName=cccc; url=svn://svn/svn_pc_sw/cccc/trunk; user=teamcity; vcs=svn; working-copy-format=1.8; ]}, fromVersion=21550_2015/08/05 11:44:02 +0200, toVersion=21559_2015/08/05 16:19:36 +0200, checkoutRules=+:=>, cleanPatch=false, build=ccc:: ccOnline 2.0 :: FDO Debug Build {id=FridodataOnline20_FdoDebugBuild, internal id=bt2} #168 {build id=561, promotion id=561, history=false, agent="wuw2vision03" {id=4}, triggered by "Subversion" (##vcsName='svn'). Started Wed Aug 05 16:40:35 CEST 2015}
[2015-08-05 16:41:01,857]  DEBUG [rmal executor 8] - uildServer.VCS.SVN.performance - svn-buildPatch start: 0 msec
[2015-08-05 16:41:01,857]  DEBUG [rmal executor 8] - uildServer.VCS.SVN.performance - svn-buildPatch stopped: 2 msec
[2015-08-05 16:41:01,857]  DEBUG [rmal executor 8] -      jetbrains.buildServer.VCS - VCS connection problem in build configuration cc:: ccOnline 2.0 :: FDO Debug Build {id=cc_cc, internal id=bt2}: Failed for the root '"ccc" {instance id=50, parent internal id=2, parent id=cc_cc, description: "svn: svn://svn/svn_pc_sw/cccc/trunk"}: org.tmatesoft.svn.core.SVNException: svn: E210004: Handshake failed, data stream ended unexpectedly
jetbrains.buildServer.vcs.VcsRootVcsException: org.tmatesoft.svn.core.SVNException: svn: E210004: Handshake failed, data stream ended unexpectedly
    at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatchForRoot(PatchComposer.java:15)
    at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:167)
    at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:841)
    at jetbrains.buildServer.serverSide.impl.BuildStarter$3.call(BuildStarter.java:17)
    at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:104)
    at jetbrains.buildServer.serverSide.impl.BuildStarter$4.call(BuildStarter.java:2)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: jetbrains.buildServer.vcs.VcsException: org.tmatesoft.svn.core.SVNException: svn: E210004: Handshake failed, data stream ended unexpectedly
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnBuildPatchPolicy$SvnIncludeRulePatchBuilder.buildPatch(SvnBuildPatchPolicy.java:123)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnBuildPatchPolicy.buildPatchForIncludeRule(SvnBuildPatchPolicy.java:64)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnBuildPatchPolicy.buildPatch(SvnBuildPatchPolicy.java:45)
    at jetbrains.vcs.api.services.patches.BuildPatchUtil.buildPatch(BuildPatchUtil.java:5)
    at jetbrains.vcs.api.services.patches.PatchServiceBase.buildPatchImpl(PatchServiceBase.java:0)
    at jetbrains.vcs.api.services.patches.IncrementalPatchServiceImpl.buildIncrementalPatch(IncrementalPatchServiceImpl.java:1)
    at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.makeIncrementalPatch(PatchComposer.java:43)
    at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.makePatch(PatchComposer.java:96)
    at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatchForRoot(PatchComposer.java:146)
    ... 9 more

1 comment
Comment actions Permalink

Hello Rene,

  The error "Handshake failed, data stream ended unexpectedly" means that during communication with SVN server, the process on the SVN server unexpectedly drops the connection. It could be caused by a process crash on the SVN server. And this process crash can cause problems for subsequent operations with the SVN server.

  Most likely, there is some problem with the SVN server installation you have.
  I'm not sure the details of the installation, but I'd double check the data integrity on the server with 'svnadmin verify' command, http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.verify.html

  Hope this helps,
  KIR

0

Please sign in to leave a comment.