【问题标题】:RPC Failed result 22 http code 404RPC 失败结果 22 http 代码 404
【发布时间】:2012-11-07 12:08:55
【问题描述】:

我正在使用 Bonobo Git 服务器,一切看起来都很好。我将所有旧 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

我已经按照推荐的here 更改了 bonobo webconfig,并且我已经更改了this config command

那么,还有其他线索吗?

【问题讨论】:

标签: git bonobo


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    基于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" /> 
    

    在这两种情况下,“102400”都被替换为“999999999”并且推送成功了!

    【讨论】:

    • 还出现error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054等错误
    【解决方案3】:

    我在尝试使用带有 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 py 2.7 环境(而基本环境是 conda py 3.x),所以它可能是权限的结果(0n Windows ),或不兼容问题。

    【讨论】:

      【解决方案4】:

      当我尝试将本地 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 解决了这个问题。具体来说,我在远程 repo URL 之后添加了一个.git

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

      之后,我就可以成功推送到远程gitlab repo了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-09-21
        • 2013-10-27
        • 2014-05-17
        • 1970-01-01
        • 2014-04-17
        • 1970-01-01
        相关资源
        最近更新 更多