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

Re: Corrupt svn database on MacOSX

From: D'Arcy Norman <dlnorman_at_ucalgary.ca>
Date: 2004-08-26 00:37:16 CEST

On Aug 25, 2004, at 3:21 PM, D'Arcy Norman wrote:

> I've installed Subversion on my server, and have been using it quit a
> bit for the last couple of weeks. I was really loving it (and the
> websvn front end).
>
> However, just now the database completely borked. I've tried svnadmin
> recover, but this is what I get:
>
> $ sudo /usr/local/subversion/bin/svnadmin recover /Library/Subversion
> Please wait; recovering the repository may take some time...
> subversion/libsvn_fs/bdb/bdb-err.c:51: (apr_err=160029)
> svn: DB_RUNRECOVERY: Fatal error, run database recovery

I just performed a dump and load of the repository, and it appears to
be working again (whew)

For future archives searchers, here's what I did...

first, make sure the Apache2 instance is dead...

$ sudo -s www /usr/local/subversion/bin/svnadmin dump
/Library/Subversion > svndump
$ mv /Library/Subversion /Library/Subversion.old
$ mkdir /Library/Subversion
$ sudo chown www:admin /Library/Subversion
$ sudo -s www /usr/local/subversion/bin/svnadmin create
/Library/Subversion
$ sudo -s www /usr/local/subversion/bin/svnadmin load
/Library/Subversion < svndump
$ sudo -s www /usr/local/apache/bin/apachectl start

And now it's back, with apparently all files and revisions back in.
I'll be running a nightly cron to dump the repository just in case I
need to restore again ;-)

And big thanks to Travis P. for his tip of using sudo -s www I've
been using MacOSX since the Public Beta days and still didn't know that
one ;-)

- D'Arcy Norman
        Software Developer
        Learning Commons, The University of Calgary
        dlnorman@ucalgary.ca
        http://careo.ucalgary.ca
        http://commons.ucalgary.ca/weblogs/dnorman
        (403) 220-2504
        AIM/iChatAV: dnorman@mac.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 26 00:38:02 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.