为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

红糖糍粑 2023-04-24 15:11:44
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 EOFfatal: The remote end hung up unexpectedlyfatal: index-pack failederror: RPC failed; curl 18 transfer closed with outstanding read data remaininggit 未能顺利结束 (退出码 128) (95515 ms @ 2018/9/10 11:18:23)另说明:1.要克隆的仓库文件总大小约为3.2G2.按照其他百度的方案,设置http.postBuffer 到1个G后,依然不行,超过1G后,就直接报内存溢出。此方案不可行。请不用重复回答此方案了。
查看完整描述

2 回答

?
慕田峪9158850

TA贡献1794条经验 获得超7个赞

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 

重启Gitlab。
之后客户端就可以正常Git pull或者clone了

查看完整回答
反对 回复 2023-04-27
?
HUWWW

TA贡献1874条经验 获得超12个赞

远端仓库没有找到,请确认该路径是否真的存在git仓库,如果存在,请确认是否有权限fetch

查看完整回答
反对 回复 2023-04-27
  • 2 回答
  • 0 关注
  • 215 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信