[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion Ate My Repository

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-06-04 12:33:10 CEST

Matt Navarre wrote:

>On Thursday 03 June 2004 09:02, Matt Navarre wrote:
>
>
>
>>>I'd say something is seriously wrong either wirh your Subversion build
>>>or your Berkeley DB, and I suspect the following. Have you tried the
>>>db_recover command? Apart from that, it does the same thing as "svnadmin
>>>recover". If that works, you'll at least know that the problem is in
>>>Subversion. Or the other way around, of course.
>>>
>>>
>>Is db_recover part of the Berkeley DB distribution? It doesn't seem to have
>>a man page on my system. The DB on this machine is db4-4.0.14-20. I don't
>>know if it's the default from RH9 or was installed by up2date. The svn
>>rpm's are the ones from subversion's downloads page, but if I can recover
>>I'll try building both from source and see if that stops the crashy
>>badness.
>>
>>Thanks.
>>
>>
>
>Well, *That* didn't work. db_recover segfaulted too.
>
Then it's either the BDB RPM, or libc incompatibility...

>Is there any harm that
>will be done by cp'ing the repo directory somewhere, building BDB,
>subversion, et. al. from source and trying to recover using the new software
>not built on an unknown box?
>
I suggest not copying the raw repository without dumping it first. hm.
but you can't dump without recovering it first... Oh bother.

> I'm *fairly* sure it's not the machine, since
>everything else is running fine, with no crashy badness.
>
>I suspect the BDB rpm that's installed on here, so what I'm thinking is cp the
>repos dir to a backup. Rebuild all the SVN related software from source and
>attempt recovery again. If that fails I can always cp the backup back, and be
>just as screwed as I am now. Unfortunately I don't have an actual DB backup,
>so catastrophic recovery using db_recover isn't possible. It was on my TODO
>list. Honest.
>
>Anything I might be missing here?
>
>
Not much. You can safely copy the raw database to another directory on
the same machine, as long as nobody is trying to access it, or on
another machine with idential configuration (I think that would include
libc version, although it may not, now that the first "svnadmin recover"
removed your BDB evironment files).

I'd suggest you try to rebuild just BDB from source first, and use the
fresh db_recover.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 4 12:34:20 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.