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

svn 1.1.0rc2: Reproducible DB problem

From: Wolfgang Fritz <wolfgang.fritz_at_gmx.net>
Date: 2004-09-12 10:23:38 CEST

Hello,

I'm trying to convert a CVS repository to svn with cvs2svn and get a
reproducible DB error during this process. The CVS repository contains
one main project and some related subprojects (plugins), which I want to
organize as follows:

/home/svn/repos/rep/ -- repository
                   /main -- main project
                   /plugins -- subprojects
                   /plugins/plugin_1 -- subproject 1
                   ...
                   /plugins/plugin_n -- subproject n

The conversion process uses the following steps:

1. Create the repository /home/svn/repos/rep/
2. Check it out
3. Create the project structure (empty subdirs) in the working copy
4. Check in project structure.

5. For the main project, I do
cvs2svn --encoding=latin1 --dump-only --dumpfile=main.svn $CVSROOT/main
svnadmin load --parent-dir main /home/svn/repos/rep <main.svn

6. For each plugin P I do
cvs2svn --encoding=latin1 --dump-only --dumpfile=$P.svn $CVSROOT/$P
svnadmin load --parent-dir plugins/$P /home/svn/repos/rep <$P.svn

After step 5 I have a corrupt data base. If I try to check out, I get

-bash(15)svn co file:///home/svn/repos/rep
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///home/svn/repos/rep'
svn: Berkeley DB error while opening environment for filesystem
/home/svn/repos/rep/db:
DB_RUNRECOVERY: Fatal error, run database recovery
svn: bdb: fatal region error detected; run recovery

db_recover gives:
-bash(16)db_recover -vh /home/svn/repos/rep/db
db_recover: Finding last valid log LSN: file: 11 offset 625487
db_recover: Recovery starting from [1][28]
db_recover: Recovery complete at Sun Sep 12 09:52:11 2004
db_recover: Maximum transaction ID 800025ea Recovery checkpoint [11][625487]
db_recover: Recovery complete at Sun Sep 12 09:52:11 2004
db_recover: Maximum transaction id 80000000 Recovery checkpoint [11][625487]

After the recovery, the DB seems to be in a usable state, I can check
out without error and the working copy seems to be OK.

What can the problem be? Can it even be related to cvs2svn? A search on
this list didn't give me a hint.

I ran a cross check with fsfs file system, which worked without problems.

The error happens with both 1.1.0rc2 and a svn build from svn repository
as of last thursday.

The repository is on a Linux box, Kernel 2.6.7 and Reiser FS.

Any hint appreciated.

Wolfgang

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Sep 12 10:28:33 2004

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