The cause of “svn: E195019: Redirect cycle detected for URL”

Apache2svnwebdavwebsvn

Trying to checkout from my SVN repo gives me

    svn: E195019: Redirect cycle detected for URL ...

However, it appears as if this error only occurs when I am behind some (specific) proxy server.

As discussed in other post (see tortoise svn giving me "Redirect cycle detected for URL 'domain/svn'" ), this error occurs if the SVN DAV is misconfigured, e.g., using SVNParentPath where one should use SVNPath. However, my configuration appears to be correct and – as far as I know – the problem only occurs when behind a proxy.

The setup of the repository is more or less standard, e.g.,

    ServerAlias  svn.mydomain.com
    <Location /myrepo>
        DAV svn
        SVNPath /var/www/vhosts/mydomain.com/svn/myrepo
        AuthType Basic
        AuthName "mydomain svn"
        AuthUserFile /var/www/vhosts/svn.mydomain.com/conf/htpasswd-myproject
        # Allow read-only access to anyone, otherwise require
        # require authentication
            Require valid-user
    </Location>

Best Answer

I was facing similar kind of error following this tutorial: How to Install SVN Server on Ubuntu 18.04 & 16.04 LTS. Later realized, I have to delete the following line in Step 5

Alias /svn /var/lib/svn

Related Topic