You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by pe...@frameweb.it on 2007/05/30 16:41:37 UTC

Problems with apache dav setup

Hallo,

i'm having troubles with setting up subversion with apache/webdav.
I did read the chapters in both the svn_book and the Subversion book by
W. Nagel about how to install subversion under linux and make it work
with apache, but it seems i'm missing something basic in the setup of
the webdav part.

First of all I'm running OpenSuse 10.2, and installed subversion with
yast2 on a machine having an already running apache 2.2.3

Starting from the bottom: I did set up all the needed files

/etc/sysconfig/apache2
/etc/apache2/sysconfig.d/loadmodule.conf
/etc/apache2/conf.d/subversion.conf

repositories are in /srv/svn/repos/public
<Location> is set up accordingly
AuthUserFile and AuthGroupFile have been created with htpasswd2

made a chown wwwrun:www -R on /srv/svn

all seems ok, if i do an svn import with url file:///......
all works smoothly
If i use svn import http://srvname/public/appname
I get the following error

svn: PROPFIND request failed on '/public/crm'
svn: Can't set position pointer in file
     '/srv/svn/repos/public/appname/db/revs/1': Invalid argument

I just can't figure out where is my fault...
I already tried to uninstall and reinstall subversion, to change
the setup for <Location>, to play with all these files but the error
is always the same.

Is there anyone that can point me in the right direction in order to
solve this problem?

TIA & BRGDS

Francesco

Chi ricevesse questa mail per errore e' gentilmente pregato di cancellarla.

Visitate il sito http://www.frameweb.it

Re: Problems with apache dav setup

Posted by Ramanathan Muthaiah <ru...@gmail.com>.
> /srv/svn/conf/public_default_policy.conf contains
>
> <Location /public>
>         Dav svn
>         SVNParentPath /srv/svn/repos/public
>         <LimitExcept GET PROPFIND OPTIONS REPORT>
>             Order deny,allow
>             Deny from all
>             Allow from 192.168.69.0/24
>             Satisfy all
>         </LimitExcept>
> </Location>

I think, SVNParentPath should point to the root of the folder, which
is hosting multiple repos i.e which is acting as placeholder for all
other repos.

Can you change the SVNParentPath as, /srv/svn/repos and then re-try
your operations ?

/Ram

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problems with apache dav setup

Posted by pe...@frameweb.it.

Hi Ram,

I followed a setup explained at http://www.linuxjournal.com/node/7655/print
In particular


/etc/apache2/conf.d/subversion.conf contains

<IfModule mod_dav_svn.c>
Include /srv/svn/conf/mod_dav_svn.conf
</IfModule>

mod_dav_svn.-conf contains

Include /srv/svn/conf/public_default_policy.conf
Include /srv/svn/conf/private_default_policy.conf
Include /srv/svn/conf/policies/public/*
Include /srv/svn/conf/policies/private/*


/srv/svn/conf/public_default_policy.conf contains

<Location /public>
        Dav svn
        SVNParentPath /srv/svn/repos/public
        <LimitExcept GET PROPFIND OPTIONS REPORT>
            Order deny,allow
            Deny from all
            Allow from 192.168.69.0/24
            Satisfy all
        </LimitExcept>
</Location>

/srv/svn/conf/policies/public/crm contains

<Location /public/crm>
        <LimitExcept GET PROPFIND OPTIONS REPORT>
                AuthType Basic
                AuthName "Public Subversion repository for project crm"
                AuthUserFile /srv/svn/conf/svnpasswd
                AuthGroupFile /srv/svn/conf/svngroups
                Require group public_crm
        </LimitExcept>
</Location>

I think this is a bit complex, but the article was the only one i found
with a thorough explanation of why things are set up in that way.

Thank you for help

Francesco

"Ramanathan Muthaiah" <ru...@gmail.com> wrote on 30/05/2007 19.17.36:

> >  repositories are in /srv/svn/repos/public
> >  <Location> is set up accordingly
> >  AuthUserFile and AuthGroupFile have been created with htpasswd2
> >
> >  made a chown wwwrun:www -R on /srv/svn
> >
> >  all seems ok, if i do an svn import with url file:///......
> >  all works smoothly
> >  If i use svn import http://srvname/public/appname
> >  I get the following error
> >
> >  svn: PROPFIND request failed on '/public/crm'
> >  svn: Can't set position pointer in file
> >       '/srv/svn/repos/public/appname/db/revs/1': Invalid
> > argument

> It would help us to know what you have defined in between the
> <Location> directives in httpd.conf

> /Ram

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problems with apache dav setup

Posted by Ramanathan Muthaiah <ru...@gmail.com>.
>  repositories are in /srv/svn/repos/public
>  <Location> is set up accordingly
>  AuthUserFile and AuthGroupFile have been created with htpasswd2
>
>  made a chown wwwrun:www -R on /srv/svn
>
>  all seems ok, if i do an svn import with url file:///......
>  all works smoothly
>  If i use svn import http://srvname/public/appname
>  I get the following error
>
>  svn: PROPFIND request failed on '/public/crm'
>  svn: Can't set position pointer in file
>       '/srv/svn/repos/public/appname/db/revs/1': Invalid
> argument

It would help us to know what you have defined in between the
<Location> directives in httpd.conf

/Ram

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org