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:
> 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
> 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:
> Let's say one of my projects is 'scratch'. In the conf file, I have:
> <Location /svn>
> DAV svn
> SVNParentPath /data/svn/projects
> 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'
> Could not open the requested SVN filesystem
> And in apache, it gives this error:
> [Thu Feb 10 15:22:23 2005] [error] [client 126.96.36.199] (20014)Error
> string not specified yet: Berkeley DB error while opening environment
> for filesystem /data/svn/projects/scratch/db:\nResource temporarily
> [Thu Feb 10 15:22:23 2005] [error] [client 188.8.131.52] Could not
> fetch resource information. [500, #0]
> [Thu Feb 10 15:22:23 2005] [error] [client 184.108.40.206] 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.
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.
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Sat Feb 12 02:27:04 2005