You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Hans Fangohr <H....@soton.ac.uk> on 2006/02/02 00:07:14 UTC
DB_VERSION_MISMATCH error on Mac OS X, fink svn-ssl 1.2.3-12 1.2.3-13
Hi,
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,
Hans
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 <da...@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]
set_flags DB_LOG_AUTOREMOVE
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: DB_VERSION_MISMATCH error on Mac OS X, fink svn-ssl 1.2.3-12 1.2.3-13
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 2, 2006, at 01:07, Hans Fangohr wrote:
> 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?)
Subversion requires BDB. Subversion does not include BDB. At least,
the Subversion source distribution does not, and the Subversion build
process on Mac OS X using DarwinPorts does not. (It uses
DarwinPorts's BDB port.) I assume Fink works in a similar way.
To upgrade to BDB 4.3 you need to follow these instructions:
http://subversion.tigris.org/faq.html#bdb43-upgrade
Unfortunately you'll see that it requires you to still have your old
BDB 4.2 Subversion binaries, which you probably no longer have.
You'll probably have to downgrade back to the previous version of BDB
and recompile Subversion against that again, then perform the first
part of the upgrade, then upgrade back to the new version of the
software, then perform the next part.
If you have a current repository dumpfile you could skip all this and
reimport it into a new empty repository.
After you restore access to your repository, you may want to convert
it to FSFS so that you don't run into BDB oddities in the future.
http://subversion.tigris.org/faq.html#bdb-fsfs-convert
> 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.
Find out what version of BDB your repository was using here:
http://subversion.tigris.org/faq.html#divining-bdb-version
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org