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

Re: svn import fails (almost same problem) + script

From: Alexis Huxley <ahuxley_at_gmx.net>
Date: 2002-04-10 23:51:29 CEST

Following Nathan's suggestion to do what someone said in an
earlier mail:

> Here's what I suggest: try gdb'ing the 'svn import file:///'
> command. Set a breakpoint on split_url.c:74. (If you built your
> client shared, you need to set a breakpoint on main() first, *then*
> set the real breakpoint.)

I got:

(gdb) print *err
$1 = {apr_err = 21081, src_err = 13,
  message = 0x8059c68 "Berkeley DB error while opening environment for
filesystem /var/tmp/svn-repository-test/db:\nPermission denied", child =
0x0,
  pool = 0x8059b40, file = 0x0, line = -1}

Hmmm ... I don't understand; I did the svnadmin, which created the
files belonging to root - the user I'd run it as - then I did a chown
-R nobody:nogroup to give them away to the web server runner uid/gid
(verified id from ps listing and httpd.conf).

As Ben mentioned someone else had been able to do,
I too can do creates without problem, but the import does't work.

Short of patching the code is there anyway to get it tell me who *it*
thinks its running as? :-)

My repository looks like this:

/var/tmp/svn-repository-test/:
total 24
drwxr-xr-x 2 nobody nogroup 4096 Apr 10 22:28 locks
drwxr-xr-x 2 nobody nogroup 4096 Apr 10 22:28 hooks
drwxr-xr-x 2 nobody nogroup 4096 Apr 10 22:28 db
drwxr-xr-x 2 nobody nogroup 4096 Apr 10 22:28 dav
drwxr-xr-x 2 nobody nogroup 4096 Apr 10 22:28 conf
-rw-r--r-- 1 nobody nogroup 285 Apr 10 22:28 README

/var/tmp/svn-repository-test/locks:
total 4
-rw-r--r-- 1 nobody nogroup 460 Apr 10 22:28 db.lock

/var/tmp/svn-repository-test/hooks:
total 20
-rw-r--r-- 1 nobody nogroup 101 Apr 10 22:28 write-sentinels.tmpl
-rw-r--r-- 1 nobody nogroup 1117 Apr 10 22:28 start-commit.tmpl
-rw-r--r-- 1 nobody nogroup 99 Apr 10 22:28 read-sentinels.tmpl
-rw-r--r-- 1 nobody nogroup 1163 Apr 10 22:28 pre-commit.tmpl
-rw-r--r-- 1 nobody nogroup 1098 Apr 10 22:28 post-commit.tmpl

/var/tmp/svn-repository-test/db:
total 544
-rw-r--r-- 1 nobody nogroup 8192 Apr 10 22:28 transactions
-rw-r--r-- 1 nobody nogroup 8192 Apr 10 22:28 strings
-rw-r--r-- 1 nobody nogroup 8192 Apr 10 22:28 revisions
-rw-r--r-- 1 nobody nogroup 8192 Apr 10 22:28 representations
-rw-r--r-- 1 nobody nogroup 8192 Apr 10 22:28 nodes
-rw-r--r-- 1 nobody nogroup 44369 Apr 10 22:28 log.0000000001
-rw-r--r-- 1 nobody nogroup 16384 Apr 10 22:28 __db.005
-rw-r--r-- 1 nobody nogroup 360448 Apr 10 22:28 __db.004
-rw-r--r-- 1 nobody nogroup 327680 Apr 10 22:28 __db.003
-rw-r--r-- 1 nobody nogroup 270336 Apr 10 22:28 __db.002
-rw-r--r-- 1 nobody nogroup 8192 Apr 10 22:28 __db.001

/var/tmp/svn-repository-test/dav:
total 0

/var/tmp/svn-repository-test/conf:
total 0

Anybody got any ideas what to try next? Thanks!

Alexis

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 10 23:52:25 2002

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.