解决访问 Subversion 时的主机名错误

发布于 2024-08-22 17:39:41 字数 548 浏览 4 评论 0原文

尝试在 Subversion 中执行以下命令时出现错误: 更新、提交、日志、列表、责备等
然而,diff 和 info 是有效的。

使用任何桌面客户端(例如 CollabNet、TortoiseSVN、Intellij、Visual Studio 的 AnkhSVN)时,错误如下: “http://xxx01/comm/JavaService/trunk/:无法解析主机名 `http://xxx01/comm':请求的名称有效,并且在 数据库,但它没有正确的关联数据 解决了。​​”

这只发生在我的笔记本电脑上(而不是同事),并且仅在本周之后才开始发生 管理员更改了 Subversion 用于进行身份验证的帐户的密码。当我使用远程桌面连接到另一台计算机或通过网络访问 subversion 时,不会发生该错误。

预先感谢您为解决此问题提供的任何帮助。

I get the an error when attempting to do the following commands in Subversion:
update, commit, log, list, blame etc.
However, diff and info work.

The error is the following when using any desktop client, e.g. CollabNet, TortoiseSVN, Intellij, Visual Studio's AnkhSVN:
"http://xxx01/comm/JavaService/trunk/: Could not resolve hostname
`http://xxx01/comm': The requested name is valid and was found in the
database, but it does not have the correct associated data being
resolved for."

This only occurs on my laptop (not colleagues) and only started occurring this week after
administrators changed the password for the account Subversion uses to authenticate. The error does not occur when I'm using remote desktop to another machine or accessing subversion via the web.

Thanks in advance for any help in resolving this issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

看海 2024-08-29 17:39:41

听起来您的代理服务器设置需要更新。 Subversion 将所有这些设置保存在名为“servers”(无扩展名)的文本文件中。

在 Windows 中,此文件位于 %APPDATA%/Subversion/(例如 C:\Documents and Settings\YourUserName\Application Data\Subversion)。

1) 打开“服务器”并确保代理服务器的所有数据都是正确的。文件中应该有关于如何更改密码的说明,但它将涉及更改以下行:

[GLOBAL]:
http-proxy-host = proxyserver.example.com
http-proxy-port = 80
http-proxy-username = yourusername
http-proxy-password = yourpassword

2) 另外,有时 Tortoise SVN 会在不正确的代理设置下保持活动状态。如果您安装了 Tortoise,无论您是否使用它(特别是如果您使用 Subclipse):打开 Tortoise 设置 GUI,导航到“网络”并确保设置正确“启用代理服务器”。

It sounds like your proxy server settings need to be updated. Subversion keeps all of these settings in a text file named "servers" (no extension).

In Windows, this file is located in %APPDATA%/Subversion/ (e.g. C:\Documents and Settings\YourUserName\Application Data\Subversion).

1) Open "servers" and make sure that all data for your proxy server is correct. There should be directions in the file on how to change your password, but it will involve changing these lines:

[GLOBAL]:
http-proxy-host = proxyserver.example.com
http-proxy-port = 80
http-proxy-username = yourusername
http-proxy-password = yourpassword

2) Also, sometimes Tortoise SVN keeps active an incorrect proxy setting. If you have Tortoise installed, whether or not you're using it (especially if you're using Subclipse): open the Tortoise Settings GUI, navigate to 'Network' and make sure the settings are correct under 'Enable Proxy Server'.

凝望流年 2024-08-29 17:39:41

您的桌面设置中似乎有一个默认域,请比较

台式机和笔记本电脑上 nslookup xxx01 的输出。您还可以在 SVN URL 中使用完全限定名称,例如 xxx01.acme.com

It seems that you have a default domain in your desktop settings, compare the output of

nslookup xxx01 from your desktop and laptop. You could also use a fully qualified name like xxx01.acme.com in your SVN URL.

不知在何时 2024-08-29 17:39:41

来自 Windows 套接字错误代码:

请求的名称有效并且已在数据库中找到,但它确实存在
没有正确的关联数据
正在解析,例如 MX 记录
返回但没有A记录-
表明主机本身存在,但是
无法直接访问。

有时对主机名进行一些更改后需要多次重新启动
(或等待几个小时)直到这些更改完全被使用(由于
缓存)。

或者可能有防火墙/代理/病毒扫描程序干扰。

From Windows Sockets Error Codes:

The requested name is valid and was found in the database, but it does
not have the correct associated data
being resolved for, e.g. an MX record
is returned but no A record -
indicating the host itself exists, but
is not directly reachable.

Sometimes after some changes to hostnames it requires several reboots
(or a few hours waiting) until those changes fully are used (due to
caching).

Or there might be a firewall/proxy/virus scanner interferring.

夏雨凉 2024-08-29 17:39:41

我尝试了一切来解决这个问题。我确实在我的计算机上发现了一些恶意软件损坏的文件,但这些都不能解决问题。最后,我记录了机器,重新安装了 TortoiseSVN...瞧!它解决了问题;-)

I tried everything to resolve this issue. I did find some malware on my machine a corrupt file, but none of this resolve the issue. In the end, I recored the machine, reinstalled TortoiseSVN ... and voila! It fixed the problem ;-)

世界和平 2024-08-29 17:39:41

最近我遇到了这个问题,可能是因为某些 .svn 文件已损坏。我创建了一个新文件夹并让 tortoisesvn 查看整个版本。有用。

Recently I ran into this issue, probably because some .svn files were corrupt. I created a new folder and let the tortoisesvn check out the whole version. It works.

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