解決Gitlab的The remote end hung up unexpectedly錯誤,gitlabunexpectedly

來源:互聯網
上載者:User

解決Gitlab的The remote end hung up unexpectedly錯誤,gitlabunexpectedly

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了









聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.