"GitLab没有响应."启动服务器后在Ubuntu 14.04上安装502 [英] "GitLab is not responding." 502 on Ubuntu 14.04 after starting server

查看:190
本文介绍了"GitLab没有响应."启动服务器后在Ubuntu 14.04上安装502的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在新的Ubuntu 14.04 64位服务器上安装了GitLab.我这样做是按照下载页面中所述的Omnibus软件包进行的.安装过程中没有错误消息,并且脚本中的所有注释均以绿色显示.

I have just installed GitLab on a fresh Ubuntu 14.04 64 bit server. I did so using the Omnibus package as indicated in the download page. There were no error messages during the install and all the remarks from the script were displayed in green.

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

When I access the server through port 80 I get the following:

按照《故障排除指南》 查询状态,但结果也是错误:

Following the Trouble Shooting Guide I tried to query the status, but the result is also an error:

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

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

I tried to access the logs but the unicorn.stderr.log file is nowhere to be found in the system.

在Ubuntu 12.04上有一个类似的问题,具有相同的错误,解决方案是增加独角兽超时.我尝试这样做,但错误消息仍然存在.

There is a similar question with the same error on Ubuntu 12.04, to which the solution is to increase the unicorn timeout. I have tried to do so but the error message remains.

推荐答案

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

There is a lag of some 5 minutes from the moment gitlab is started/restarted to the point when it is actually able to process requests. Here is an example from the log:

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没有响应"消息.因此,所有要做的就是等待.

Before Unicorn reports that it is up and running on port 8080, the "GitLab is not responding" message will be displayed. So all one has to do is wait.

这篇关于"GitLab没有响应."启动服务器后在Ubuntu 14.04上安装502的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆