For the past couple of days, I have been attempting to push existing repos towards a locally hosted git server (hosted on an http site) to which I was able to push to in the past. However, I am now unable to do so with the following error.
git push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 534 bytes | 267.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0), pack-reused 0
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
Furthermore, this error only happens to my account. My colleague is currently able to push without any issues. I am also able to execute most other commands including clone and fetch commands.
This error happens whether I push:
- A commit with a single byte of data modified.
- A commit with a large amount of data modified.
- Multiple commits.
- A commit within a fresh repo.
Things I have tried unsuccesfully:
- Hossein Kurd's answer which gave little to no helpful information.
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
Followed by:
git config --global core.compression 0
git clone --depth 1 <repo_URI>
# cd to your newly created directory
git fetch --unshallow
git pull --all
git config --global http.postBuffer 157286400
- Checked the remote to make sure it was valid
git remote -v
- DobbyTheElf and TOPKAT's answer by verifying that I still have over 200 Gb of storage left on the server and by executing the following:
git gc
git fsck