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

Notices

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

Rep: Reputation: 0
Apache SVN Problem


Synopsis:
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:
Quote:
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):
Quote:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /repos>
DAV svn
SVNParentPath /foobar/svn/repos
</Location>
10. service httpd restart
11. Goto http://localhost/repos/myproject which results in
Quote:
<D:error>
<C:error/>
<m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>
12. View /var/log/httpd/error_log
Quote:
[Sat Mar 22 16:48:14 2008] [error] [client 127.0.0.1] (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 127.0.0.1] Could not fetch resource information. [500, #0]
[Sat Mar 22 16:48:14 2008] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #2]
[Sat Mar 22 16:48:14 2008] [error] [client 127.0.0.1] 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
moman
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.

Quote:
<Location /repos>
DAV svn
SVNPath /mnt/edata/Servers/svn/repos
</Location>
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
prii
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
Hello!
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.
 
  


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
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


All times are GMT -5. The time now is 09:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration