We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


SVN error: Repository moved permanently...please relocate

Medium Priority
Last Modified: 2013-11-25
I have several SVN repositories located here:

However, my hard drive is filling up fast and I'd like to move the repos to this path on the new drive:

I dumped the repo (I am testing with a single repo first) from the old location and loaded it into the new location.

I then updated the <location> section of the subverion.conf file (see code).

However, when I try to connect, I receive this error:
"Repository moved permanently to 'http://subversion.mysite.com/myrepo/"; please relocate"

I found this FAQ recommended on this site but it doesn't seem to apply to my setup:

NOTE: I tried using "SVNPath /mnt/newdrive/subversion/myrepo" but I received this error in the apache logs:
"Can't open file '/mnt/newdrive/subversion/myrepo/format': Permission denied"
...so I tried using SVNParentPath instead, which at least produces a more useful error.

Any ideas?

<Location /myrepo>
    DAV svn
    SVNParentPath /mnt/newdrive/subversion
    SVNListParentPath on
    AuthName "Subversion Repository"
    SVNIndexXSLT "/svnindex/svnindex.xsl"
        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile /mnt/newdrive/myrepo/conf/passwd
        Require valid-user

Open in new window

Watch Question


I've attached the beginning of my "subversion.mysite.conf" file for reference. THe <location> section above appears within the <VirtualHost> below:
<VirtualHost *:80>
   ServerAdmin admin@mysite.com
   DocumentRoot /var/www/html/sites/subversion.mysite.com/src/
   ServerName subversion.mysite.com
   ErrorLog logs/subversion-standard-error.log
   CustomLog logs/subversion-access.log common

Open in new window

Any directory called "myrepo" within your DocumentRoot?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


ckhsu1977 - no, the DocumentRoot for the site is one one drive:

...and the repo is on the new drive:

Is this possible?
so if you run this, it should return with no result. Correct?
find /var/www/html/sites/subversion.mysite.com/src/ -name "myrepo" -print
I chown-ed the repo recursively to apache:apache and everything seems to be working fine.


Please close.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.