开发者社区> 问答> 正文

gitlab服务搬迁之后出现的客户端git clone的报错问题?报错

os:ubuntu 12

gitlab:5.3.0

error info:

/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `initialize': No route to host - connect(2) (Errno::EHOSTUNREACH)
        from /usr/local/lib/ruby/2.0.0/net/http.rb:878:in `open'
        from /usr/local/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
        from /usr/local/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
        from /usr/local/lib/ruby/2.0.0/net/http.rb:877:in `connect'
        from /usr/local/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
        from /usr/local/lib/ruby/2.0.0/net/http.rb:851:in `start'
        from /home/git/gitlab-shell/lib/gitlab_net.rb:62:in `get'
        from /home/git/gitlab-shell/lib/gitlab_net.rb:17:in `allowed?'
        from /home/git/gitlab-shell/lib/gitlab_shell.rb:60:in `validate_access'
        from /home/git/gitlab-shell/lib/gitlab_shell.rb:23:in `exec'
        from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
fatal: The remote end hung up unexpectedly
内网服务器在搬迁之前是能正常提供服务,但是搬迁之后,修改了IP地址,其他都没有变化

服务启动之后,web的访问没有任何问题,但是客户端远程git clone工程就会报错。

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

    引用来自“钱总”的答案

    我遇到的错误跟你差不多,求解答

    root@AY13102515245237131fZ:/home/git/gitlab-shell#./bin/checkCheckGitLabAPIaccess:/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`initialize':Connectionrefused-connect(2)(Errno::ECONNREFUSED)from/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`open'from/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`blockinconnect'from/usr/local/lib/ruby/2.0.0/timeout.rb:52:in`timeout'from/usr/local/lib/ruby/2.0.0/net/http.rb:877:in`connect'from/usr/local/lib/ruby/2.0.0/net/http.rb:862:in`do_start'from/usr/local/lib/ruby/2.0.0/net/http.rb:851:in`start'from/home/git/gitlab-shell/lib/gitlab_net.rb:62:in`get'from/home/git/gitlab-shell/lib/gitlab_net.rb:29:in`check'from./bin/check:11:in`<main>'

    我遇到的错误跟你差不多,求解答

    root@AY13102515245237131fZ:/home/git/gitlab-shell#./bin/checkCheckGitLabAPIaccess:/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`initialize':Connectionrefused-connect(2)(Errno::ECONNREFUSED)from/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`open'from/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`blockinconnect'from/usr/local/lib/ruby/2.0.0/timeout.rb:52:in`timeout'from/usr/local/lib/ruby/2.0.0/net/http.rb:877:in`connect'from/usr/local/lib/ruby/2.0.0/net/http.rb:862:in`do_start'from/usr/local/lib/ruby/2.0.0/net/http.rb:851:in`start'from/home/git/gitlab-shell/lib/gitlab_net.rb:62:in`get'from/home/git/gitlab-shell/lib/gitlab_net.rb:29:in`check'from./bin/check:11:in`<main>'我找到原因,就是需要把所有需要修改IP的地方都修改一次搜索git安装目录下面的所有文件,查询可能有的以前服务器IP地址的文件,全部替换,即可!

    引用来自“桥下一粒砂”的答案

    引用来自“钱总”的答案

    我遇到的错误跟你差不多,求解答

    root@AY13102515245237131fZ:/home/git/gitlab-shell#./bin/checkCheckGitLabAPIaccess:/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`initialize':Connectionrefused-connect(2)(Errno::ECONNREFUSED)from/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`open'from/usr/local/lib/ruby/2.0.0/net/http.rb:878:in`blockinconnect'from/usr/local/lib/ruby/2.0.0/timeout.rb:52:in`timeout'from/usr/local/lib/ruby/2.0.0/net/http.rb:877:in`connect'from/usr/local/lib/ruby/2.0.0/net/http.rb:862:in`do_start'from/usr/local/lib/ruby/2.0.0/net/http.rb:851:in`start'from/home/git/gitlab-shell/lib/gitlab_net.rb:62:in`get'from/home/git/gitlab-shell/lib/gitlab_net.rb:29:in`check'from./bin/check:11:in`<main>'
    2020-06-22 15:09:18
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
新一代高效Git协同模型 立即下载
AGit-Flow:新一代高效Git协同模型 立即下载
AGit-flow:新一代高效Git协同模型 立即下载