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

dump/load cycle, svnadmin, Berkeley DB error

From: Michael Ludwig <louisseize_at_gmx.de>
Date: 2004-06-11 16:56:12 CEST

I was running Debian Linux (unstable). I had a subversion server
installed and committed stuff to a repo. I unintentionally inflicted
unrecoverable data corruption on my hard disk and made a fresh install.
I am running Debian Linux (unstable) again.

I restored my data from the backup, including my subversion repo. I
understand I may have to do a dump/load cycle to set my repo up against
the new version of the subversion server. This is what I'm currently
trying to do. My repo seems to be in `format 2'.

    michael@kasimir:~ > cat ReposFromBackup4/format

Unfortunately, I don't remember the version of svnadmin I was using
before the crash occurred. My current version of svnadmin is obviously
not the one to use for the dump:

    michael@kasimir:~ > svnadmin --version
    svnadmin, version 1.0.3 (r9775)
       compiled May 19 2004, 21:28:49
    michael@kasimir:~ > svnadmin dump ReposFromBackup4
    svn: Expected version '3' of repository; found version '2'

I did some googling and found references to statically linked svnadmin
version distributed with some Debian packages. However, I couldn't
locate any of those Debian packages.

I consulted the CHANGES file of the subversion source code
distribution. I checked out some older versions of the subversion
repository and compiled the code, hoping to get the version of svnadmin
I need to do the dump.

    Version 0.33.1 (released 17 November 2003, revision r7782)
    Version 0.27.0 (released 12 August 2003, rev 6707, branches/release-0.27.0)
    Version 0.29.0 (released 05 Sep 2003, revision 6976)

I tried the versions of svnadmin I got. Versions 0.33.0 and 0.26.0 of
svnadmin seem to fail for the obvious reason of repository format
incompatibility. Version 0.29.0 of svnadmin, however, although failing,
does not fail for the same reason.

    michael@kasimir:~ > Subversion-0.33.1-built/bin/svnadmin --version
    svnadmin, version 0.33.0 (dev build)
       compiled Jun 11 2004, 11:00:08
    michael@kasimir:~ > Subversion-0.33.1-built/bin/svnadmin dump ReposFromBackup4
    svn: Unsupported repository version
    svn: Expected version '3' of repository; found version '2'


    michael@kasimir:~ > Subversion-0.27.0-built/bin/svnadmin --version
    svnadmin, version 0.26.0 (dev build)
       compiled Jun 11 2004, 11:30:32
    michael@kasimir:~ > Subversion-0.27.0-built/bin/svnadmin dump ReposFromBackup4
    svn: Unsupported repository version
    svn: Expected version '1' of repository; found version '2'


    michael@kasimir:~ > Subversion-0.29.0-built/bin/svnadmin --version
    svnadmin, version 0.29.0 (dev build)
       compiled Jun 11 2004, 12:14:51
    michael@kasimir:~ > Subversion-0.29.0-built/bin/svnadmin dump ReposFromBackup4
    svn: Berkeley DB error
    svn: Berkeley DB error while opening environment for filesystem ReposFromBackup4/db:
    Invalid argument

So what does this last error message mean? Let me point out that I do
have read/write access to all of the repo files. According to the Unix
command `file' (version 4.07), my Berkeley DB files in
ReposFromBackup4/db (changes, copies, nodes, representations, revisions,
strings, transactions, uuids) are "Berkeley DB (Btree, version 9, native
byte-order)". I can dump those files using the Berkeley DB utility
db_dump with the following versions:

    michael@kasimir:~ > db4.1_dump -V
    Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
    michael@kasimir:~ > db4.2_dump -V
    Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)

This version, however, cannot dump my data:

    michael@kasimir:~ > db4.0_dump -V
    Sleepycat Software: Berkeley DB 4.0.14: (June 10, 2004)

I am lost. My repo seems to be in format 2. The files under
ReposFromBackup4/db seem to be Btree version 9. I seem to need Berkeley
DB version 4.1 or 4.2. But I may simply be missing something obvious.

Does anyone know how I can get my repo back? Is there a suitable
svnadmin binary available somewhere? If not, what version of subversion
what would I have to compile with what version of BDB (and possibly
other prerequisites)?

Any help appreciated. Thank you,


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 14 10:29:33 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.