2

I've created a new repository ('Test') in Kiln and I have attempted to clone it so that I can add files.

I've tried cloning it from the command line as instructed, using:

hg clone "https://Matthew Murdoch@xxxxx.kilnhg.com/Repo/Repositories/Group/Test"

but it returns the following error message after a few seconds:

abort: error: A connection attempt failed because the connected party did not 
properly respond after a period of time, or established connection failed 
because connected host has failed to respond

Trying this with TortoiseHg gives a similar error message:

urlopen error [Errno 10060] A connection attempt failed because the connected 
party did not properly respond after a period of time, or established 
connection failed because connected host has failed to respond

My Kiln site is up and running and I can perform actions on it via a web browser.

Things I've Tried:

Installing Kiln Client over TortoiseHg

I installed the Kiln Client over the top of TortoiseHg but it gives the same error message.

Removing Spaces From URL

Changing my name via Kiln | Admin | Users | Edit | Full name changes the command line to:

hg clone https://Matthew@xxxxx.kilnhg.com/Repo/Repositories/Group/Test

(i.e. minus the space and surrounding double quotes) but does not fix the problem.

Uninstalling Kiln Client and TortoiseHg and Reinstalling Kiln Client

Just in case installing Kiln Client over the top of TortoiseHg might not really have installed it properly. Same problem.

Changing Internet Explorer LAN Connection Settings

I have Internet Explorer (7) | Tools | Internet Options | Connections | LAN Settings | Automatically detect settings checked but no explicit proxy server set up. I've tried unchecking this but it doesn't seem to have any effect on hg (although I can't view web sites any longer!).

Could this be a firewall issue? Are there any hg settings I need to configure?

flag
Could definitely be a firewall issue. Do you have a machine outside of the firewall that you can test cloning from? – Ben Kamens Apr 22 2010 at 14:17
Yes, but not for a few hours. – Matthew Murdoch Apr 22 2010 at 15:01
Works fine outside of the corporate network. Any suggestions? – Matthew Murdoch Apr 23 2010 at 19:18
1 
You probably actually do have proxy settings enabled; please see my answer below. – Benjamin Pollack Apr 26 2010 at 15:33

3 Answers

1

If unchecking Automatically detect settings in your LAN Settings pane breaks your ability to browse the web, then you do in fact have a proxy. Unfortunately, while Mercurial does support proxies, it does not consult Internet Explorer's settings pane when determining how to connect to Kiln.

The easiest way to connect to Kiln is going to be to ask your system administrator for proxy connection information. Once you have it, open up TortoiseHg's user configuration editor, go to the Proxy tab, and fill in the information accordingly. You should then be able to clone.

I don't know how to determine which settings IE is using when Automatically detect settings is checked, but I'll figure out how and (worst case) try to write you a little utility today to tell you.

link|flag
1 
Thanks! Interestingly this works if the proxy is set up in the TortoiseHg | Global Settings dialog but not if set in the TortoiseHg | Repository Settings dialog... – Matthew Murdoch Apr 26 2010 at 16:16
1

Does it work if you remove your name from the URL?

hg clone https://xxxxx.kilnhg.com/Repo/Repositories/Group/Test
link|flag
Unfortunately not... – Matthew Murdoch Apr 22 2010 at 14:59
0

The proxy can be set from the command line by setting the http_proxy environment variable. For example, on Windows:

set http_proxy=myproxy:8080

However, this setting is only read by the hg command line tool (and not the TortoiseHg GUI tools) so Benjamin's answer should probably be preferred (it works in both cases).

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.