title: SVN error running context: An existing connection was forcibly closed by the remote host
body: <p>I've created an SVN repo on my Debian Wheezy build server following <a href="http://www.networkworld.com/article/2224093/opensource-subnet/use-subversion--apache--and-websvn-to-view-your-repositories.html" rel="noreferrer">this tutorial</a>.
  <code>svn --version</code> gives <code>1.6.17</code>.</p>
  
  <p>Sadly, I can't commit anymore to the repo from my Windows 7 machine; it fails with the following error message:</p>
  
  <pre><code>Transmitting file data .svn: E730054: Commit failed (details follow):
  svn: E730054: Error running context: An existing connection was forcibly closed
  by the remote host.
  </code></pre>
  
  <p>I have had this error both with TortoiseSVN and the <a href="http://sourceforge.net/projects/win32svn/" rel="noreferrer">command line client</a>.</p>
  
  <p>These are the contents of <code>/var/log/apache2/access.log</code> on the server for the time of the failed commit: <a href="http://pastebin.com/dB8RufZM" rel="noreferrer">access.log</a>.
  There is no entry for the same time in the error log.</p>
  
  <p>I'm still able to check out the contents of the repo and <code>svn info http://myurl/svn/myrepo</code> works also fine.</p>
  
  <p>The Debian server with the repo is running inside a VM on a Windows Server 2008 R2 (Hyper-V-Manager 6.1). The connection from my Windows machine to the Windows Server is established using FortiClient 4.2.8.0307.</p>
  
  <p>After I ran into this error yesterday, I purged svn from the server and setup the repo again. This made the repo accept commits for a couple of hours until it failed again with the same error.</p>
  
  <p>Currently commits work again with TortoiseSVN but fail with the <a href="http://sourceforge.net/projects/win32svn/" rel="noreferrer">command line client</a>.</p>
  
  <p>What does <code>E730054</code> mean and how can I fix it for good?</p>
  
  <hr>
  
  <p>I have upgraded to Jessie in the meantime, but the situation did not improve. Commits with Tortoise stopped working again, meaning that it hangs at the "Sending Content" action for about five minutes and then prints the error that's in the title.</p>
  
  <p>Checkouts still work without a hitch, though.</p>
  
  <p><code>apache2 -v</code>: <br/>
  Server version: Apache/2.4.9 (Debian) <br/>
  Server build: Mar 29 2014 21:52:01</p>
  
  <p><code>svn --version</code>: <br/>
  svn, version 1.8.8 (r1568071) <br/>
  compiled Apr 1 2014, 03:41:42 on i486-pc-Linux-GNU</p>
  
  <p>Here's a <a href="http://subversion.1072662.n5.nabble.com/Error-running-context-td176404.html" rel="noreferrer">thread</a> that discusses the error, but I could not conclude a solution for my problem from it.</p>
  
  <hr>
  
  <p>I noticed that the problem occurs when I want to commit the <em>second</em> modification of a file.</p>
  
  <h1>My fix</h1>
  
  <p>The issue went away permanently after using <a href="https://linux.die.net/man/8/svnserve" rel="noreferrer"><code>svnserve</code></a> instead of <code>apache2</code>. <a href="http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/" rel="noreferrer">This tutorial</a> helped me set it up.</p>