RPC失败结果22 http代码404

时间:2012-11-19 14:39:00

标签: git bonobo

我正在使用Bonobo Git Server,一切看起来都很好。我将所有旧的SVN回购转移到GIT,即使是使用+760提交的大回购(约3.5 GB),“git svn clone”和“git push”也能正常工作。

但是没有一个小的存储库:它只有3Mb(未压缩),只有1个提交。 我总是得到的信息是:

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

我已经将bonobo webconfig更改为已复制的here,我已经this config command了。

那么,任何人都有其他线索吗?

4 个答案:

答案 0 :(得分:6)

基于http://gisgeek.blogspot.com/2012/03/bonobo-git-server-remote-end-hung-up.html

这是解决方案

解决方案: 修改Bonobo.Git.Server(C:\ initpub \ wwwroot \ Bonobo.Git.Server \ Web.config)根目录中的web.config文件,并修改以下行的限制:

<system.web>
   <httpRuntime maxRequestLength="102400" /> 


<security>
   <requestFiltering>
     <requestLimits maxAllowedContentLength="102400" /> 

在这两种情况下&#34; 102400&#34;被替换为&#34; 999999999&#34;推动工作!

答案 1 :(得分:0)

我刚刚修改了我的文件并再次提交代码,一切正常。

答案 2 :(得分:0)

在尝试使用带有Anaconda3的gcloud SDK工具从Google Cloud上的源存储库克隆时遇到了这个问题:

fatal: The remote end fhung up unexpectedly
atal: early EOF
fatal: unpack-objects failed
ERROR: (gcloud.source.repos.clone) Command '[u'git', u'clone', u'https://source.developers.google.com/p/propane-highway-202915/r/arise-ds-program', u'C:\\WINDOWS\\system32\\arise-ds-program', u'--config', u'credential.helper=', u'--config', u'credential.helper=!gcloud.cmd auth git-helper --account=steve.deve89@gmail.com --ignore-unknown $@']' returned non-zero exit status 128

幸运的是,我能够通过切换到禁用的Windows Defender防火墙(包括其他防病毒软件)并切换到conda中的基本环境来解决此问题。

PS :我早些时候遇到此问题的环境是conda 2.7环境(而基本环境是conda py 3.x),所以这可能是由于权限(Windows为0n) )或不兼容问题。

答案 3 :(得分:0)

当我尝试将本地git repo推送到gitlab时,遇到了类似的错误。完整的错误消息是:

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

我通过遵循this answer解决了这个问题。具体来说,我在远程回购URL之后添加了.git

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

之后,我可以成功推送到远程gitlab存储库。