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

git push returns 500 server error

ivanhoe011
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 11, 2024

I've suddenly this morning started getting 500 response from the bitbucket when I try to push my code. I don't remember changing anything on my side, and this all worked fine previously. The Atlassian status page is all green, so I'm not sure if it's just my repo, or what.

Here's the output of the `git push -v` command:

Pushing to https://bitbucket.org/************* 
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 8 threads
Compressing objects: 100% (17/17), done.
POST git-receive-pack (chunked)
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (17/17), 1.64 MiB | 2.47 MiB/s, done.
Total 17 (delta 8), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

1 answer

1 accepted

3 votes
Answer accepted
ivanhoe011
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 11, 2024

OK, nevermind, it turns out it was an issue with the git's buffer size (which is 1MB by default ). One image was around 500KB, and probably that was too much for it. I'd never figure it out without ChatGPT honestly...

To change the buffer size (to 500MB):
`git config --global http.postBuffer 524288000`

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events