我剛剛建立了一個專用於GitLab的Ubuntu 64位服務器。GitLab和SSH/HTTP連接
我已經成功安裝了GitLab,除了使用Git客戶端(SmartGit)的SSH連接外,其他一切似乎都正常工作。
我點擊 「克隆」,然後我插入SSH git的URL:
[email protected]:root/firstproject.git
當我點擊 「下一步」,它給了我這個錯誤:
Please check the repository URL.
Could not read from remote repository.: /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'initialize': getaddrinfo: Name of service not know (SocketError)
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'open'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'block in connect'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'timeout'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'connect'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'do_start'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'start'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'get'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'allowed?'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'validate_access'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in 'exec'
from /user/local/lib/ruby/2.0.0/net/http.rb:878:in '<main>'
Please make sure you have the correct access rights and the repository exists.
我曾嘗試生成一個SSH密鑰並將其放入/home/git/.ssh/config
,但問題依然存在。
我甚至使用網頁瀏覽器中的Gitlab控制面板將它添加爲「鍵」。
我試圖重新啓動GitLab和SSH,但它沒有幫助。 的HTTP方法可行,但給了我一個錯誤,如果我在同一時間commint &推很多文件:
The remote end hung up unexpectedly
The remote end hun up unexpectedly
RPC failed; result=22, HTTP code = 411
Counting objects: 89, done
Delta compression using up to 8 threads.
Total 88 (delta 12), reused 0 (delta 0)
我不需要解決這兩個問題,我只需要完全具備其中之一加工。
我增加了nginx.conf的max_file_size,現在HTTP方法起作用了。如果有人知道如何修復SSH方法,請在此處添加答案。 –
您能否將錯誤的文本版本替換爲圖片?你可以谷歌文本,而不是圖片。 – VonC
新增文字版 –