Project

General

Profile

Bug #518

Problem Pushing Git Commits With GitLab

Added by Daniel Curtis over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
12/30/2014
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

I encountered a problem while pushing new commits to my GitLab server. I was able to access the web front end, so the problem was specifically happening with the gitlab-shell.

  • When I ran the following:
    git push origin master
    
    • I got the following error:
      /usr/local/lib/ruby/2.0/net/http.rb:878:in `initialize': getaddrinfo: hostname nor servname provided, or not known (SocketError)
          from /usr/local/lib/ruby/2.0/net/http.rb:878:in `open'
          from /usr/local/lib/ruby/2.0/net/http.rb:878:in `block in connect'
          from /usr/local/lib/ruby/2.0/timeout.rb:52:in `timeout'
          from /usr/local/lib/ruby/2.0/net/http.rb:877:in `connect'
          from /usr/local/lib/ruby/2.0/net/http.rb:862:in `do_start'
          from /usr/local/lib/ruby/2.0/net/http.rb:851:in `start'
          from /usr/home/git/gitlab-shell/lib/gitlab_net.rb:103:in `post'
          from /usr/home/git/gitlab-shell/lib/gitlab_net.rb:28:in `check_access'
          from /usr/home/git/gitlab-shell/lib/gitlab_shell.rb:63:in `validate_access'
          from /usr/home/git/gitlab-shell/lib/gitlab_shell.rb:24:in `exec'
          from /usr/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.
      
  • It turns out that I had recently migrated my name server and forgot to add a proper DNS record for the GitLab servers hostname. Once I added the DNS record I was able to push commits again.

Resources

https://stackoverflow.com/questions/4132525/getaddrinfo-nodename-nor-servname-provided-or-not-known

#1

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
  • Status changed from New to Resolved
#2

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
  • % Done changed from 0 to 100
#3

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
#4

Updated by Daniel Curtis over 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF