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

Re: Fwd: Berkeley DB error - URGENT!!!

From: Rachael Russell <rachael.russel_at_flightcentre.co.uk>
Date: 2005-05-04 14:41:44 CEST

Have seen this fix suggested in some forums -- anyone know if it's safe or
releavent to this issue??!
-------------------------------
I'm getting the error "svn: bdb: call implies an access method which is
inconsistent with previous calls". How do I fix this?

Berkeley DB 4.1 has shown itself to be rather unstable - both 4.0 and 4.2
are better. This error message is a symptom of one unique way in which 4.1
will sometimes break.

The problem is that the database format field for one of the tables that
make up a Subversion BDB-type repository has become corrupted. For unknown
reasons, this is almost always the 'copies' table, which switches from the
'btree' type to the 'recno' type. Simple recovery procedures are outlined
below - if they do not succeed, you should contact the Subversion Users
mailing list.

    * Ensure that no other processes will attempt to access your
repository.
    * Now, back up your repository to a tar or zip file or similar.
    * Change to the db subdirectory of your repository.
    * rm __db.* log.*
    * db_dump -p -r copies > copies.dump
    * Now edit copies.dump. In the section near the top, change
"type=recno" to "type=btree", and delete the line beginning "re_len=".
    * rm copies
    * db_load copies < copies.dump
    * svnadmin dump .. > ../../my-recovered.svndump
    * Now create a new repository, reload the dump file just produced, and
copy across any custom hooks or configuration. Verify that the highest
revision number in the new repository is what you think it should be.
-------------------------------------
http://svn.collab.net/repos/svn/trunk/www/faq.html#bdb41-tabletype-bug

cheers
Rach

"Rachael Russell" <rachael.russel@flightcentre.co.uk> writes:
>Hi,
>
>Can anyone please help! We've got a Berkeley db error, breakin our
>subversion installation....! No idea what was happening when this occured
>(is there another log anywhere?). Running over apache http://
>Urgently needs this sorted out, as we've got a build due in a day or
>so.... tried a few recovers, but no joy.....
>
>svnadmin version 1.0.8 r11084, on RedHat ES3
>
>Any help would be greatly appreciated!
>
>thx
>Rachael
>
>
>[root@development root]# less /var/log/httpd/error_log
>vn_new/webapps/projectearth_web/trunk/
>[Wed May 04 11:59:47 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029], referer: http://10
>.98.1.155/svn_new/webapps/projectearth_web/trunk/
>[Wed May 04 11:59:47 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029], referer: http://10
>.98.1.155/svn_new/webapps/projectearth_web/trunk/
>[Wed May 04 11:59:48 2005] [error] [client 10.98.7.59] (20014)Error string
>not specified yet: Berkeley DB error while opening 'copies'
> table for filesystem /usr/svnrepos/fcuk_new/db:!Invalid argument
>[Wed May 04 11:59:48 2005] [error] [client 10.98.7.59] Could not fetch
>resource information. [500, #0]
>[Wed May 04 11:59:48 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029]
>[Wed May 04 11:59:48 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029]
>[Wed May 04 11:59:52 2005] [error] [client 10.98.7.59] (20014)Error string
>not specified yet: Berkeley DB error while opening 'copies'
> table for filesystem /usr/svnrepos/fcuk_new/db:!Invalid argument,
>referer: http://10.98.1.155/svn_new/webapps/projectearth_web/trunk/
>[Wed May 04 11:59:52 2005] [error] [client 10.98.7.59] Could not fetch
>resource information. [500, #0], referer: http://10.98.1.155/s
>vn_new/webapps/projectearth_web/trunk/
>[Wed May 04 11:59:52 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029], referer: http://10
>.98.1.155/svn_new/webapps/projectearth_web/trunk/
>[Wed May 04 11:59:52 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029], referer: http://10
>.98.1.155/svn_new/webapps/projectearth_web/trunk/
>[Wed May 04 11:59:59 2005] [error] [client 10.98.7.59] (20014)Error string
>not specified yet: Berkeley DB error while opening 'copies'
> table for filesystem /usr/svnrepos/fcuk_new/db:!Invalid argument,
>referer: http://10.98.1.155/svn_new/
>[Wed May 04 11:59:59 2005] [error] [client 10.98.7.59] Could not fetch
>resource information. [500, #0], referer: http://10.98.1.155/s
>vn_new/
>[Wed May 04 11:59:59 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029], referer: http://10
>.98.1.155/svn_new/
>[Wed May 04 11:59:59 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029], referer: http://10
>.98.1.155/svn_new/
>[Wed May 04 12:00:01 2005] [error] [client 10.98.7.59] (20014)Error string
>not specified yet: Berkeley DB error while opening 'copies'
> table for filesystem /usr/svnrepos/fcuk_new/db:!Invalid argument
>[Wed May 04 12:00:01 2005] [error] [client 10.98.7.59] Could not fetch
>resource information. [500, #0]
>[Wed May 04 12:00:01 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029]
>[Wed May 04 12:00:01 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029]
>[Wed May 04 12:00:02 2005] [error] [client 10.98.7.59] (20014)Error string
>not specified yet: Berkeley DB error while opening 'copies'
> table for filesystem /usr/svnrepos/fcuk_new/db:!Invalid argument
>[Wed May 04 12:00:02 2005] [error] [client 10.98.7.59] Could not fetch
>resource information. [500, #0]
>[Wed May 04 12:00:02 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029]
>[Wed May 04 12:00:02 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029]
>[Wed May 04 12:00:03 2005] [error] [client 10.98.7.59] (20014)Error string
>not specified yet: Berkeley DB error while opening 'copies'
> table for filesystem /usr/svnrepos/fcuk_new/db:!Invalid argument
>[Wed May 04 12:00:03 2005] [error] [client 10.98.7.59] Could not fetch
>resource information. [500, #0]
>[Wed May 04 12:00:03 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029]
>[Wed May 04 12:00:03 2005] [error] [client 10.98.7.59] Could not open the
>requested SVN filesystem [500, #160029]
>(END)
>
>
>
>
>--------------------------------
>E-Commerce Team
>Flight Centre (UK) Limited
>www.flightcentre.co.uk
>Mobile: 07931 926 113
>Email: rachael.russell@flightcentre.co.uk
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
>

--------------------------------
E-Commerce Team
Flight Centre (UK) Limited
www.flightcentre.co.uk
Mobile: 07931 926 113
Email: rachael.russell@flightcentre.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 4 14:46:26 2005

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.