Page 1 of 1
SOLVED: Apache SVN Config Problem
Posted: Tue Jan 27, 2015 12:04 am
by khoji
The Apache SVN configuration instructions on the Amahi Wiki appear to be out of date so I'm just doing a non-webapp install based on these instructions here:
http://www.if-not-true-then-false.com/2 ... -hat-rhel/
Almost everything went fine. I can log into the test repository with a web browser and it queries the user credentials correctly and shows an empty repo on revision 0. But I run into a wall on the creation of the repository folders with the command:
Code: Select all
svn import -m 'Initial import' /tmp/svn-structure-template/ http://localhost/svn/testrepo/
It prompts correctly for the user credentials, but then I get the error:
svn: E160013: '/svn/testrepo/!svn/me' path not found
Originally, it told me that it couldn't read the configuration line with the same strange path reference, but that went away when I chmodded the entire repo to g+w so that the group had write permissions, which I had hoped was the problem.
Any ideas what is causing this?
Re: Apache SVN Config Problem
Posted: Tue Jan 27, 2015 6:28 am
by bigfoot65
Hard to say. Could it be the special character in the path?
Re: Apache SVN Config Problem
Posted: Tue Jan 27, 2015 6:52 am
by khoji
Hard to say. Could it be the special character in the path?
Not in any paths that I created or referenced. That's what makes it strange.
However, I just discovered the solution: For some reason Apache also needs an alias to the repository location, in addition to the SVNParentPath reference in the <Location> tag. It needs to be added to the subversion.conf file just before the <Location block, like this:
Code: Select all
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule dontdothat_module modules/mod_dontdothat.so
alias /svn /var/www/svn
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
This is a little strange, because I thought that this would be handled by the Location block: the /svn in the opening tag provides the subdirectory in the URL and SVNParentPath provdes the DAV reference for the actual location on the disk.
Re: SOLVED: Apache SVN Config Problem
Posted: Tue Jan 27, 2015 7:52 am
by bigfoot65
Ah, that makes perfect sense. Sorry I did not see that. This is normal for Apache.
If you have time and are willing, please update the wiki guidance. There will be other users who are trying to do the same thing.
Re: SOLVED: Apache SVN Config Problem
Posted: Wed Jan 28, 2015 12:02 am
by khoji
If you have time and are willing, please update the wiki guidance. There will be other users who are trying to do the same thing.
I don't think I should do that because that's not the method I used. The wiki explains how to set up svn as an Amahi webapp, which doesn't work for me at the moment since I'm not using Amahi's DNS and DHCP, for a number of reasons. I used the instructions on this site to set up vanilla Apache SVN on Amahi's Fedora 19:
http://www.if-not-true-then-false.com/2 ... -hat-rhel/
These instructions work fine on the current Amahi as long as you add the alias. Maybe someone familiar with the webapp approach on the wiki could check whether something needs to be changed there as well...
![Cool 8-)](./images/smilies/icon_cool.gif)
Re: SOLVED: Apache SVN Config Problem
Posted: Wed Jan 28, 2015 5:07 am
by bigfoot65
Understand.
Is it possible for you to add the reference you used and maybe some info that might help others who would perform this setup? Your experience would be beneficial, especially for those who have the same network configuration as you do.
Re: SOLVED: Apache SVN Config Problem
Posted: Wed Jan 28, 2015 6:32 am
by khoji
Is it possible for you to add the reference you used and maybe some info that might help others who would perform this setup? Your experience would be beneficial, especially for those who have the same network configuration as you do.
I just tried that and spent quite a while setting up a wiki account and waiting for confirmation. Now it just got rejected so I guess that's that...
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
Re: SOLVED: Apache SVN Config Problem
Posted: Wed Jan 28, 2015 7:03 am
by bigfoot65
Please reapply and mention I asked you to contribute to the wiki. The reject was likely due to SPAM prevention.
I will monitor and approve it once you reapply.
Re: SOLVED: Apache SVN Config Problem
Posted: Wed Jan 28, 2015 9:21 am
by khoji
Thanks! Done.