Error pushing large changeset: errno 10054 (forcibly closed by remote host)

I've grabbed an open source web app and wanted to push the entire thing as-is to bitbucket before I start hacking away at it.

TortoiseHg is reporting that the push is 22.7MB. I've tried pushing to https and http (with TortoiseHg and CLI) but in each case I get:

URLError: [Errno 10054] An existing connection was forcibly closed by the remote host

It seems that while individual files are small, the push is too big overall. I've looked for ways of splitting the push (e.g. Kiln has --chunked) but not getting anywhere. The large files extension doesn't seem to be relevant.

Similar to

3 answers

0 vote
Jason Worley Atlassian Team Mar 18, 2013


We have had recent reports of this problem typically from Windows 7 64 bit users. Can you confirm that is your Operating System and version? Also, can you tell me which version of Mercurial or TortoiseHG Workbench you have installed?

The workaround for now will be to switch to SSH. We have a [very thorough guide|] to help get you going fast.

Please let me know if you have any issues setting up SSH.

We are working to identify the cause of this issue and hope to have a resolution soon, but SSH will be what will get you going right now.


Jason | Atlassian

Yes, Windows 7 64bit. Not sure what version of TortoiseHg I was using then, probably 2.6.

Thanks for the response, I ended up committing small chunks of files and pushing them piece by piece - SSH would've been faster.

I have the same problem on win 7 64, but switching to ssh drastically slowed down pushing. Bundling one file takes several minutes, while its a second using https. Any workarounds?

Use the command line, and use the --chunked option. You still get the same error (at the end of pushing), and it's quite slow, but it works. e.g.

hg --repository d:\src\whatever push --insecure --chunked https://whatever

P.S. I'm using windows 7 64,

tortoisehg version 2.10.1

mercurial version 2.8.1

pushing massive changes is the problem, smaller ones ok.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

26,724 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you