Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resolve Hostname Error When Accessing 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.

like image 775
David Avatar asked Dec 18 '22 02:12

David


2 Answers

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

like image 121
user288926 Avatar answered Dec 29 '22 09:12

user288926


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.

like image 22
stacker Avatar answered Dec 29 '22 08:12

stacker