2013-07-29 68 views
3

我使用Bitnami Stack 5.4.0-0Gitlab 5.4 - 不能推(SocketError)

創建用戶,登錄和添加鍵,推到新的倉庫時,經過了GitLab 5.4

[email protected]:gitdemo1/gittest1.git: /opt/bitnami/ruby/lib/ruby/1.9.1/net/http.rb:763:in `initialize': getaddrinfo: Temporary failure in name resolution (SocketError) 
    from /opt/bitnami/ruby/lib/ruby/1.9.1/net/http.rb:763:in `open' 
    from /opt/bitnami/ruby/lib/ruby/1.9.1/net/http.rb:763:in `block in connect' 
    from /opt/bitnami/ruby/lib/ruby/1.9.1/timeout.rb:55:in `timeout' 
    from /opt/bitnami/ruby/lib/ruby/1.9.1/timeout.rb:100:in `timeout' 
    from /opt/bitnami/ruby/lib/ruby/1.9.1/net/http.rb:763:in `connect' 
    from /opt/bitnami/ruby/lib/ruby/1.9.1/net/http.rb:756:in `do_start' 
    from /opt/bitnami/ruby/lib/ruby/1.9.1/net/http.rb:745:in `start' 
    from /opt/bitnami/apps/gitlab/gitlab-shell/lib/gitlab_net.rb:62:in `get' 
    from /opt/bitnami/apps/gitlab/gitlab-shell/lib/gitlab_net.rb:17:in `allowed?' 
    from /opt/bitnami/apps/gitlab/gitlab-shell/lib/gitlab_shell.rb:60:in `validate_access' 
    from /opt/bitnami/apps/gitlab/gitlab-shell/lib/gitlab_shell.rb:23:in `exec' 
    from /opt/bitnami/apps/gitlab/gitlab-shell/bin/gitlab-shell:16:in `<main>' 

UPDATE: 請幫助啓動GitLab服務器。我們嘗試了3臺電腦,但沒有成功。

更新2:gitlam.yml表示不支持relative_url_root,而Bitnami GitLab運行在服務器/ gitlab/

# WARNING: This feature is no longer supported 

更新3:有點類似的問題Gitlab 5.4 push connection refused通過改變默認URL根解決http://wiki.bitnami.com/Applications/BitNami_GitLab#How_to_change_the_default_URL_to_the_root.3f 但是在執行所有這些步驟之後,即使在重啓後,我的GitLab仍然在/ gitlab /上運行。

訪問/,獲取消息「Not Found:/」而不是默認屏幕。所以過渡並不完整。

+0

我明白了。所以呢? – sawa

+0

複製到Bitnami答案http://answers.bitnami.com/questions/15301/gitlab-54-canot-push-socketerror –

回答

5

服務器本身無法解析域名。解決方案是將該域添加到/ etc/hosts文件中。

127.0.0.1 gitlab.company.com 
0

還檢查gitlab/config/resque.yml中的redis配置。可以指向redis.example.com。