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

标签 ubuntu gitlab

我刚刚在全新的 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/

相关文章:

gitlab runner 请求的URL返回错误: 403

gitlab - 从哪里获取 Gitlab 中存储库的存储库 ID?

linux - 由于 mkdir 拒绝,无法安装软件

mysql - 无法连接到远程mysql数据库服务器

postgresql - 无法连接到 Tryton 数据库

bash - 如何执行位于 $PATH 中的文件

Gitlab-runner 更改 builds_dir

backup - Gitlab备份与恢复

ubuntu - 在标准 gitlab 安装上运行另一个网站

ubuntu - 如何在 ubuntu budgie 中更改默认终端