Resolve Hostname Error When Accessing Subversion

David picture David · Feb 26, 2010 · Viewed 23.1k times · Source

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.

Answer

user288926 picture user288926 · Jan 1, 2011

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'.