Search code examples
gitsvnclone

git svn fetch 'Error running context: Software caused connection abort at...'


A few months ago I GIT cloned a large SVN repository (6GB+, aprox. 10 branches, 3 years of daily logs). The clone took many hours to complete. It stopped several times and had to be continued with git svn fetch. Meanwhile the SVN to Git migration was put on hold as other projects became higher priority.

Fast forward to the present. I'm trying to bring the SVN clone up-to-date with the SVN changes of the past few months. When I run git svn fetch after about 10 minutes of fetching I get the following error:

Software caused connection abort: Error running context: Software caused connection abort at C:/Program Files (x86)/Git/mingw32/share/perl5/Git/SVN/Ra.pm line 312.

On the next git svn fetch I get an Index Mismatch error followed by 10 minutes of fetching (from the same point as before) followed by the error above. So it's stuck in a loop.

Is it possible to bring the SVN clone up to date without doing a fresh clone (as it is suggested in some stackOverflow answers)?


Solution

  • The issue was due to some single revisions being very large and taking over 10 minutes to download. They wouldn't finish before the Apache Server Timeout and cutting off the connection.

    The solution was to set a higher server timeout in the SVN Server's http.conf

    Simply appended Timeout 1800 as suggested here.