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

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

From: <Nicolas.Castagne_at_imag.fr>
Date: Fri, 16 Oct 2009 09:49:08 +0200 (CEST)

Hello,
thanks Jeremy.

To start, if the problem may be due to env. variables, I must say that I
am working through ssh.
I don't see why this would affect svn admin but...

Following your suggestion:

> I assume that these commands work properly if you are logged in as svn
> and you only get these errors when you sudo.

When logged as svn, running:
> svnadmin dump cordisoff > test

returned:
   svn: Berkeley DB error while opening environment for filesystem
cordisoff/db:
   Permission non accordée

I changed the owner of the whole repository to svn:svn
Then, logged back as svn, running:
> svnadmin svnadmin dump cordisoff > test

returned:
   svn: Berkeley DB error while opening environment for filesystem
cordisoff/db:
   Argument invalide
   svn: bdb: Program version 4.2 doesn't match environment version

So, it seems not to be due to the env variables.

> If so, try adding the -H

Logged as svn, running:
> sudo -H svnadmin dump cordisoff > test

returned again:
    svn: Berkeley DB error while opening environment for filesystem
cordisoff/db:
    Argument invalide
    svn: bdb: Program version 4.2 doesn't match environment version

> If that fails, try comparing the results of
> sudo -h svn printenv
> to logging in as svn and running printenv

I guess you meant sudo -u svn printenv ?
Well, not many difference arround: same HOME, logname, etc

Only difference is in the path.
With printenv, logged as svn:
   PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

With sudo -u svn printenv:
   PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin

Well, I must say I am still "lost" :/

Thanks,
Nicolas

>> -----Original Message-----
>> From: Nicolas.Castagne_at_imag.fr [mailto:Nicolas.Castagne_at_imag.fr]
>> Sent: Thursday, October 15, 2009 11:06 AM
>>
>> Hi there,
>>
>> I am starting to administrate a series of svn repositories, and face
>> problem when trying to dump or hotcopy them.
>>
>> ---
>> Problem report
>> ---
>>
>> Running:
>>
>> % sudo svn dump /path/to/my/repository
>> or
>> % sudo svn hotcopy /path/to/my/repository
>>
>> I get the (usual?) error:
>>
>> svn: Berkeley DB error while opening environment for filesystem
>> cordisoff/db:
>> Argument invalide
>> svn: bdb: Program version 4.2 doesn't match environment version
>>
>>
>
> I assume that these commands work properly if you are logged in as svn
> and you only get these errors when you sudo. If so, try adding the -H
> flag to sudo so that svn's environment is properly set.
>
> If that fails, try comparing the results of
>
> sudo -h svn printenv
>
> to logging in as svn and running printenv
>
> JLM
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2407938
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe_at_subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2408153

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-16 10:25:09 CEST

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.