Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-22-2008, 04:00 PM   #1
LQ Newbie
Registered: Nov 2006
Posts: 4

Rep: Reputation: 0
Apache SVN Problem

Trying to view SVN Repo via HTTP does not work, all local (command line) svn operations succeed.

Steps to reproduce:
1. Install Fedora 8 (x86, vanilla config, nothing fancy)
2. yum install apache subversion mod_dav_svn
3. mkdir /foobar/svn/ # replace foobar w/ a valid path
4. svnadmin create /foobar/svn/repos
5. cd MyWorkspace/
6. svn import myproject file:///foobar/svn/repos/myproject
7. Set correct permissions and ownership:
chown -R apache.apache /foobar/svn/repos
chmod -R 755 /foobar/svn/repos
(/foobar and /foobar/svn directories are is world readable/executable)
(most solutions I found on the internet said to do this, but it still does not work for me)
7. cd /tmp
8. svn co file:///foobar/svn/repos/myproject # succeeds
9. edit /etc/httpd/conf.d/subversion.conf (gets imported into main apache config httpd.conf):
LoadModule dav_svn_module modules/
LoadModule authz_svn_module modules/
<Location /repos>
DAV svn
SVNParentPath /foobar/svn/repos
10. service httpd restart
11. Goto http://localhost/repos/myproject which results in
<m:human-readable errcode="2">
Could not open the requested SVN filesystem
12. View /var/log/httpd/error_log
[Sat Mar 22 16:48:14 2008] [error] [client] (20014)Internal error: Can't open file '/foobar/svn/repos/myproject/format': No such file or directory
[Sat Mar 22 16:48:14 2008] [error] [client] Could not fetch resource information. [500, #0]
[Sat Mar 22 16:48:14 2008] [error] [client] Could not open the requested SVN filesystem [500, #2]
[Sat Mar 22 16:48:14 2008] [error] [client] Could not open the requested SVN filesystem [500, #2]

I'm all out of ideas. As previously mentioned the overwhelming majority of threads/posts about this topic deal with permissions but I am 100% positive all the files/directories in /foobar/svn/repos (inclusive) are rwx by apache. I'm not sure why the error log indicates it is trying to use myproject name as a directory. Simply trying togoto 'http://localhost/repos' results in a "403 access denied" and a message in the log saying the repository name must be specified in the url (as it should).

I'm really lost on this one, so I'm hoping one of the LinuxQuestions Gurus could help me out. Thanks alot!
Old 03-22-2008, 05:48 PM   #2
LQ Newbie
Registered: Nov 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Problem solved. This was due to my misunderstanding of the SVN repositories (long time user, first time administrator). The repository defined by 'SVNPath' must be the one created by svnadmin. I thought it was the 'repo' name of the project, eg 'myproject' which I imported (under which trunk, tags, branches exist). It seems the root cause of the misunderstanding is a naming issue where a single repository named 'repos' is used to host multiple projects ('myproject' being the first). Changing the httpd svn configuration to this fixes the problem.

<Location /repos>
DAV svn
SVNPath /mnt/edata/Servers/svn/repos
So I suppose the actual problem is solved as I can now check out my code via apache, but I'm curious as to the actual naming conventions people use, especially when doing what I am trying to do. Does it make sense to keep the repository name 'repos'? (I am planning on adding additional projects besides 'myproject' in the future)
Old 06-28-2011, 04:58 AM   #3
LQ Newbie
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
I have a question, do you have a folder /path/to/Repos journey
thanks to

Last edited by prii; 06-28-2011 at 04:59 AM.


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
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
Apache not forwarding to SVN server ishaqmalik Linux - Enterprise 2 06-06-2007 03:09 AM
svn with apache jmkelm08 Linux - Networking 1 05-02-2006 03:05 PM
SVN and Apache, multiple password prompts watsoncj Linux - Software 0 10-10-2005 01:36 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:50 PM.

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