开发者社区> 问答> 正文

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

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:inopen'
        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:intimeout'
        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:inconnect'
        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:instart'
        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:inallowed?'
        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:inexec'
        from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
fatal: The remote end hung up unexpectedly

如上,总是遇到这样的问题。对gitlab不太熟悉,不清楚这个问题到底该如何解决,求OSER们帮忙。感激不尽!

展开
收起
爱吃鱼的程序员 2020-06-04 14:18:46 606 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    $ 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:inopen'
            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:intimeout'
            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:inconnect'
            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:instart'
            from /home/git/gitlab-shell/lib/gitlab_net.rb:56:in get' <br />         from /home/git/gitlab-shell/lib/gitlab_net.rb:17:inallowed?'
            from /home/git/gitlab-shell/lib/gitlab_shell.rb:51:in validate_access' <br />         from /home/git/gitlab-shell/lib/gitlab_shell.rb:21:inexec'
            from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
    fatal: The remote end hung up unexpectedly

    如上,git clone也出问题。。

    ######

    这一步是在验证权限,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能在启动时帮忙检查错误就完美了。。

    2020-06-04 16:24:40
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关实验场景

更多