gitlab 5.3 push出错,clone也是这个问题

butong 发布于 2013/08/30 17:23
阅读 432
收藏 0
 #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)
        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'
        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'
        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'
        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'
        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'
        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不太熟悉,不清楚这个问题到底该如何解决,求OSER们帮忙。感激不尽!
加载中
0
butong
butong
$ 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)
        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'
        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'
        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'
        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'
        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'
        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也出问题。。
0
tsl0922
tsl0922

这一步是在验证权限,gitlab-shell会通过API访问gitlab服务器,看你的错误是在这一步连接超时了。检查下gitlab-shell配置里的gitlab_url是否正确,还有gitlab服务器是否启动!

0
butong
butong

gitlab是一直启动着的。

好像是gitlab_url写错了。我原来是把测试服务器接在一个路由下面,当时的IP地址是192.168.1.106,所以写的地址是"http://192.168.1.106",后来移到上面一个网段,IP地址变成了192.168.0.106。似乎没有改。下周验证一下,是不是这个问题吧。

谢谢你啦。一个小问题折腾了好久。刚才为了检查错误,又重新把测试服务器接到路由器下面,可是发现怎么配置也上不了网。折腾了十来分钟,后来实在没辙了,去看主机后面板上网线灯竟是黑的。把水晶头晃了晃,亮了,然后就连上网了。一个小问题,折腾人。

要是gitlab能在启动时帮忙检查错误就完美了。。

返回顶部
顶部