svn:存储库暂时移至“main”;请搬迁
我自己的 Subversion 存储库有问题。昨天有效。但是我今天添加新文件时收到错误:
svn:存储库暂时移至“main”;请搬迁
我的操作列表:
/home/user/test# svn checkout https://website .biz/repo/siteweb.com
确定
/home/user/test/siteweb.com/trunk# touch 1.txt
确定
/home/user/test/siteweb.com/trunk# svn add 1.txt
/home/user/test/siteweb.com/trunk# svn -m "adding 1.txt " commit
添加 trunk/1.txt svn:提交失败(详细信息如下): svn:存储库暂时移至“main”;请搬迁 svn:存储库暂时移至“main”;请搬迁
这是什么,如何解决这个问题?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这是一个蹩脚的错误配置问题!您可能使用 dav_svn 模块来访问 SVN 存储库。 Web 服务器配置中的 ErrorDocument 指令有全局重定向。您应该在 dav_svn 配置中覆盖 SVN 存储库部分的此设置。
编辑以下文件:
/etc/apache2/mods-enabled/dav_svn.conf
,在位置行之间添加指令“ErrorDocument 404 default”。它确实有效。我的配置可以作为您的示例:并使用以下命令重新加载 Web 服务器配置:
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:
如果您在从客户端(命令行客户端或 tigris)获取数据时遇到此异常,则可能是 url 模式。例如,
http://nhibernate.svn.sourceforge.net/viewvc/nhibernate 将如果你用 svnroot 替换 viewvc 就可以工作,例如
https://nhibernate.svn.sourceforge.net/svnroot/nhibernate
If you are getting this exception while fetching it from a client, either a command line client or tigris, it may be the url pattern. For example,
http://nhibernate.svn.sourceforge.net/viewvc/nhibernate will work if you replace viewvc with svnroot such as
https://nhibernate.svn.sourceforge.net/svnroot/nhibernate
根据此帖子 ,似乎有一个预提交钩子发送此消息(顺便说一句,这是当我向 google 请求 svn 存储库暂时移至“主” 时的第一个命中)。
除非您添加了此挂钩(假设您是 https:// 的唯一管理员website.biz/repo/siteweb.com),您可能会遇到严重的麻烦...
另一方面,它也可能是 apache 配置问题。在这种情况下,我认为我的链接线程也会对您有所帮助。
According to this thread, there seems to be a pre-commit hook that sends this message (btw this is the first hit when I ask google for svn Repository moved temporarily to 'main').
Unless you added this hook (assuming you're the only administrator of https://website.biz/repo/siteweb.com), you might be in serious trouble...
On the other hand, it could also be an apache configuration issue. In that case, I assume that my linked thread will help you too.
此错误也可能是由于客户端配置错误引起的。
这发生在我身上,因为我在
~/.subversion/servers
的http_proxy_exceptions
中有空格,而不是逗号。不正确,但
有效。 (第一种形式可能在过去有效。)
This error might also be caused by a misconfigured client.
It happened to me because I had spaces, not commas, in
http_proxy_exceptions
in~/.subversion/servers
.was incorrect, but
worked. (The first form may have worked in the past.)
添加代理服务器时,我收到此错误
I received this error when a proxy server was added