Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RPC Failed result 22 http code 404

Tags:

git

bonobo

Im using Bonobo Git Server and everything looks fine. Im movin all my old SVN repos to GIT and even with big repos (about 3.5 GB) with +760 commits the "git svn clone" and "git push" is working really fine.

But not with a tiny repository: it has just 3Mb (uncompressed) and just 1 commit. The message i always get is:

efrror: RPC Failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly

I already change the bonobo webconfig as recomened here and I already did this config command.

So, anyone has any other clue?

like image 799
ppalmeida Avatar asked Nov 19 '12 14:11

ppalmeida


1 Answers

I have met a similar error when I try to push my local git repo to gitlab. The complete error message is:

Counting objects: 3, done.
Delta compression using up to 64 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 288 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I solved this issue by following this answer. Specifically, I add a .git after the remote repo URL:

# add .git suffix to the ORIGINAL_URL
git remote set-url origin ORIGINAL_URL.git

After that, I can push to remote gitlab repo successfully.

like image 190
jdhao Avatar answered Oct 11 '22 17:10

jdhao