svn:存储库暂时移至“main”;请搬迁

发布于 2024-11-14 00:10:29 字数 693 浏览 2 评论 0原文

我自己的 Subversion 存储库有问题。昨天有效。但是我今天添加新文件时收到错误:

svn:存储库暂时移至“main”;请搬迁

我的操作列表:

  1. /home/user/test# svn checkout https://website .biz/repo/siteweb.com

    确定

  2. /home/user/test/siteweb.com/trunk# touch 1.txt

    确定

  3. /home/user/test/siteweb.com/trunk# svn add 1.txt

  4. /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:

  1. /home/user/test# svn checkout https://website.biz/repo/siteweb.com

    OK

  2. /home/user/test/siteweb.com/trunk# touch 1.txt

    OK

  3. /home/user/test/siteweb.com/trunk# svn add 1.txt

  4. /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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

红衣飘飘貌似仙 2024-11-21 00:10:29

svn:存储库暂时移动到“某物”;请搬迁

这是一个蹩脚的错误配置问题!您可能使用 dav_svn 模块来访问 SVN 存储库。 Web 服务器配置中的 ErrorDocument 指令有全局重定向。您应该在 dav_svn 配置中覆盖 SVN 存储库部分的此设置。

编辑以下文件:/etc/apache2/mods-enabled/dav_svn.conf,在位置行之间添加指令“ErrorDocument 404 default”。它确实有效。我的配置可以作为您的示例:

<Location /svn>
  DAV svn
  SVNPath /var/svn-repos/svn
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd
  Require valid-user
  SSLRequireSSL
  ErrorDocument 404 default
</Location>

并使用以下命令重新加载 Web 服务器配置:

/etc/init.d/apache2 reload

svn: Repository moved temporarily to 'something'; please relocate

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:

<Location /svn>
  DAV svn
  SVNPath /var/svn-repos/svn
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd
  Require valid-user
  SSLRequireSSL
  ErrorDocument 404 default
</Location>

And reload the web server config with the following command:

/etc/init.d/apache2 reload
再浓的妆也掩不了殇 2024-11-21 00:10:29

如果您在从客户端(命令行客户端或 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

枉心 2024-11-21 00:10:29

根据此帖子 ,似乎有一个预提交钩子发送此消息(顺便说一句,这是当我向 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.

以往的大感动 2024-11-21 00:10:29

此错误也可能是由于客户端配置错误引起的。

这发生在我身上,因为我在 ~/.subversion/servershttp_proxy_exceptions 中有空格,而不是逗号。

http_proxy_exceptions = *.foo.com *.bar.com

不正确,但

http_proxy_exceptions = *.foo.com, *.bar.com

有效。 (第一种形式可能在过去有效。)

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.

http_proxy_exceptions = *.foo.com *.bar.com

was incorrect, but

http_proxy_exceptions = *.foo.com, *.bar.com

worked. (The first form may have worked in the past.)

时光是把杀猪刀 2024-11-21 00:10:29

添加代理服务器时,我收到此错误

在此处输入图像描述

I received this error when a proxy server was added

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文