2016-04-29 456 views
11

我不斷收到這個錯誤,當我試圖把任何東西我自己gitlab服務器:Gitlab推送失敗錯誤

Push failed 
Failed with error: 
fatal: The remote end hung up unexpectedly 
fatal: The remote end hung up unexpectedly 
error: RPC failed; 
curl 56 Recv failure: Connection was reset 

我不知道爲什麼我不斷收到此錯誤。我一直試圖推動,然後從哪裏推出它成功。但是之後我試圖推動的一切都給了我同樣的錯誤。

這裏有一個更詳細的日誌:

16:21:39.932: [gallery] git -c core.quotepath=false push --progress --porcelain origin refs/heads/master:master 
Counting objects: 12, done. 
Delta compression using up to 8 threads. 
Compressing objects: 100% (12/12), done. 
Writing objects: 100% (12/12), 1.88 MiB | 25.00 KiB/s, done. 
Total 12 (delta 3), reused 0 (delta 0) 
fatal: The remote end hung up unexpectedly 
fatal: The remote end hung up unexpectedly 
Done 
error: RPC failed; curl 56 Recv failure: Connection was reset 
+0

看起來像https://github.com/gitlabhq/gitlabhq/issues/9148或http://stackoverflow.com/questions/11500847/php-curl-error-curl-56-recv-failure-connection-reset -by等。雖然沒有明確的答案。 – VonC

+0

看看這個SO問題:http://stackoverflow.com/questions/10285700/curl-error-recv-failure-connection-reset-by-peer-php-curl –

+1

我也有同樣的問題。爲了解決這個問題,我正在做以下的事情:'git reset --hard HEAD〜1'之後。我將我的項目文件再次添加到同一個文件夾中,因爲所有內容都已恢復到前一階段。然後執行以下命令。 'git add * - git commit -m'再次' - git push'。那麼它推動成功。 –

回答