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

Re: apache setup problems

From: Mark Bohlman <mbohlman_at_tcicredit.com>
Date: 2005-02-12 02:23:04 CET

Robert J. Carr wrote:
> I'm trying to get apache to serve my repositories, but I'm having some
> problems setting it up. I'm using this:
>
> http://svnbook.red-bean.com/en/1.1/ch06s04.html
>
> as my resource. Here's the situation.
>
> I have apache2 setup and it has been serving a trac environment for
> sometime. The trac environment can hook-up to the SVN repositories just
> fine. Currently the repositories are being served with the svnserve
> daemon.
>
> Following the above resource, I'm loading in the required modules with:
>
> LoadModule dav_module modules/mod_dav.so
> LoadModule dav_svn_module modules/mod_dav_svn.so
>
> And that seems to be fine.
>
> My SVN is setup on a multi-project basis, so here would be the filesystem:
>
> /data/svn/projects/projectOne
> /data/svn/projects/projectTwo
>
> Let's say one of my projects is 'scratch'. In the conf file, I have:
>
> <Location /svn>
> DAV svn
> SVNParentPath /data/svn/projects
> </Location>
>
> So to check out a project, I issue:
>
> svn co http://server/svn/scratch
>
> And it hangs for about 10 seconds, and gives this error:
>
> svn: PROPFIND request failed on '/svn/scratch'
> svn:
> Could not open the requested SVN filesystem
>
> And in apache, it gives this error:
>
> [Thu Feb 10 15:22:23 2005] [error] [client 128.95.76.130] (20014)Error
> string not specified yet: Berkeley DB error while opening environment
> for filesystem /data/svn/projects/scratch/db:\nResource temporarily
> unavailable
> [Thu Feb 10 15:22:23 2005] [error] [client 128.95.76.130] Could not
> fetch resource information. [500, #0]
> [Thu Feb 10 15:22:23 2005] [error] [client 128.95.76.130] Could not open
> the requested SVN filesystem [500, #160029]
>
> I've poked around and all roads lead to permissions. Here's how it is
> currently set up:
>
> o svn filesystem tree owned and group owned by user 'svn'
> o all files in this tree have 777 permissions
> o apache is run under user 'apache' group 'apache'
> o 'apache' is a member of the group 'svn'
>
> I've also tried these things in trouble shooting:
>
> o chmod 775 to entire svn tree
> o run apache as user 'svn' group 'svn'
>
> I thought for a second the problem could be that I'm concurrently
> running svnserve, but I shut that down and restarted apache, and no
> luck, same error.
>
> Sorry this is so long but I wanted to get the entire setup in here as
> well as my troubleshooting steps.
>
> Any and all help is appreciated.
>
> Regards-
> Robert
>
>
Can you post an ls -l for the repositories db directory? I also
recently had a troublesome repository that turned out to be permissions
and only on a bdb created repositories (fsfs did not have similar
problems) as I forgot that doing an svnadmin recover removed permissions
I needed on the db files.

-- Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Feb 12 02:27:04 2005

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

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