Can’t push/pull from mercurial repository – abort: error: An existing connection was forcibly closed by the remote host

bitbucketmercurial

I am planning to use mercurial for a new project but I'm having some problem accessing the bitbucket repository. I'm new to mercurial, but I have used git previously.

I get the following error when peforing a hg clone or push:

abort: error: An existing connection was forcibly closed by the remote host

I only have this problem when using my work pc, when accessing the repository from my home pc I can clone and push just fine, any ideas, is there some firewall setting that needs to be configured?

I'm using Mercurial-2.1.2-x64 on windows 7 x64 for both pcs.

Best Answer

So I found the source of the error, I had initially installed tortoise hg which had created the following mercurial.ini file in my user directory, once I deleted this file, it resolved the issue. I suppose the problem was that I had specified the repository url instead of an actual http proxy...

# Generated by TortoiseHg settings dialog


[tortoisehg]
cipushafter = 


[http_proxy]
host = https://****@bitbucket.org/****/*** (my repository path)
Related Topic