Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

error pushing to bitbucket server

Matt September 25, 2017

I get the following error when trying to push a new repo to my bitbuket server.  I have seen this error before and usually I just close Sourcetree and reopen it and the error goes away, but this time the error is happening every time.

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
POST git-receive-pack (31653617 bytes)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; result=22, HTTP code = 400
Pushing to https://xxxxxxxxx/xxxxx/xxxxx/xxxxxxxxxxxxxx.git
Everything up-to-date

Completed with errors, see above.

 

 

Any ideas?

3 answers

1 accepted

0 votes
Answer accepted
Matt November 1, 2017

This ended up being a firewall issue within my company's network. I was able to push files once they opened up the firewall for me.

0 votes
Matt September 28, 2017

It appears that the previous suggestion does not apply in my situation.  Is there any other suggestions? Thanks.

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2017
Matt September 25, 2017

Hi there, I did find that article and tried increasing my http.postBuffer using the following command, and I still received the same error:

 

  • git config --global http.postBuffer 157286400
Matt September 25, 2017

also, that article is referring to error 411. the error I am getting is 400

 

Thanks,

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2017

Did you also check the other 2, related to proxy configuration?

Matt September 25, 2017

the 2nd one links to this article https://confluence.atlassian.com/stashkb/git-push-fails-client-intended-to-send-too-large-chunked-body-590251250.html

which suggests setting some configuration properties, but it doesn't specify where in Bitbucket Server (or local file) to change them.  do you know where those configurations are stored?

Matt September 25, 2017

it appears that the 2nd resolution is related to NGINX server which i'm not using, the the 3rd resolution is referring to changing proxy settings.  I'm not sure if that's the issue either since i can commit some of my projects to repositories, just not others.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events