🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
故障一: ![](https://box.kancloud.cn/569727ba7b4700e83d3c0583b0f8ea69_766x126.png) fatal: The remote end hung up unexpectedly fatal: early EOF fatal: unpack-objects failed 解决办法: 在/var/log/gitlab/unicorn/unicorn_stderr.log中,发现如下的错误信息 E, [2014-12-06T09:13:10.319216 #11074] ERROR -- : worker=0 PID:11091 timeout (31s > 30s), killing E, [2014-12-06T09:13:10.336186 #11074] ERROR -- : reaped #<Process::Status: pid 11091 SIGKILL (signal 9)> worker=0 I, [2014-12-06T09:13:10.340379 #11183] INFO -- : worker=0 spawned pid=11183 I, [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 seconds timeout 30 改为 # What the timeout for killing busy workers is, in seconds timeout 60 最后,运行 sudo systemctl restart gitlab-runsvdir.service 重启Gitlab。 故障二: git clone时,出现这个错误. remote: Counting objects: 4592517, done. remote: Compressing objects: 100% (1140430/1140430), done. error: RPC failed; result=56, HTTP code = 2008.82 MiB | 4.72 MiB/s fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed 修改Git的传输字节限制即可。 # git config --global http.postBuffer 524288000 故障三: GitLab reconfigure Error: executing action `create` on resource 'user[git]' [git@gitserver gitlab]$ sudo vim /etc/gitlab/gitlab.rb user['username'] = "gitlab" user['group'] = "gitlab" 故障四:webhooks 403 ![](https://box.kancloud.cn/3ccf24d5d63b6b771c8c04c5be6964a7_1363x436.png) 解决办法 ![](https://box.kancloud.cn/a55247dcefb5a4d7f2f3a310d38a933a_1059x146.png) 故障五: 修改gitlab管理员密码 gitlab-rails console production irb(main):001:0> user = User.where(id: 1).first => #<User id: 1, email: "admin@example.com", ... irb(main):002:0> user.password=12345678 => 12345678 irb(main):003:0> user.password_confirmation=12345678 => 12345678 irb(main):004:0> user.save! => true irb(main):005:0> quit 然后登陆gitlab,把密码设置复杂一些 ![](https://box.kancloud.cn/00ae042cd0abc04ede2c19e6f93185e8_988x510.png)