求助,详细错误信息如下所示:

POST git-upload-pack (190 bytes)
POST git-upload-pack (199 bytes)
remote: Counting objects: 1413, done.
remote: Compressing objects: 100% (1309/1309), done.
fatal: early EOF
fatal: The remote end hung up unexpectedly
fatal: index-pack failed
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
git 未能顺利结束 (退出码 128) (95515 ms @ 2018/9/10 11:18:23)

另说明:1.要克隆的仓库文件总大小约为3.2G
2.按照其他百度的方案,设置
http.postBuffer 到1个G后,依然不行,超过1G后,就直接报内存溢出。此方案不可行。请不用重复回答此方案了。

红糖糍粑
浏览 388回答 2
2回答

慕田峪9158850

Gitlab服务器环境是CentOS7+Gitlab7.2.1,最近发现在开发机上使用git pull更新文件时,会报如下错误。fatal: The remote end hung up unexpectedlyfatal: early EOFfatal: unpack-objects failed使用git clone重新checkout源也受到影响,长时间checkout不出来,Google了半天也没找到个好办法,最后还是查错误日志定位到了问题在/var/log/gitlab/unicorn/unicorn_stderr.log中,发现如下的错误信息E, [2014-12-06T09:13:10.319216 #11074] ERROR -- : worker=0 PID:11091 timeout (31s > 30s), killingE, [2014-12-06T09:13:10.336186 #11074] ERROR -- : reaped #<Process::Status: pid 11091 SIGKILL (signal 9)> worker=0I, [2014-12-06T09:13:10.340379 #11183] INFO -- : worker=0 spawned pid=11183I, [2014-12-06T09:13:10.340848 #11183] INFO -- : worker=0 read看来是被Ruby误认为超时中断了。解决办法就是调大unicorn的timeout值。修改/var/opt/gitlab/gitlab-rails/etc/unicorn.rb,将# What the timeout for killing busy workers is, in secondstimeout 30改为# What the timeout for killing busy workers is, in secondstimeout 60最后,运行sudo systemctl restart gitlab-runsvdir.service&nbsp;重启Gitlab。之后客户端就可以正常Git pull或者clone了

HUWWW

远端仓库没有找到,请确认该路径是否真的存在git仓库,如果存在,请确认是否有权限fetch
打开App,查看更多内容
随时随地看视频慕课网APP