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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

710 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot