Possible Duplicate:
Subversion error: Repository moved permanently to please relocate

I have some trouble with my own subversion server. At web view there is no problem but if anyone wants to checkout via client he gets the following message:

svn: Repository moved permanently to 'XYZ'; please relocate

The shown 'new' location (XYZ) is the exactly same I submit in parameters.

My setup:

<VirtualHost *:80>
        DocumentRoot /var/www/htdocs/svn
        <Directory /var/www/htdocs/svn/>
                Options SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
        <Location /repos/>
                DAV svn
                SVNParentPath /var/www/htdocs/svn/repos
                SVNListParentPath On
                SVNAutoversioning On
                SVNIndexXSLT /svnindex.xsl
                SetOutputFilter DEFLATE
                AuthzSVNAccessFile /var/www/config/svn.authz
                AuthType Basic
                AuthName "Subversion Repository"
                AuthUserFile /var/www/config/svn.passwd
                Require valid-user
                ModMimeUsePathInfo On
        </Location>
</VirtualHost>

Again: I can watch/download my repos/files via webservice but can't checkout via client.

link|improve this question
Hi Shane, it seems so. My fault. – burnersk Oct 24 '11 at 16:56
feedback

closed as exact duplicate by Shane Madden, Ward, Iain, Scott Pack, mailq Oct 24 '11 at 18:16

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

up vote 1 down vote accepted

It looks like /var/www/htdocs/ is the document root of Apache. If so, it is the reason for this behavior because Apache don't know whether to serve the physical path, or pass the request to the mod_dav_svn. The solution is move the root svn to the outside of Apache's document root, for e.g:

<Location /repos/>
    DAV svn
    SVNParentPath /home/svn/repos
    ...
</Location>
link|improve this answer
Thanks quanta, I changed the DocumentRoot to /var/www/htdocs/svn/public (and public files) and it work now. – burnersk Oct 24 '11 at 16:50
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.