Gitblit push error "error: RPC failed; result=52, HTTP code = 0"

T1000 picture T1000 · Dec 15, 2012 · Viewed 7.5k times · Source

Setup gitlbit on my Mac OS X 10.8, but keeps failing to push!

In the Gitblit web interface, I created an empty repository called empty and cloned it to local storage by the following command:

git clone https://localhost:8443/git/test/empty.git

I added a file and commit the change and added a remote

git remote add gitblit https://localhost:8443/git/test/empty.git

then I try to push with:

git push -v gitblit master

and the error shows:

Pushing to https://localhost:8443/git/test/empty.git
Counting objects: 3, done.
Writing objects: 100% (3/3), 215 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
POST git-receive-pack (351 bytes)
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I tried the ssl and the buffer settings, but no help.

git config http.postBuffer 524288000
git config http.sslVerify false 
git config --global http.postBuffer 524288000
config --global --bool --add http.sslVerify false

My Gitblit settings of bindings are all set to blank to accept binding to all interfaces:

server.httpBindInterface = 
server.httpsBindInterface = 
server.ajpBindInterface = 

Any help would be appreciated!

Answer

luffy picture luffy · Nov 19, 2014

I just fixed my problem with update the git version to the newest(2.1.2)