You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alexandre Horst <al...@fs.inf.br> on 2004/04/19 17:55:38 UTC

Berkeley DB error while opening 'transactions' table for filesystem /svn/db: Invalid argument

Hello all! 

I got an error in my Subversion repository when I was importing a
project. It has been hang. After that I ran: 

[root@intranet /]# svnadmin recover /svn
Berkeley DB error while opening 'transactions' table for filesystem
/svn/db: Invalid argument  

I have not found anything to resolve my problem. I was trying to dump my
repository with:

[root@intranet /]# svnadmin dump /svn > ~/svn_dumpfile.txt
svn: Berkeley DB error while opening 'transactions' table for filesystem
/svn/db:
Invalid argument

Any ideas? I am running svn, version 1.0.1 (r9023) compiled Mar 14 2004,
11:19:19  on Fedora-1. Berkeley DB 4.1.25.

Thanks in advance
Alexandre Horst

Re: Berkeley DB error while opening 'transactions' table for filesystem /svn/db: Invalid argument

Posted by John Szakmeister <jo...@szakmeister.net>.
On Monday 19 April 2004 15:13, Alexandre Horst wrote:
> Em Seg, 2004-04-19 às 15:04, Ben Collins-Sussman escreveu:
> > On Mon, 2004-04-19 at 12:55, Alexandre Horst wrote:
> > > [root@intranet /]# svnadmin recover /svn
> > > Berkeley DB error while opening 'transactions' table for filesystem
> > > /svn/db: Invalid argument
> >
> > You have conflicting versions of BDB installed, somehow.  This means
> > that you're trying to open the database using a different version of BDB
> > from the one which created the database.
>
> I have installed only version 4.1.25 of Berkeley DB. We have converted
> our old database to this version of Berkeley DB and until now it was
> working. I have ran svn recover many times without any error. And this
> error worried me and I did not find anything which seems a common error.

Not that I can be much help for the rest of this thread, but I can say that 
I've seen some reliability problems with db 4.1.25.  Once you get your 
repository back online, I would seriously recommend that you upgrade db to 
4.2.52.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Berkeley DB error while opening 'transactions' table for filesystem /svn/db: Invalid argument

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mon, 2004-04-19 at 14:13, Alexandre Horst wrote:
> Em Seg, 2004-04-19 às 15:04, Ben Collins-Sussman escreveu:
> > On Mon, 2004-04-19 at 12:55, Alexandre Horst wrote:
> > 
> > > [root@intranet /]# svnadmin recover /svn
> > > Berkeley DB error while opening 'transactions' table for filesystem
> > > /svn/db: Invalid argument  
> > 
> > You have conflicting versions of BDB installed, somehow.  This means
> > that you're trying to open the database using a different version of BDB
> > from the one which created the database.
> 
> I have installed only version 4.1.25 of Berkeley DB. We have converted
> our old database to this version of Berkeley DB and until now it was
> working. I have ran svn recover many times without any error. And this
> error worried me and I did not find anything which seems a common error.
> 

What does 'ldd svnadmin say'?  Is it really linked to BDB 4.1.25?


> Is there another way to recover my repository? 

You can use the 'db_recover' binary that ships with BDB.  'svnadmin
recover' is just a wrapper around that same C function.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Berkeley DB error while opening 'transactions' table for filesystem /svn/db: Invalid argument

Posted by Alexandre Horst <al...@fs.inf.br>.
Em Seg, 2004-04-19 às 15:04, Ben Collins-Sussman escreveu:
> On Mon, 2004-04-19 at 12:55, Alexandre Horst wrote:
> 
> > [root@intranet /]# svnadmin recover /svn
> > Berkeley DB error while opening 'transactions' table for filesystem
> > /svn/db: Invalid argument  
> 
> You have conflicting versions of BDB installed, somehow.  This means
> that you're trying to open the database using a different version of BDB
> from the one which created the database.

I have installed only version 4.1.25 of Berkeley DB. We have converted
our old database to this version of Berkeley DB and until now it was
working. I have ran svn recover many times without any error. And this
error worried me and I did not find anything which seems a common error.

Is there another way to recover my repository? 
 
I remember that I have been signaling the program with many Control-C.
Could it be a corrupted 'transactions' file? 

Regards,
Alexandre Horst

Re: Berkeley DB error while opening 'transactions' table for filesystem /svn/db: Invalid argument

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mon, 2004-04-19 at 12:55, Alexandre Horst wrote:

> [root@intranet /]# svnadmin recover /svn
> Berkeley DB error while opening 'transactions' table for filesystem
> /svn/db: Invalid argument  

You have conflicting versions of BDB installed, somehow.  This means
that you're trying to open the database using a different version of BDB
from the one which created the database.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org