gpt4 book ai didi

ubuntu - 启动服务器后 Ubuntu 14.04 上的 "GitLab is not responding."502

转载 作者:太空宇宙 更新时间:2023-11-03 16:43:04 25 4
gpt4 key购买 nike

我刚刚在全新的 Ubuntu 14.04 64 位服务器上安装了 GitLab。我这样做是使用 download page 中指示的 Omnibus 包。 .安装期间没有错误消息,脚本中的所有注释都显示为绿色。

当我通过端口 80 访问服务器时,我得到以下信息:

enter image description here

Trouble Shooting Guide 之后我尝试查询状态,结果也是报错:

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
sudo: bundle: command not found

我尝试访问日志,但系统中找不到 unicorn.stderr.log 文件。

a similar question在 Ubuntu 12.04 上出现相同的错误,解决方案是增加 unicorn 超时。我已尝试这样做,但错误消息仍然存在。

最佳答案

从启动/重新启动 gitlab 到它实际能够处理请求的时间点有大约 5 分钟的延迟。这是日志中的示例:

2015-01-08_09:00:57.37719 [13326] 08 Jan 10:00:57.377 * The server is now ready to accept connections on port 0
2015-01-08_09:00:57.37722 [13326] 08 Jan 10:00:57.377 * The server is now ready to accept connections at /var/opt/gitlab/redis/redis.socket

[...]

==> /var/log/gitlab/unicorn/unicorn_stderr.log <==
I, [2015-01-08T10:04:48.676879 #13351] INFO -- : listening on addr=127.0.0.1:8080 fd=11
I, [2015-01-08T10:04:48.677663 #13351] INFO -- : unlinking existing socket=/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket
I, [2015-01-08T10:04:48.690283 #13351] INFO -- : listening on addr=/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket fd=12
I, [2015-01-08T10:04:48.716769 #13413] INFO -- : worker=0 spawned pid=13413
I, [2015-01-08T10:04:48.735878 #13351] INFO -- : master process ready
I, [2015-01-08T10:04:48.846635 #13416] INFO -- : worker=1 spawned pid=13416
I, [2015-01-08T10:04:48.837438 #13413] INFO -- : worker=0 ready
I, [2015-01-08T10:04:48.863110 #13416] INFO -- : worker=1 ready

在 Unicorn 报告它已在端口 8080 上启动并运行之前,将显示“GitLab 未响应”消息。所以大家所要做的就是等待。

关于ubuntu - 启动服务器后 Ubuntu 14.04 上的 "GitLab is not responding."502,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27816046/

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