解决访问 Subversion 时的主机名错误
尝试在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
听起来您的代理服务器设置需要更新。 Subversion 将所有这些设置保存在名为“servers”(无扩展名)的文本文件中。
在 Windows 中,此文件位于 %APPDATA%/Subversion/(例如 C:\Documents and Settings\YourUserName\Application Data\Subversion)。
1) 打开“服务器”并确保代理服务器的所有数据都是正确的。文件中应该有关于如何更改密码的说明,但它将涉及更改以下行:
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:
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'.
您的桌面设置中似乎有一个默认域,请比较
台式机和笔记本电脑上
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 likexxx01.acme.com
in your SVN URL.来自 Windows 套接字错误代码:
有时对主机名进行一些更改后需要多次重新启动
(或等待几个小时)直到这些更改完全被使用(由于
缓存)。
或者可能有防火墙/代理/病毒扫描程序干扰。
From Windows Sockets Error Codes:
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.
我尝试了一切来解决这个问题。我确实在我的计算机上发现了一些恶意软件损坏的文件,但这些都不能解决问题。最后,我记录了机器,重新安装了 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 ;-)
最近我遇到了这个问题,可能是因为某些 .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.