使用TortoiseGit把代码Push到gitlab时,提示Address family not supported by protocol - socket(2) for "localhost

zhang1120 发布于 2014/10/11 19:24
阅读 2K+
收藏 0

使用TortoiseGit把代码Push到gitlab时,提示下面的错误提示,请问这个是什么问题,如何解决?

提示内容如下:

git.exe push --progress  "origin" master:master



Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6), 454 bytes, done.
Total 6 (delta 0), reused 0 (delta 0)
remote: /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:879:in `initialize': Address family not supported by protocol - socket(2) for "localhost" port 8080 (Errno::EAFNOSUPPORT)
remote: from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:879:in `open'
remote: from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:879:in `block in connect'
remote: from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
remote: from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:878:in `connect'
remote: from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
remote: from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:852:in `start'
remote: from /home/git/gitlab-shell/lib/gitlab_net.rb:79:in `get'
remote: from /home/git/gitlab-shell/lib/gitlab_net.rb:31:in `allowed?'
remote: from /home/git/gitlab-shell/lib/gitlab_update.rb:39:in `exec'
remote: from hooks/update:13:in `<main>'
remote: error: hook declined to update refs/heads/master


加载中
0
Feng_Yu
Feng_Yu
这个是gitlab的配置问题,我也遇到过,忘了怎么解决的了,反正就是google+官方文档,然后自己把问题解决了
Feng_Yu
Feng_Yu
回复 @zhang1120 : 直接用最新版,修复了几个安全漏洞
zhang1120
zhang1120
回复 @Feng_Yu : 嗯,我再查查。 现在gitlab哪个版本比较稳定
Feng_Yu
Feng_Yu
回复 @zhang1120 : 你这个错误似乎跟我当时遇到的push错误报错不一样。
zhang1120
zhang1120
回复 @Feng_Yu : 好的,你能帮一起找下资料吗。
Feng_Yu
Feng_Yu
回复 @zhang1120 : google错误关键字解决了
下一页
返回顶部
顶部