3

我使用Bitnami Stack 5.4.0-0获得了GitLab 5.4

创建用户,登录并添加密钥后,推送到新存储库时

 git@gitlab.funshion.com: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>'

更新:请帮助启动 GitLab 服务器。我们在 3 台电脑上试了试,没有成功。

更新 2: gitlam.yml 说 relative_url_root 不受支持,而 Bitnami GitLab 在 server/gitlab/ 上运行

# WARNING: This feature is no longer supported

更新 3:通过将默认 URL 更改为根http://wiki.bitnami.com/Applications/BitNami_GitLab#How_to_change_the_default_URL_to_the_root.3f解决了一个类似的问题Gitlab 5.4 push connection denied 但是在执行所有这些步骤之后,我的 GitLab 仍然即使在重新启动后也在 /gitlab/ 上运行。

访问 / ,得到消息“未找到:/”而不是默认屏幕。所以过渡并不完整。

4

2 回答 2

5

服务器本身无法解析域名。解决方案是在 /etc/hosts 文件中添加域。

127.0.0.1   gitlab.company.com  
于 2013-07-31T05:10:03.533 回答
0

还要检查 gitlab/config/resque.yml 中的 redis 配置。可能指向 redis.example.com。

于 2014-01-13T13:11:07.553 回答