[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: Branko Čibej <brane_at_xbc.nu>
Date: 2002-04-11 01:05:15 CEST

Alexis Huxley wrote:

>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
>
...

What are your permssions on /., /var/.; /var/tmp/. and
/var/tmp/svn-repository-test/.? Maybe the apache process can't even
chdir to the repository dir.

Although, doing a local import should work n any case ...

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 11 01:06:13 2002

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