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

Corrupted Repository, Can't Recover

From: Andrew Wagner <awagner_at_uiuc.edu>
Date: 2004-05-25 17:23:12 CEST


Somehow our repository is getting corrupted intermittently in such a
way that "svnadmin recover" cannot fix the problem. I seem to be able
to get everything back by dumping the database and creating a new
database with the dump file.

The server is svn+ssh on an OS X box. All three of the times the
database has become corrupted it was found by a particular user. The
server is 1.0.0 ( The most up to date fink package; I'll compile from
the source if I have reason to believe it's a bug and not a
configuration problem. )

The sun client is the latest version. The clients are two macs running
the 1.0.0 client, a couple windows machines running the latest
tortoiseSVN, and a sun workstation with solaris 9. The user that
discovered the problems was at first using an ibook to communicate with
the repository while editing with a sun. Now that he has the solaris
svn client installed he's using that exclusively.

For some reason I had to set the permissions of the entire repository
to 777 to get things working. I checked again in a corrupted database,
and except for one log file, everything is still set to 777.

The svnserve.conf file has everything commented out; I haven't made any

Anyone know what the problems is? I'm still digging through old posts,
rereading the documentation, etc... but if anyone already knows what is
wrong, a tip would be much appreciated.


Here is a transcript of what I've been doing to recover the database.

veronese:/usr/local awagner$ svnadmin recover svn_repository
Please wait; recovering the repository may take some time...
svn: DB_RUNRECOVERY: Fatal error, run database recovery
veronese:/usr/local awagner$ svnadmin dump svn_repository >
* Dumped revision 0.
* Dumped revision 1.
* Dumped revision 26.
* Dumped revision 27.
Abort trap
veronese:/usr/local awagner$ ls
total 14088
drwxr-xr-x 19 awagner unknown 646B 20 May 16:38 .
drwxr-xr-x 12 root wheel 408B 12 Sep 2003 ..
drwxrwxrwx 9 awagner unknown 306B 20 May 09:29 svn_repository
-rw-r--r-- 1 awagner unknown 216K 20 May 09:15
-rw-r--r-- 1 awagner unknown 6M 20 May 16:38
drwxrwxr-x 9 awagner unknown 306B 30 Apr 21:18

veronese:/usr/local awagner$ mv svn_repository
veronese:/usr/local awagner$ svnadmin create svn_repository
veronese:/usr/local awagner$ svnadmin load svn_repository <
<<< Started new transaction, based on original revision 1
      * adding path : gpca ... done.
------- Committed revision 1 >>>


<<< Started new transaction, based on original revision 27
      * adding path : Broomhead_New approach to dimensionality
reduction.pdf ... done.
      * adding path : ISOMAP_original.pdf ... done.
      * adding path : LLE_science.pdf ... done.
      * adding path : example.m ... done.
      * adding path : example1.eps ... done.
      * adding path : isomap.pdf ... done.
      * adding path : lle_tr02.pdf ... done.
      * adding path : mtns2004.tex ... done.
      * adding path : quadratic.aux ... done.
      * adding path : quadratic.dvi ... done.
      * adding path : quadratic.log ... done.
      * adding path : quadratic.pdf ... done.
      * adding path : quadratic.tex ... done.
      * adding path : quadratic.tex.bak ... done.
      * adding path : quadratic_revision.aux ... done.
      * adding path : quadratic_revision.dvi ... done.
      * adding path : quadratic_revision.log ... done.
      * adding path : quadratic_revision.tex ... done.
      * adding path : quadratic_revision.tex.bak ... done.
      * adding path : quadratic_shankar.tex ... done.
      * adding path : veronese.m ... done.

------- Committed revision 27 >>>

veronese:/usr/local awagner$ chmod -R 777 svn_repository

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 25 17:24:15 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.