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

x

SVN error: Repository moved permanently...please relocate

Medium Priority
14,666 Views
Last Modified: 2013-11-25
I have several SVN repositories located here:
/usr/local/subversion

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

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:
http://subversion.tigris.org/faq.html#301-error

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"
    <limitexcept GET PROPFIND OPTIONS REPORT>
        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile /mnt/newdrive/myrepo/conf/passwd
        Require valid-user
    </limitexcept>
</Location>

Open in new window

Comment
Watch Question

Author

Commented:
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

Author

Commented:
ckhsu1977 - no, the DocumentRoot for the site is one one drive:
/var/www/html/sites/subversion.mysite.com/src/

...and the repo is on the new drive:
/mnt/newdrive/subversion/myrepo

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.

Author

Commented:
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.

OR

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.