The remote end hung up unexpectedly >> error: RPC failed; result=22, HTTP code = 411


git -c diff.mnemonicprefix=false -c core.quotepath=false push -v origin master:master 

Pushing to https://ACCOUNTNAME@bitbucket.org/ACCOUNTNAME/REPONAME.git

POST git-receive-pack (chunked)

error: RPC failed; result=22, HTTP code = 411

fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

Everything up-to-date

Completed with errors, see above

I have been getting this error sporadically today across multiple different repositories. Some were created today,s ome were created months ago. I have committed/pushed to these daily for some time now, and only started getting this error about 5 hours ago. Some other users accessing my repo's have got the same error when committing.

2 answers

1 accepted

*UPDATE* I did not make any changes to the bitbucket repo or my local repo since I posted this initial problem. I now opened up my SVN client, and PUSHED the 5 pending commits I had errors from earlier.... And it worked. Clearly its a problem in bitbuckets backend somewhere.


try to run the following command

git config http.postBuffer 524288000

see https://confluence.atlassian.com/display/FISHKB/Git+PUSH+results+in+RPC+failed,+result%3D22,+HTTP+code+%3D+411 for more information

My buffers were already set to these values days ago, before the problem:
size limit (text): 10,240kb
size limit (binary): 102,400kb

*UPDATE* I did not make any changes to the bitbucket repo or my local repo since I posted this initial problem. I now opened up my SVN client, and PUSHED the 5 pending commits I had errors from earlier.... And it worked. Clearly its a problem in bitbuckets backend somewhere.



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

30,922 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