Reputation: 349
TortoiseSVN shows the error svn: E120106: ra_serf: The server sent a truncated HTTP response body
during checkout operation. How to solve the problem?
Upvotes: 24
Views: 45412
Reputation: 30662
The error Error: ra_serf: The server sent a truncated HTTP response body may occur when making a checkout of a huge directory or when the client's disk is very slow. As far as I know, the problem is fixed in the code of Subversion (e.g., see r1886490). The fix should be included in the next Apache Subversion release. When the fix is released, you need to upgrade your Subversion client to resolve the problem.
The problem has a ticket in the issue tracker of Apache Subversion SVN-3264.
In all other cases when you receive the error The server sent a truncated HTTP response body is makes sense to consider the following general troubleshooting steps:
Upvotes: 1
Reputation: 29
Incorrect Proxy Settings can cause the same error message.
I have encountered the exact same error at different moments during the checkout. The first few files always succeeded, but after 5-10 files the ra_serf error appeared. Same happened with large and small files.
After some trial and error (other hardware, wired connection) I was not closer to a solution. I decided to check all Tortoise SVN settings and found the simple answer: my proxy settings were not correct!
Upvotes: 2
Reputation: 334
I experienced the same issue, but in the context of our CI system teamcity. rather than using teamcity itself to checkout, some scripts do perform manual svn checkout and caused this error.
Internal SVN clean checkout canceled on large repositories for working copy format 1.7 using the svn.exe via script instead of build-in teamcity SVN with the message: "svn: E120106: ra_serf: The server sent a truncated HTTP response body."
Increasing the SVN timeout value on the server did indeed fix the problem and neither the "ra_serf" nor the "secure connection truncated error" occurred since.
Aniket Thakur suggestion of reverting the svn client version did have effect on this issue, yet I was unable to find the right version. (if there is one)
Sanmat Jhanjhari suggestion of decreasing the compression level is not only part of the accepted solution but the reason this might work is that it keeps the response time between SVN server and client steady and compressing large files no longer cause timeouts.
changing the working copy to 1.5 is a client side only alternative one could take to resolve this issue. the reason this works is most likely related to the way the data is compressed, but I couldn't figure out the exact reasons.
using export is a dire client side alternative one could take in case you are only interested in the data itself and do not need it to be a repository. export behavior is slightly different though. for example it does not overwrite existing files. I also couldn't figure out why this works compared to normal checkout.
Upvotes: 4
Reputation: 1
Set following key-value in the SVN configuration file. That's it.
DeflateCompressionLevel 5
1 is the lowest value. 9 is the maximum value.
Upvotes: -2
Reputation: 68985
SVN 1.8 includes a new HTTP client library (Serf).
which I think is responsible for this. I had installed TortoiseSVN-1.8.6.25419-x64-svn-1.8.8.msi
and performing svn merge
gave same error. Initially I though it is problem with svn server timeouts but same merge operation worked with 1.6
. So I guess problem is with SVN version 1.8 and above. Please revert your svn client version to 1.7 or 1.6 and try!
Upvotes: -2
Reputation: 83387
Some ideas from TortoiseSVN developer:
The data sent is too big and the server closes the connection due to reaching a limit.
Possible steps which can help fix this issue:
- Increase the timeout value on the server
- set compression level to zero on the server (will make everything slower but helps with this issue)
- make sure all proxies that are in between you and the svn server also have the timeout values increased
Upvotes: 13
Reputation:
Then take update instead of again checking out ... Don't delete the Checked out copy, just update it again.
Upvotes: 11