基于http://gisgeek.blogspot.com/2012/03/bonobo-git-server-remote-end-hung-up.html。
以下是解决方案:
修改位于Bonobo.Git.Server根目录下的web.config文件(C:\ initpub \ wwwroot \ Bonobo.Git.Server \ Web.config),并提高以下行的限制:
<system.web>
<httpRuntime maxRequestLength="102400" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="102400" />
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
这样的错误。 - it3xl当我尝试将本地git仓库推送到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
.git
: "最初的回答"# add .git suffix to the ORIGINAL_URL
git remote set-url origin ORIGINAL_URL.git
之后,我就可以成功地推送到远程的 GitLab 仓库了。
我在使用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中的基本环境来解决了这个问题。
附言:我之前遇到这个问题的环境是conda py 2.7环境(而基本环境是conda py 3.x),所以可能是权限(在Windows上)或不兼容性问题导致的。
我刚刚修改了我的文件并再次提交了代码,一切都正常工作。