Could not read chunk size. Error in SVN

ihorko picture ihorko · Mar 27, 2011 · Viewed 23.7k times · Source

I have recovered SVN repository from crashed PC and now I can checkout files from few directories but in one place during checkout it says:

Error: REPORT of '/svn/RepTest/!svn/vcc/default': Could not read chunk size: 
Secure connection truncated (https://mypc:8443) 

Could anyone help me, how to fix that repository? Thanks!

Answer

sam-w picture sam-w · Nov 28, 2012

I've just had the same error when trying to update a checkout to the latest revision. Some fiddling about revealed that it was one particular file causing the issue. For example:

root
  - A
    - AFileInFolderA.h
    - AnotherFileInFolderA.h
  - B
    - AFileInFolderB.h
  - C
    - AFileInFolderC.h

With the repo structure above, AFileInFolderA.h was the problem file. I came to this conclusion because I could do and svn update in folders B and C but not on the root or folder A. Drilling down further, I could update AnotherFileInFolderA.h but not the problem one.

Anyway, with that information in hand I copied my working copy changes from folder A, then (using Tortoise SVN) did a selective Update To Revision on the root folder, excluding folder A from my checkout. I then did the reverse, re-adding the folder to the checkout. Finally I added my local changes back in and committed to the repo. All is now working fine.