SVNForum.org Forum Index FAQFAQ SearchSearch MemberlistMemberlist RegisterRegister Log inLog in

Download Subversion 1.6.12: Free Subversion TrainingWindows - Free Subversion TrainingCentOS 5 - Free Subversion TrainingRedhat Enterprise Linux 5 - Free Subversion TrainingUbuntu 9/10.04 - Free Subversion TrainingDebian Lenny (5)

Free Subversion Training: Free Subversion TrainingAll About Subversion Hook Scripts Free Subversion TrainingSubversion Locking Free Subversion TrainingAll About Checkouts
 
configuration with SVNPath works, with SVNParentPath not :(

 
Post new topic   Reply to topic    SVNForum.org Forum Index -> General Setup & Troubleshooting
View previous topic :: View next topic  
Author Message
Goddchen



Joined: 05 Feb 2007
Posts: 3

PostPosted: Mon Feb 05, 2007 5:40 pm    Post subject: configuration with SVNPath works, with SVNParentPath not :( Reply with quote

hi, i have a strange problem Sad i'm now trying to set up svn on my vserver for a week and can't get it to work.

here is the situation:

i created a directory /usr/local/svns
in there i created a svn repo "test-svn"

so now i insert SVNPath /usr/local/svns/test-svn in my http.conf i can access the svn via http
when i change that line to SVNParentPath /usr/local/svns i can only check the svn out but when i try to commit something i get:

Quote:

Adding: Desktop\est-svn\Neu Textdokument (2).txt
Error: Commit failed (details follow):
Error: PROPFIND request failed on '/test-svn/Neu%20Textdokument%20(2).txt'
Error: Could not open the requested SVN filesystem

and apache log sais
Quote:

[Mon Feb 05 22:27:36 2007] [error] [client 89.14.121.170] (20014)Error string not specified yet: Can't open file '/usr/local/svns/error/format': No such fil$
[Mon Feb 05 22:27:36 2007] [error] [client 89.14.121.170] Could not fetch resource information. [500, #0]
[Mon Feb 05 22:27:36 2007] [error] [client 89.14.121.170] Could not open the requested SVN filesystem [500, #2]
[Mon Feb 05 22:27:36 2007] [error] [client 89.14.121.170] Could not open the requested SVN filesystem [500, #2]


in the first case ( with SVNPath ) i can commit... so it's not a permission issue Sad

i just can't figure it out Sad

i want to use multiple svns so i have to use SVNParentPath.

Gr33tz Goddchen
Back to top
View user's profile Send private message
kama



Joined: 31 Jan 2005
Posts: 1102
Location: Würselen - Germany

PostPosted: Tue Feb 06, 2007 11:24 am    Post subject: Reply with quote

Hi,

how does your Apache Config (<location>-Area) looks like?
and what about your svnaccess.conf ?

Kind Regards.
Karl Heinz Marbaise
_________________
SoftwareEntwicklung Beratung Schulung
Web: www.soebes.de
Mail: info@soebes.de
Software Configuration Management Wiki
Subversion Repository Search Engine (SupoSE)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Goddchen



Joined: 05 Feb 2007
Posts: 3

PostPosted: Tue Feb 06, 2007 5:42 pm    Post subject: Reply with quote

ok, here is an update of the situation Wink

i created a repo namen "error" under /usr/local/svns and everything works fine Razz dunno why, and i don't think that this is a good solution so i would realy like to solve the problem.

here is my httpd.conf part...

Quote:

<Location />
Allow from All
DAV svn
SVNParentPath /usr/local/svns/
</Location>


and where should that svnaccess.conf be? a can only find a subversion.conf

Gr33tz
Back to top
View user's profile Send private message
andre



Joined: 12 Mar 2007
Posts: 2

PostPosted: Mon Mar 12, 2007 12:41 am    Post subject: Exact Same Problem Reply with quote

I'm having the exact same problem. I have essentially duplicated this 'bug'.

Configuring location to use svnparentpath allows me to checkout, commit a change to an existing file, but not commit something new that has been added.

svn: Commit failed (details follow):
svn: PROPFIND request failed on '/test/trunk/test2.txt'
svn: Could not open the requested SVN filesystem

Location directive looks like...
<Location / >
DAV svn
# SVNPath /data/svn/test
SVNParentPath /data/svn

# Authorization BASIC
AuthType Basic
AuthName "svn"
AuthUserFile /foo/authfile
Require valid-user

</Location>


Configuring location to use svnpath allows me to do everything including checking in a newly added file.

Has anyone else experienced this and/or figured it out?

andre
Back to top
View user's profile Send private message
andre



Joined: 12 Mar 2007
Posts: 2

PostPosted: Mon Mar 12, 2007 2:19 am    Post subject: Figured it out Reply with quote

First - what I did wrong:
I was setting this all up in a virtual host

<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName svn.example.com
<Location / >
Dav svn
SVNParentPath /data/svn/
#other
#stuff
</Location>
</VirtualHost>

And I was attempting to work on http://svn.example.com/somerepo/

Checking out works. So does committing changes to existing docs... but when trying to add something new - the commit would fail (as per my previous message).

The problem:
For reasons I do not completely understand <Location / > won't work.
(I'm sure some apache directives / mod_dav expert may be able to explain why).

The solution:
It appears YOU MUST provide a location 'path' that is something other than root ("/"). e.g. <Location /foo>. And therefore you must request from http://svn.example.com/foo/somerepo.

With all that in mind the new httpd.conf would look like this

<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName svn.example.com
<Location /foo >
Dav svn
SVNParentPath /data/svn/
#other
#stuff
</Location>
</VirtualHost>

svn commit https://svn.example.com/foo/somerepo will work.

Of course this configuration is precisely what the documentation says to do. But, trying to be clever and have cleaner urls I thought I could cheat and not have to supply a trailing argument in my URL and specify location to be the root of svn.example.com. Apparently a bad idea.

andre
Back to top
View user's profile Send private message
Goddchen



Joined: 05 Feb 2007
Posts: 3

PostPosted: Mon Mar 12, 2007 4:02 am    Post subject: Reply with quote

hm cool, you solved it Wink but i will leave it the way it's now with the "error"-repository because i realy want to have this clean url.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Post new topic   Reply to topic    SVNForum.org Forum Index -> General Setup & Troubleshooting All times are GMT - 4 Hours
Page 1 of 1
Display posts from previous:   
Google
 
Web SVNForum.org