解决Gitlab的The remote end hung up unexpectedly错误
来源:互联网 发布:139端口 编辑:程序博客网 时间:2024/06/06 19:26
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了
2 0
- 解决Gitlab的The remote end hung up unexpectedly错误
- GitLab权限 The remote end hung up unexpectedly
- GitLab push代码时报:the remote end hung up unexpectedly
- git push错误;fatal: The remote end hung up unexpectedly
- git push错误;fatal: The remote end hung up unexpectedly
- git fatal: The remote end hung up unexpectedly 错误
- iOS - 解决fatal: The remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- git:解决git错误:fatal: The remote end hung up unexpectedly
- git fatal: the remote end hung up unexpectedly
- Git fatal: The remote end hung up unexpectedly
- 序列化 NSKeyedArchiver,NSPropertyListSerialization
- Windows安全描述符SECURITY_DESCRIPTOR阅读注释
- B. Vanya and Lanterns
- 冬吃萝卜夏吃姜 冬季吃萝卜究竟好在哪?
- Transmitting Network Data Using Volley(使用Volley框架传输网络数据)
- 解决Gitlab的The remote end hung up unexpectedly错误
- 栈和堆的区别
- HDU 5131 Little Zu Chongzhi's Triangles (状压DP +2014广州现场赛)
- hadoop使用场景
- 强大的iOS开发必备工具
- 2014广西教师资格面试试讲细节问题_面试试讲要注意什么问题?
- Hadoop到底能做什么?怎么用hadoop?
- 一切成功源于积累——20141206 强势上涨 每个小时 每个小时 紧紧贴着布林轨道上轨
- android jni与java之间数据传输时怎么转换