You are not logged in.

#1 2010-10-31 22:20:21

frojnd
Member
Registered: 2008-09-20
Posts: 125

[solved] Subversion setup problem

Hello there.

For some reason I need to have subversion installed, configured and working on my server. Something is wrong with my settings because I can't svn co I allaways get:

svn: OPTIONS of 'https://192.168.0.45/podatki/svn/repositories/tint': 200 OK (https://192.168.0.45)

Things I know are working: https (SSL)

I've followed this guide: https://wiki.archlinux.org/index.php/Svn I've decided that I'll go with subversion with apache2 option.

Testing if modules are loaded: cat /etc/httpd/conf/httpd.conf | grep -E 'mod_dav|mod_authz_svn|httpd-ssl'

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
Include /etc/httpd/conf/extra/httpd-ssl.conf

SSL settings: /etc/httpd/conf/extra/httpd-ssl.conf

<Location /svn>
   DAV svn
   SVNParentPath /podatki/svn/repositories
   AuthzSVNAccessFile /podatki/svn/.svn-policy-file
   AuthName "SVN Repositories"
   AuthType Basic
   AuthUserFile /podatki/svn/.svn-auth-file
   Satisfy Any
   Require valid-user
</Location>

.svn-policy-file: /podatki/svn/.svn-policy-file

[/]
* = r

[tint:/]
cloud = rw

.svn-auth-file /podatki/svn/.svn-auth-file

htpasswd -cs /podatki/svn/.svn-auth-file cloud

creating repository:

svnadmin create /podatki/svn/repositories/tint

Setting permissions:
chown -R http.http /podatki/svn/repositories/tint

detailed output for permissions:
ls -la /podatki/

drwxr-xr-x   3 frojnd users  4096 Oct 31 21:59 svn

ls -la /podatki/svn/

drwxr-xr-x 3 frojnd users 4096 Oct 31 21:59 .
drwxr-xr-x 7 frojnd users 4096 Oct 31 21:49 ..
-rw-r--r-- 1 frojnd users   40 Oct 31 22:00 .svn-auth-file
-rw-r--r-- 1 frojnd users   31 Oct 31 21:58 .svn-policy-file
drwxr-xr-x 3 frojnd users 4096 Oct 31 22:00 repositories

ls -la /podatki/svn/repositories/

drwxr-xr-x 3 frojnd users 4096 Oct 31 22:00 .
drwxr-xr-x 3 frojnd users 4096 Oct 31 21:59 ..
drwxr-xr-x 6 http   http  4096 Oct 31 22:00 tint

ls -la /podatki/svn/repositories/tint/

drwxr-xr-x 6 http   http  4096 Oct 31 22:00 .
drwxr-xr-x 3 frojnd users 4096 Oct 31 22:00 ..
-rw-r--r-- 1 http   http   229 Oct 31 22:00 README.txt
drwxr-xr-x 2 http   http  4096 Oct 31 22:00 conf
drwxr-sr-x 6 http   http  4096 Oct 31 22:00 db
-r--r--r-- 1 http   http     2 Oct 31 22:00 format
drwxr-xr-x 2 http   http  4096 Oct 31 22:00 hooks
drwxr-xr-x 2 http   http  4096 Oct 31 22:00 locks

Any clue what I might forgot or made wrong?

Last edited by frojnd (2010-11-04 20:26:25)

Offline

#2 2010-11-01 10:06:56

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: [solved] Subversion setup problem

Thanx to augustl I know access the correct path: svn co https://192.168.0.45/svn/repositories/tint but I have a different error now:

svn: Could not open the requested SVN filesystem

Offline

#3 2010-11-01 23:08:27

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: [solved] Subversion setup problem

It could not open because of this: <Location /svn> the real address is: https://192.168.0.45/svn/tint And that's it.

Offline

Board footer

Powered by FluxBB