gitlab 5.3 push出错,clone也是这个问题? 400 报错 #git push -u smmb master
/usr/local/lib/ruby/1.9.1/net/http.rb:762:in initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT)</span> <br /> <span style="background-color:#FFFFFF;"> from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in
open'
from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in block in connect'</span> <br /> <span style="background-color:#FFFFFF;"> from /usr/local/lib/ruby/1.9.1/timeout.rb:54:in
timeout'
from /usr/local/lib/ruby/1.9.1/timeout.rb:99:in timeout'</span> <br /> <span style="background-color:#FFFFFF;"> from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in
connect'
from /usr/local/lib/ruby/1.9.1/net/http.rb:755:in do_start'</span> <br /> <span style="background-color:#FFFFFF;"> from /usr/local/lib/ruby/1.9.1/net/http.rb:744:in
start'
from /home/git/gitlab-shell/lib/gitlab_net.rb:56:in get'</span> <br /> <span style="background-color:#FFFFFF;"> from /home/git/gitlab-shell/lib/gitlab_net.rb:17:in
allowed?'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:51:in validate_access'</span> <br /> <span style="background-color:#FFFFFF;"> from /home/git/gitlab-shell/lib/gitlab_shell.rb:21:in
exec'
from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
fatal: The remote end hung up unexpectedly
$ git clone git@git.idtec.com:root/smeter-6000.git
Cloning into smeter-6000...
/usr/local/lib/ruby/1.9.1/net/http.rb:762:in initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT) <br /> from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in
open'
from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in block in connect' <br /> from /usr/local/lib/ruby/1.9.1/timeout.rb:54:in
timeout'
from /usr/local/lib/ruby/1.9.1/timeout.rb:99:in timeout' <br /> from /usr/local/lib/ruby/1.9.1/net/http.rb:762:in
connect'
from /usr/local/lib/ruby/1.9.1/net/http.rb:755:in do_start' <br /> from /usr/local/lib/ruby/1.9.1/net/http.rb:744:in
start'
from /home/git/gitlab-shell/lib/gitlab_net.rb:56:in get' <br /> from /home/git/gitlab-shell/lib/gitlab_net.rb:17:in
allowed?'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:51:in validate_access' <br /> from /home/git/gitlab-shell/lib/gitlab_shell.rb:21:in
exec'
from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
fatal: The remote end hung up unexpectedly
这一步是在验证权限,gitlab-shell会通过API访问gitlab服务器,看你的错误是在这一步连接超时了。检查下gitlab-shell配置里的gitlab_url是否正确,还有gitlab服务器是否启动!
######gitlab是一直启动着的。
好像是gitlab_url写错了。我原来是把测试服务器接在一个路由下面,当时的IP地址是192.168.1.106,所以写的地址是"http://192.168.1.106",后来移到上面一个网段,IP地址变成了192.168.0.106。似乎没有改。下周验证一下,是不是这个问题吧。
谢谢你啦。一个小问题折腾了好久。刚才为了检查错误,又重新把测试服务器接到路由器下面,可是发现怎么配置也上不了网。折腾了十来分钟,后来实在没辙了,去看主机后面板上网线灯竟是黑的。把水晶头晃了晃,亮了,然后就连上网了。一个小问题,折腾人。
要是gitlab能在启动时帮忙检查错误就完美了。。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。