I have problem with my own Subversion repository. It worked yesterday. But I received an error when I was adding new file today:
svn: Repository moved temporarily to ‘main’; please relocate
List of my actions:
-
/home/user/test# svn checkout https://website.biz/repo/siteweb.com
OK
-
/home/user/test/siteweb.com/trunk# touch 1.txt
OK
-
/home/user/test/siteweb.com/trunk# svn add 1.txt
-
/home/user/test/siteweb.com/trunk# svn -m "adding 1.txt " commit
Adding trunk/1.txt svn: Commit failed (details follow): svn: Repository moved temporarily to 'main'; please relocate svn: Repository moved temporarily to 'main'; please relocate
What is this, how do I fix this?
It is a lame misconfiguration issue! You probably use dav_svn module to access your SVN repository. And there is global redirection on the ErrorDocument directive in your web server config. You should override this setting for the SVN repository section in the dav_svn config.
Edit the following file:
/etc/apache2/mods-enabled/dav_svn.conf, add the directive "ErrorDocument 404 default" between Location lines. It does the trick. My config can be an example for you:And reload the web server config with the following command: