Note that there are some explanatory texts on larger screens.

plurals
  1. POgitlab6.0, Error Connection refused - connect(2) (Errno::ECONNREFUSED)
    primarykey
    data
    text
    <h2>I installed gitlab</h2> <p>I installed gitlab, after reading</p> <ul> <li><a href="https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md" rel="nofollow noreferrer">https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md</a></li> <li><a href="https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/databases.md" rel="nofollow noreferrer">https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/databases.md</a></li> <li><a href="https://stackoverflow.com/questions/10051448/error-failed-to-build-gem-native-extension-mysql2-on-rails-3-2-3">ERROR: Failed to build gem native extension (mysql2 on rails 3.2.3)</a></li> <li><a href="http://ubuntuforums.org/showthread.php?t=2061057" rel="nofollow noreferrer">http://ubuntuforums.org/showthread.php?t=2061057</a></li> <li><a href="https://stackoverflow.com/questions/13018626/add-apt-repository-not-found">https://stackoverflow.com/questions/13018626/add-apt-repository-not-found</a></li> </ul> <p>I make repository in gitlab on browser,<br> I set up <code>~/.ssh/config</code>,<br> and<br> <code>$ git push origin master</code></p> <h2>I got Erorr</h2> <pre><code>/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 `&lt;main&gt;' fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. </code></pre> <h2>I have read them, but I can not resolve this error.</h2> <p>(Maybe I am poor English, so I miss reading) </p> <ul> <li><a href="https://github.com/gitlabhq/gitlab-shell/issues/20" rel="nofollow noreferrer">https://github.com/gitlabhq/gitlab-shell/issues/20</a></li> <li><a href="https://github.com/gitlabhq/gitlabhq/issues/3384" rel="nofollow noreferrer">https://github.com/gitlabhq/gitlabhq/issues/3384</a></li> <li><a href="https://github.com/gitlabhq/gitlabhq/issues/4566" rel="nofollow noreferrer">https://github.com/gitlabhq/gitlabhq/issues/4566</a></li> </ul> <h2>ssh -vT same Error</h2> <pre><code>... ... 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 `&lt;main&gt;' 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 </code></pre> <h2>Why ssh useing Ruby?</h2> <p>Which setting use Ruby? How to resolve this error?</p> <h2>P.S.</h2> <p>I found which use ruby.</p> <p><code>/home/git/.ssh/authorized_keys</code></p> <pre><code>command="/home/git/gitlab-shell/bin/gitlab-shell key-4",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa ..... </code></pre> <p>so I command this</p> <pre><code>$ /home/git/gitlab-shell/bin/gitlab-shell key-4 </code></pre> <p>I got same Error</p> <pre><code>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 `&lt;main&gt;' </code></pre> <p>So, I have read <code>/home/git/gitlab-shell/lib/gitlab_net.rb</code> script.</p> <h2>gitlab_net.rb connect to</h2> <p><code>gitlab_net.rb</code> connect to<br> <code>https://my-server/api/v3/internal/discover?key_id=5</code><br> but I did not setup for https, so this is<br> <code>This webpage is not available</code></p> <p><code>http://my-server/api/v3/internal/discover?key_id=5</code> can connect to server.</p> <p>I am so close.</p> <p>setup ssl?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload