After upgrading Git to 1.5.4.2, I was having problems checking out projects from Apache’s subversion repository. When I would try to do something like:
git svn clone --stdlayout https://svn.apache.org/repos/asf/mina/asyncweb
Git would output:
Initialized empty Git repository in .git/ Using higher level of URL: https://svn.apache.org/repos/asf/mina/asyncweb => https://svn.apache.org/repos/asf W: Ignoring error from SVN, path probably does not exist: (175002): RA layer request failed: REPORT request failed on '/repos/asf/!svn/bc/100': REPORT of '/repos/asf/!svn/bc/100': Could not read chunk size: Secure connection truncated (https://svn.apache.org) W: Do not be alarmed at the above message git-svn is just searching aggressively for old history. This may take a while on large repositories
It would churn for a LONG while and finally die spewing out:
RA layer request failed: REPORT request failed on '/repos/asf/!svn/vcc/default': REPORT of '/repos/asf/!svn/vcc/default': 400 Bad Request (https://svn.apache.org) at /usr/bin/git-svn line 3813
I Googled for a solution, of course, and didn’t find anything. Git would create a project folder but it didn’t have anything in it except for the .git directory. I tried doing a ‘git svn rebase’ and it would fail. Out of desperation I tried doing ‘git svn fetch’ and voila! Git started pulling down the project and its history. It still takes a painfully long time to find the project’s history and fetch it but the flexibility and dynamics of Git make the required patience worth it.
3 Responses
Jakub Narebski
February 28th, 2008 at 5:58 pm
1Have you posted bug info on git mailing list? You don’t have to be subscribed to post (and there are mail archives, and Usenet interface, which allows to read list not being subscribed).
Pete McCormick
April 4th, 2008 at 12:52 am
2I encountered the same thing while trying to git-svn clone the mod_python repo. Some tcpdump digging and searching later, I found this bug report which is the source of our problem:
http://subversion.tigris.org/issues/show_bug.cgi?id=3102
The proposed fix is in the SVN 1.5 development branch. Crazy.
Cheers,
Pete
PJ Hyett
September 3rd, 2008 at 5:10 pm
3Thanks for posting this.
I was running into the dreaded `RA layer request failed` errors pulling from google code repos.
I should have given git-svn more credit for doing the right thing picking up where it left off after an error.
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Archives
Links
Meta
Calendar