gpt4 book ai didi

ruby - Gitlab 5.4 - 无法推送(SocketError)

转载 作者:数据小太阳 更新时间:2023-10-29 07:53:09 26 4
gpt4 key购买 nike

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

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

 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:有点类似的问题 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/运行。

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

最佳答案

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

127.0.0.1   gitlab.company.com  

关于ruby - Gitlab 5.4 - 无法推送(SocketError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17923673/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com