2013-07-29 29 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。