我在阅读后安装了gitlab
> https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md@H_404_12@> https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/databases.md@H_404_12@> ERROR: Failed to build gem native extension (mysql2 on rails 3.2.3)@H_404_12@> http://ubuntuforums.org/showthread.php?t=2061057@H_404_12@> https://stackoverflow.com/questions/13018626/add-apt-repository-not-found
我在浏览器的gitlab上创建了存储库,@H_404_12@我设置〜/ .ssh / config,@H_404_12@和@H_404_12@$git push origin master
我得到了Erorr
/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `initialize': Connection refused - 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 `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: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
我已阅读过它们,但我无法解决此错误.
(也许我的英语很差,所以我很想念)
> https://github.com/gitlabhq/gitlab-shell/issues/20@H_404_12@> https://github.com/gitlabhq/gitlabhq/issues/3384@H_404_12@> https://github.com/gitlabhq/gitlabhq/issues/4566
ssh -vT相同的错误
......deBUG1: Sending env LC_CTYPE = UTF-8deBUG1: Sending env LANG = ja_JP.UTF-8/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `initialize': Connection refused - 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 `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:24:in `discover' from /home/git/gitlab-shell/lib/gitlab_shell.rb:77:in `user' from /home/git/gitlab-shell/lib/gitlab_shell.rb:82:in `username' from /home/git/gitlab-shell/lib/gitlab_shell.rb:36:in `exec' from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'deBUG1: clIEnt_input_channel_req: channel 0 rtype exit-status reply 0deBUG1: clIEnt_input_channel_req: channel 0 rtype [email protected] reply 0deBUG1: channel 0: free: clIEnt-session,nchannels 1Transferred: sent 2560,received 3808 bytes,in 0.4 secondsBytes per second: sent 7260.5,received 10799.9deBUG1: Exit status 1
为什么ssh使用Ruby?
哪个设置使用Ruby?@H_404_12@如何解决此错误?
附:
我发现哪个使用ruby.
/home/git/.ssh/authorized_keys
command="/home/git/gitlab-shell/bin/gitlab-shell key-4",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa .....
所以我命令这个
$/home/git/gitlab-shell/bin/gitlab-shell key-4
我得到了同样的错误
usr/local/lib/ruby/2.0.0/net/http.rb:878:in `initialize': Connection refused - 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 `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:24:in `discover' from /home/git/gitlab-shell/lib/gitlab_shell.rb:77:in `user' from /home/git/gitlab-shell/lib/gitlab_shell.rb:82:in `username' from /home/git/gitlab-shell/lib/gitlab_shell.rb:36:in `exec' from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
所以,我已经阅读了/home/git/gitlab-shell/lib/gitlab_net.rb脚本.
gitlab_net.rb连接到
gitlab_net.rb连接到@H_404_12@httpS://我的服务器/ API / V3 /内部/发现KEY_ID = 5@H_404_12@但我没有为https设置,所以这是@H_404_12@此网页无法使用
http://我的服务器/ API / V3 /内部/发现KEY_ID = 5@H_404_12@可以连接到服务器.
我很亲密
设置ssl?
解决方法 我昨天使用我的gitlab设置遇到了同样的问题,并且在阅读 this之后能够修复它.基本上你要做的是编辑你的’my-server’计算机上的/ etc / hosts文件并添加127.0.0.1 your-gitlab-url总结
以上是内存溢出为你收集整理的ruby-on-rails – gitlab6.0,错误连接被拒绝 – 连接(2)(Errno :: ECONNREFUSED)全部内容,希望文章能够帮你解决ruby-on-rails – gitlab6.0,错误连接被拒绝 – 连接(2)(Errno :: ECONNREFUSED)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)