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

DB_VERSION_MISMATCH error on Mac OS X, fink svn-ssl 1.2.3-12 1.2.3-13

From: Hans Fangohr <H.FANGOHR_at_soton.ac.uk>
Date: 2006-02-02 01:07:14 CET


I am a relatively new user of svn (two months or so) and everything was
rolling smoothly until now. :) This is on a Mac OS X 10.4 with svn-ssl
installed using fink. Have created a number of svn repositories and
stopped using CVS. Here is the problem:

Presumably after an upgrade of packages (using fink update-all) on the
svn-server, I get the following error (both when executing this on the
server in checked out directory and when executed in a checked out
directory or a remote client):

svn status -u
svn: Berkeley DB error for filesystem /Users/svn/fangohr/teaching/admin/db
while opening environment:
DB_VERSION_MISMATCH: Database environment version mismatch
svn: bdb: Program version 4.3 doesn't match environment version

After some googling and searching I find that the most common explanation
is that I have accidentally upgraded the Berkeley data base (bdb) from 4.2
to 4.3, and therefore there is a version mismatch.

There are a number of things that make me suspicious thought whether this
is the right conclusion (although I don't have any firm evidence on
either of these):

  -- I had run a fink update-all on the server not soo long ago (max 14
     days ago)

  -- I might have switched from stable to unstable (which should result in
     svn-ssl 1.2.3-12 or 1.2.3-13 being installed). I have therefore
     switched back to stable and re-installed the 1.2.3-12. However, I
     stil get the error message shown above.

  -- As far as I can see, svn brings its own bdb code (so there is no
     separate package) and I can't recall any upgrade of svn itself.

I hope I have set the scene without boring people too much.

To get the repository back in a useful state I think I need to find the
right version of svn (which brings the right version of the bdb, correct?)

I have tried to find out what berkely database version my repository
requires, but I don't know how to. The error message seems to suggest
that the installed version of the database is 4.3 but it doesn't agree
with the repository? (Or is it the other way round?)

I have located the DB_CONFIG file but can't read it. Can anyone enlighten
me on this? I attach the file below.

If you have alternative suggestions how to proceed, I would be delighted
to hear them.

(As always, it feels better to have a working svn repository.)

Many thanks in advance,


Here is the output of the DB_CONFIG file.

jarjar:~ fangohr$ cd /Users/svn/fangohr/teaching/admin/db/
jarjar:/Users/svn/fangohr/teaching/admin/db fangohr$ less DB_CONFIG

# http://www.sleepycat.com/docs/ref/log/limits.html
# Increase the size of the in-memory log buffer from the default
# of 32 Kbytes to 256 Kbytes. Decrease the log file size from
# 10 Mbytes to 1 Mbyte. This will help reduce the amount of disk
# space required for hot backups. The size of the log file must be
# at least four times the size of the in-memory log buffer.
# Note: Decreasing the in-memory buffer size below 256 Kbytes
# will hurt commit performance. For details, see this post from
# Daniel Berlin <dan@dberlin.org>:
# http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgId=161960
set_lg_bsize 262144
set_lg_max 1048576
# If you see "log region out of memory" errors, bump lg_regionmax.
# See http://www.sleepycat.com/docs/ref/log/config.html and
# http://svn.haxx.se/users/archive-2004-10/1001.shtml for more.
set_lg_regionmax 131072
# Disable fsync of log files on transaction commit. Read the
# documentation about DB_TXN_NOSYNC at:
# http://www.sleepycat.com/docs/api_c/env_set_flags.html
# [requires Berkeley DB 4.0]
# set_flags DB_TXN_NOSYNC
# Enable automatic removal of unused transaction log files.
# Read the documentation about DB_LOG_AUTOREMOVE at:
# http://www.sleepycat.com/docs/api_c/env_set_flags.html
# [requires Berkeley DB 4.2]

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 2 01:08:02 2006

This is an archived mail posted to the Subversion Users mailing list.