我刚刚建立了一个专用于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
新增文字版 –