LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2010, 11:08 PM   #1
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Rep: Reputation: 15
Question subversion giving crazy errors when using web dav with apache 2


Hi,
I am trying to make a subversion system on my linux box using web dav and apache2.
I currently have a subdomain of my website for this purpose.
I have the virtual host file to what I think it should be, but when I go to the url I get this:
Code:
* 

<?xml version="1.0" encoding="utf-8" ?> 

- 
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">* 

<C:error /> * 

<m:human-readable errcode="2">Could not open the requested SVN filesystem</m:human-readable> * 

</D:error>
I have the configuration file below:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@mtgames.org 
ServerName <myserveraddress>
ErrorLog /websites/<myserveraddress>logs/error.log 
CustomLog /websites/<myserveraddress>/logs/access.log combined
<Location />
DAV svn
SVNParentPath /websites/<myserveraddress>/svn 
</Location>
<location /test>
AuthType basic
AuthUserFile /websites/<myserveraddress>/<myfile>
Require valid-user
</location> 
</VirtualHost>
Also, if there is a way to use a password for commit, but not for checkout, it would be nice if you could outline how to do that here.
Thanks,
-Michael.
 
Old 01-25-2010, 07:54 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Hm dunno but did you create the svn repos?

Code:
svnadmin create /websites/<myserveraddress>/svn
should do the trick.

Heres the link from the svn documentation.

http://svnbook.red-bean.com/en/1.1/ch06s04.html
 
Old 01-25-2010, 09:30 AM   #3
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: 15
Question

Well, It didn't seem to do anything.
By the way, my /svn path is actually going to be a parent path, for example:
http://svn.myserver.com/test would be one repository, http://svn.myserver.com/programs would be another.
Anyway, still gives the same error.
I will say that I created a /svn/test repository, but it gives the same error with that one when I go to svn.myserver.com/test
I am thinking that I have to install something for svn, but I'm not sure what that would be.
That is, something to interface between web dav and svn.
It was mentioned in the svn documentation I think.
Thanks,
-Michael.
 
Old 01-25-2010, 09:36 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I saw that you do not have any DocumentRoot directive inside your VirtualHost but as apache is giving back errors this does not seem to be that bad?

Quote:
Prerequisites

To network your repository over HTTP, you basically need four components, available in two packages. You'll need Apache httpd 2.0, the mod_dav DAV module that comes with it, Subversion, and the mod_dav_svn filesystem provider module distributed with Subversion. Once you have all of those components, the process of networking your repository is as simple as:

getting httpd 2.0 up and running with the mod_dav module,

installing the mod_dav_svn plugin to mod_dav, which uses Subversion's libraries to access the repository, and

configuring your httpd.conf file to export (or expose) the repository.
Taken from the svn doc under the link I provided in my previous post.
 
Old 01-25-2010, 10:07 AM   #5
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: 15
Ok.
Now when I create a repository, /websites/<myserver>/svn, then go to http://svn.myserver.com/, it shows the /svn repository.
Then, when I remove that svn repository, and instead create one called /svn/test, it fails both when going to http://svn.myserver.com/ and http://svn.myserver.com/test.
This is what I want:
I need it to (1) not show an error when going to the root of svn.myserver.com (if possible), and (2) work with /test and others, even when there is no root svn repository.
Any help is appreciated.
-Michael.
 
Old 01-26-2010, 04:43 PM   #6
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: 15
Anyone got any ideas why creating a central svn repos works, but then creating svn/test and going to svn.myserver.com/test doesn't work?
And, is there any other good system I can use to do this instead of web dav?
Thanks,
-Michael.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
subversion + debian + dav + apache = 500 Internal Server Error brgsousa Linux - Software 6 10-09-2009 06:19 AM
Subversion (DAV/Apache) and password lil_drummaboy Linux - Networking 2 07-24-2008 12:36 AM
compiling apache with dav for subversion linuxmandrake SUSE / openSUSE 0 09-17-2007 01:41 PM
LXer: How To Configure Web Access To Subversion Repositories Using Apache LXer Syndicated Linux News 0 03-14-2007 04:01 PM
apache web dav paul_mat Linux - Networking 0 03-19-2006 05:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration