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

Re: Problem when setting SVN by using Apache2

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-08-06 19:19:11 CEST

On Aug 6, 2007, at 12:06, Xell Zhang wrote:

> I have compiled and installed SVN 1.4.4 and want to configure it to
> run by using apache2. (On Ubuntu 7.04)
> I followed the book <Version Control with Subversion> and apache2
> successfully started up with svn mods. My configuration in
> httpd.conf is like below:
> <Location /svn>
> DAV svn
> SVNParentPath /var/svnroot
> SVNListParentPath on
> AuthType Basic
> AuthName "Subversion repository"
> AuthUserFile /etc/svn-auth-file
> Require valid-user
> </Location>
> My apache is started as apache:apache user so I change the owner
> of /var/svnroot from root to apache.apache.
> Then I use:
> svn import dummy.test http://localhost:8088/svn/test -m "test"
> to create the very first test. But after I input the password I got:
> svn: PROPFIND request failed on '/svn/test'
> svn: Could not open the requested SVN filesystem
> In apache2 error logs I found:
> [Tue Aug 07 01:00:02 2007] [error] [client] (20014)
> Internal error: Can't open file '/var/svnroot/test/format': No such
> file or directory
> [Tue Aug 07 01:00:02 2007] [error] [client] Could not
> fetch resource information. [500, #0]
> [Tue Aug 07 01:00:02 2007] [error] [client ] Could not
> open the requested SVN filesystem [500, #2]
> [Tue Aug 07 01:00:02 2007] [error] [client] Could not
> open the requested SVN filesystem [500, #2]
> Then I use:
> sudo svnadmin create /var/svnroot/dummy
> It seems successful to create a repository because in my browser
> when I visit " http://localhost:8088/svn/dummy" I can get a page of
> which content is like:
> Revision 0: /Powered by Subversion version 1.4.4 (r25188).
> So I don't know why I cannot import a file. I google this for a
> long time but cannot find useful information...
> Thanks for helping!

When you use "SVNParentPath /var/svnroot" you are informing
Subversion that you would like to host multiple repositories under
that directory. Each repository must be created with "svnadmin
create" before it can be used. You created a repository called
"dummy" and were able to access it just fine. You should be able to
import into it too. You were not able to import into the "test"
repository because it doesn't sound like you ever "svnadmin create"d
a test repository.

If you would prefer to have just a single repository, then you would
use "SVNPath /var/svnroot" and you would "svnadmin create" just the
single repository /var/svnroot.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 6 19:18:24 2007

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.