gitlabをインストールしました
読んだ後、gitlabをインストールしました
- https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md
- https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/databases.md
- エラー: gem ネイティブ拡張のビルドに失敗しました (レール 3.2.3 上の mysql2)
- http://ubuntuforums.org/showthread.php?t=2061057
- https://stackoverflow.com/questions/13018626/add-apt-repository-not-found
ブラウザでgitlabにレポジトリを作って、
セットアップし
て~/.ssh/config
、
$ git push origin master
エラーが発生しました
/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 rights
and the repository exists.
それらを読みましたが、このエラーを解決できません。
(多分私は英語が下手なので、読むのが苦手です)
- https://github.com/gitlabhq/gitlab-shell/issues/20
- https://github.com/gitlabhq/gitlabhq/issues/3384
- https://github.com/gitlabhq/gitlabhq/issues/4566
ssh -vT 同じエラー
...
...
debug1: Sending env LC_CTYPE = UTF-8
debug1: 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 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2560, received 3808 bytes, in 0.4 seconds
Bytes per second: sent 7260.5, received 10799.9
debug1: Exit status 1
なぜ Ruby を使用して ssh を使用するのですか?
どの設定で Ruby を使用しますか? このエラーを解決するにはどうすればよいですか?
PS
ルビーを使っているものを見つけました。
/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
に接続し
https://my-server/api/v3/internal/discover?key_id=5
ますが、httpsの設定をしていないので、これは
This webpage is not available
http://my-server/api/v3/internal/discover?key_id=5
サーバーに接続できます。
私はとても近いです。
SSLを設定しますか?