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

Re: subversion 1.1.0 checkin crashes - repo needs recovery

From: Martin MAURER <martin.maurer_at_email.de>
Date: 2004-10-20 18:23:47 CEST

Hi, well i did a lot of further tests.

First of all: the problem is solveable by dumping and loading the
repository. So it isnt really an issue for me personally. Just wanted to
let you know about this.

when i make a checkout and modify any file, then the next checkin fails.
so the problem seems to be on the repository side.

i added the output of the permissions of the repo
at the bottom of this mail.

using sudo svn ci doesnt solve the problem. (dont know if it should if
there were permission problems)

i added some some answers below.
any further info you need ?

On Wed, 2004-10-20 at 09:59 -0400, John Peacock wrote:
> Martin MAURER wrote:
>
> > I am using version 1.1.0 with a bdb backend.
> > access method file://
> > Recently when i tried to check in some changes i got a crash.
> > backtrace follows:
>
> Just to clear up a few things before anyone else can dive deeper:
>
> 1) file:// access is primarily useful for single user access; if
> multiple uid's need access to the repository you are much more likely to
> have problems with setting the ownership and umask correctly. svnserve
> is much easier to manage correctly and can be bound to the loopback
> address for additional security.
I use this repository only for a daily backup. it is always the same
user who accesses it.

>
> 2) Just to confirm, BDB files cannot be accessed safely on any networked
> harddrive (e.g. NFS, SAMBA, NT mounts) because of the way that BDB
> manages shared access using a memory mapped region. This is not a
> limitation of FSFS repositories (though there are issues with large
> repository under NTFS, due to the number of files created).
ok. not networked either.

>
> 3) You need to tell us the OS and other information about your environment.
linux
bdb 4.2.52
debian stable, with apache, bdb and subversion compiled from their
sources. apache 2.0.52

"svnadmin, version 1.1.0 (r11180)
   compiled Oct 6 2004, 15:32:18"

>
> 4) After checking to see that the file ownership is consistent
> (especially that the log files must be r/w by the user accessing the
> repository, and preferrably owned by that user), did you run
>
> svnadmin recover REPOS_PATH
>
> and what did it say?
Repository lock acquired.
Please wait; recovering the repository may take some time...

Recovery completed.
The latest repos revision is 212.

looks ok for me.

now i add the log of ls -alR REPOS
(REPOS=SVN_DATABASES)

SVN_DATABASES/:
total 36
drwxrwxr-x 7 lonestar lonestar 4096 Mar 2 2004 .
drwxr-sr-x 5 lonestar lonestar 4096 Oct 20 17:32 ..
-rw-rw-r-- 1 lonestar lonestar 376 Mar 2 2004 README.txt
drwxrwxr-x 2 lonestar lonestar 4096 Mar 2 2004 conf
drwxrwxr-x 2 lonestar lonestar 4096 Mar 2 2004 dav
drwxrwxr-x 2 lonestar lonestar 4096 Oct 20 17:52 db
-rw-rw-r-- 1 lonestar lonestar 2 Mar 2 2004 format
drwxrwxr-x 2 lonestar lonestar 4096 Mar 2 2004 hooks
drwxrwxr-x 2 lonestar lonestar 4096 Mar 2 2004 locks

SVN_DATABASES/conf:
total 12
drwxrwxr-x 2 lonestar lonestar 4096 Mar 2 2004 .
drwxrwxr-x 7 lonestar lonestar 4096 Mar 2 2004 ..
-rw-rw-r-- 1 lonestar lonestar 1097 Sep 1 13:40 svnserve.conf

SVN_DATABASES/dav:
total 8
drwxrwxr-x 2 lonestar lonestar 4096 Mar 2 2004 .
drwxrwxr-x 7 lonestar lonestar 4096 Mar 2 2004 ..

SVN_DATABASES/db:
total 158620
drwxrwxr-x 2 lonestar lonestar 4096 Oct 20 17:52 .
drwxrwxr-x 7 lonestar lonestar 4096 Mar 2 2004 ..
-rw-rw-r-- 1 lonestar lonestar 1738 Mar 2 2004 DB_CONFIG
-rw-r--r-- 1 lonestar lonestar 8192 Oct 20 17:52 __db.001
-rw-r--r-- 1 lonestar lonestar 270336 Oct 20 17:52 __db.002
-rw-r--r-- 1 lonestar lonestar 327680 Oct 20 17:52 __db.003
-rw-r--r-- 1 lonestar lonestar 737280 Oct 20 17:52 __db.004
-rw-r--r-- 1 lonestar lonestar 16384 Oct 20 17:52 __db.005
-rw-rw-r-- 1 lonestar lonestar 503808 Oct 20 17:52 changes
-rw-rw-r-- 1 lonestar lonestar 8192 Oct 20 17:52 copies
-rw-rw-rw- 1 lonestar lonestar 1046151 Oct 20 02:03 log.0000002288
-rw-rw-rw- 1 lonestar lonestar 1048320 Oct 20 02:04 log.0000002289
-rw-rw-rw- 1 lonestar lonestar 193693 Oct 20 17:52 log.0000002290
-rw-rw-r-- 1 lonestar lonestar 430080 Oct 20 17:52 nodes
-rw-rw-r-- 1 lonestar lonestar 1568768 Oct 20 17:52 representations
-rw-rw-r-- 1 lonestar lonestar 16384 Oct 20 17:52 revisions
-rw-rw-r-- 1 lonestar lonestar 156635136 Oct 20 17:52 strings
-rw-rw-r-- 1 lonestar lonestar 73728 Oct 20 17:52 transactions
-rw-rw-r-- 1 lonestar lonestar 8192 Oct 20 17:52 uuids

SVN_DATABASES/hooks:
total 28
drwxrwxr-x 2 lonestar lonestar 4096 Mar 2 2004 .
drwxrwxr-x 7 lonestar lonestar 4096 Mar 2 2004 ..
-rw-rw-r-- 1 lonestar lonestar 1411 Mar 2 2004 post-commit.tmpl
-rw-rw-r-- 1 lonestar lonestar 1475 Mar 2 2004
post-revprop-change.tmpl
-rw-rw-r-- 1 lonestar lonestar 2216 Mar 2 2004 pre-commit.tmpl
-rw-rw-r-- 1 lonestar lonestar 1952 Mar 2 2004
pre-revprop-change.tmpl
-rw-rw-r-- 1 lonestar lonestar 1500 Mar 2 2004
start-commit.tmpl

SVN_DATABASES/locks:
total 16
drwxrwxr-x 2 lonestar lonestar 4096 Mar 2 2004 .
drwxrwxr-x 7 lonestar lonestar 4096 Mar 2 2004 ..
-rw-rw-r-- 1 lonestar lonestar 295 Mar 2 2004 db-logs.lock
-rw-rw-r-- 1 lonestar lonestar 460 Mar 2 2004 db.lock

Received on Thu Oct 21 19:04:26 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.