• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 14021
  • Last Modified:

SVN error: Repository moved permanently...please relocate

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

0
bearclaws75
Asked:
bearclaws75
  • 4
  • 2
3 Solutions
 
bearclaws75Author 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

0
 
ckhsu1977Commented:
Any directory called "myrepo" within your DocumentRoot?
0
 
bearclaws75Author 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?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now