Login | Register
My pages Projects Community openCollabNet

Discussions > users [DISABLED] > Re: svnadmin dump || hotcopy : Program version matching error

subversion
Discussion topic

Back to topic list

Re: svnadmin dump || hotcopy : Program version matching error

Author ryandesign
Full name Ryan Schmidt
Date 2009-10-20 12:11:36 PDT
Message On Oct 20, 2009, at 13:53, Ryan Schmidt wrote:

>> 1/ when using svnadmin from the machine where the repositories are,
>> most
>> subcommands throw an error in the form:
>>
>> “svn: Berkeley DB error while opening environment for filesystem
>> cordisoff/db:
>> Argument invalide
>> svn: bdb: Program version 4.2 doesn't match environment version”
>
> Then your svnadmin was built for a version of BerkeleyDB different
> from 4.2.
>
>
>> 2/ when using svn with the http protocol, from ANY machine,
>> everything
>> goes always OK.
>
> Then presumably your mod_dav_svn was built for BerkeleyDB 4.2. So it
> sounds like your mod_dav_svn may not be matched with the rest of your
> Subversion software. On many systems, you need to manually copy
> mod_dav_svn to the right place for Apache to see when you upgrade

Thinking about this further, I may have this a bit backward. It's the
repository that is "built" for a particular BerkeleyDB version, not
the Subversion parts. Presumably when you're using svnadmin and when
you're using mod_dav_svn you're talking to the same repository. So
then, the error message you get from svnadmin shows that BerkeleyDB
4.2 is what svnadmin is using, but this isn't the right version for
accessing the repository. Conversely, your mod_dav_svn has no problem
using the repository, so maybe your mod_dav_svn is using a different
version of BerkeleyDB -- maybe you have multiple versions installed on
your server simultaneously.

Or is it possible that your Apache has just never been restarted after
BerkeleyDB was updated to 4.2, and that if you were to now restart
Apache, you would no longer be able to access the repository from
there either? I suppose you would prefer not to test that theory at
the moment. :) But it might be useful to know your Apache's uptime.

You may want to follow this FAQ entry to determine which version of
BerkeleyDB your repository is "built" for at this moment:

http://subversion.ti​gris.org/faq.html#di​vining-bdb-version

If you find your repository is "built" for BerkeleyDB < 4.2, you can
apparently upgrade it to BerkeleyDB 4.2 specs by using "svnadmin
recover". If you wanted to upgrade to a later version of BerkeleyDB,
this FAQ would be relevant:

http://subversion.ti​gris.org/faq.html#bd​b43-upgrade


Also note that as of Subversion 1.2, the default repository format is
no longer BerkeleyDB but "FSFS". If you manage to find a way to dump
your repository and load it into a new one, you'll get an FSFS
repository (unless you explicitly ask for a BDB one). FSFS was
specifically designed for Subversion to avoid the intricacies of
managing BerkeleyDB -- such as these version mismatches -- so if you
use FSFS, you won't ever have to deal with this again (or even have
BerkeleyDB installed). As you can imagine, I recommend using FSFS.

« Previous message in topic | 9 of 12 | Next message in topic »

Messages

Show all messages in topic

svnadmin dump || hotcopy : Program version matching error Nicolas dot Castagne at imag dot fr Nicolas dot Castagne at imag dot fr 2009-10-15 08:40:50 PDT
     RE: svnadmin dump || hotcopy : Program version matching error "Jeremy Mordkoff" <jlm at ZeeVee dot Com> "Jeremy Mordkoff" <jlm at ZeeVee dot Com> 2009-10-15 08:59:14 PDT
         RE: svnadmin dump || hotcopy : Program version matching error Nicolas dot Castagne at imag dot fr Nicolas dot Castagne at imag dot fr 2009-10-16 01:23:53 PDT
             RE: svnadmin dump || hotcopy : Program version matching error "Jeremy Mordkoff" <jlm at ZeeVee dot Com> "Jeremy Mordkoff" <jlm at ZeeVee dot Com> 2009-10-16 07:40:55 PDT
                 RE: svnadmin dump || hotcopy : Program version matching error Nicolas dot Castagne at imag dot fr Nicolas dot Castagne at imag dot fr 2009-10-16 08:49:44 PDT
                     Re: svnadmin dump || hotcopy : Program version matching error ryandesign Ryan Schmidt 2009-10-16 09:06:46 PDT
                         Re: svnadmin dump || hotcopy : Program version matching error Nicolas dot Castagne at imag dot fr Nicolas dot Castagne at imag dot fr 2009-10-20 04:19:59 PDT
                             Re: svnadmin dump || hotcopy : Program version matching error ryandesign Ryan Schmidt 2009-10-20 11:53:53 PDT
                                 Re: svnadmin dump || hotcopy : Program version matching error ryandesign Ryan Schmidt 2009-10-20 12:11:36 PDT
                                     Re: svnadmin dump || hotcopy : Program version matching error Nicolas dot Castagne at imag dot fr Nicolas dot Castagne at imag dot fr 2009-10-21 01:50:55 PDT
                                         Re: svnadmin dump || hotcopy : Program version matching error ryandesign Ryan Schmidt 2009-10-21 19:46:03 PDT
                                             Re: svnadmin dump || hotcopy : Program version matching error Nicolas dot Castagne at imag dot fr Nicolas dot Castagne at imag dot fr 2009-10-23 11:22:40 PDT
Messages per page: