apachesvnsmartsvn

SmartSVN Repository moved permanently


I recently set up an svn repo with authentication.

Our PC users are using tortoise SVN and are able to checkout, commit, etc.

Our Mac OS users are using SmartSVN and when trying to checkout they get the following error:

Repository moved permanently; please relocate OPTIONS
request failed on'/'

I ran into this issue when setting it up initially with tortoisesvn and the solution was making sure that that svn repo wasn't a child of the www directory. So I placed it in the home directory

The home directory looks like the following:

/public_html
/repos
/www

The vhost conf file looks like:

<IfModule mod_dav_svn.c>
 <Location /repos/>
  DAV svn
  SVNParentPath /data/svn/repos/
  SVNListParentPath On
  AuthType Basic
  AuthName "SVN Repository"
  AuthUserFile /data/svn/.htpasswds/.svn.htpasswd
  AuthzSVNAccessFile /data/svn/.htpasswds/.svn.authz
  Require valid-user
 </Location>
</IfModule>

Both PC and Mac users are able to view the repositories with the proper authentication in a browser. The only issue is when trying to checkout when using SmartSVN on MacOS.

There aren't any errors in the log that I can see that relate.

Edit: Clarification All users are checking out the repos with a url format like:

http://svn.myserver.com/repos/REPONAME

Solution

  • Originally our svn was using a single repository and we changed it to use a collection of repositories. We were still using the same subdomain "svn.server.com" with the main difference that our collection is now svn.server.com/repos/

    SmartSVN stored the old url "svn.server.com" and seemed to ignore the new supplied url during checkout (svn.server.com/repos/TEST)

    The solution is simple.

    SmartSVN > Preferences > Authentication
    

    Delete the old record and then try to check out again.