centos7 安装gitlab 访问出现 502

提示这个错误 Whoops, GitLab is taking too much time to respond.
centos7 安装gitlab 访问出现 502
根据网上解决办法 我修改了 端口号修改成了 8081
我的服务器是
内存2 GB
磁盘40 GB
1核

公网的ip http://120.79.132.104/

log
[root@izwz963kajb8wuzwbphs6fz admin]# tail -100 /var/log/gitlab/gitlab-rails/production.log
Filter chain halted as :check_initial_setup rendered or redirected
Completed 302 Found in 59985ms (ActiveRecord: 342.7ms)
Started GET "/" for 222.209.157.149 at 2018-02-22 15:16:32 +0800
Processing by RootController#index as HTML
Redirected to http://120.79.132.104/users/s...
Filter chain halted as :redirect_unlogged_user rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
Raven 2.5.3 configured not to capture errors: DSN not set
Raven 2.5.3 configured not to capture errors: DSN not set
Started GET "/" for at 2018-02-22 15:17:57 +0800
Processing by RootController#index as HTML
Redirected to http://example.org/users/sign_in
Filter chain halted as :redirect_unlogged_user rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
Started GET "/" for 222.209.157.149 at 2018-02-22 15:18:57 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:18:57 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:19:11 +0800
Started GET "/" for 222.209.157.149 at 2018-02-22 15:19:16 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:19:26 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:19:41 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:19:56 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:20:19 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:20:26 +0800
Raven 2.5.3 configured not to capture errors: DSN not set
Raven 2.5.3 configured not to capture errors: DSN not set
Started GET "/" for at 2018-02-22 15:22:56 +0800
Processing by RootController#index as HTML
Redirected to http://example.org/users/sign_in
Filter chain halted as :redirect_unlogged_user rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:23:11 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:23:26 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:23:41 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:23:56 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:24:11 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:24:26 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:24:41 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:25:34 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:25:42 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:26:07 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 105ms (Views: 93.3ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:26:56 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:26:59 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 100ms (Views: 93.7ms | ActiveRecord: 0.0ms)
Raven 2.5.3 configured not to capture errors: DSN not set
Raven 2.5.3 configured not to capture errors: DSN not set
Started GET "/" for at 2018-02-22 15:32:55 +0800
Processing by RootController#index as HTML
Redirected to http://example.org/users/sign_in
Filter chain halted as :redirect_unlogged_user rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:33:51 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:33:57 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:34:12 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:34:27 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:34:42 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:34:57 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:35:12 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:35:27 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:35:42 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:35:57 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:36:12 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:36:27 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:36:42 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:36:57 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:37:18 +0800
Processing by MetricsController#index as HTML
Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/" for 222.209.157.149 at 2018-02-22 15:39:33 +0800
Processing by RootController#index as HTML
Redirected to http://120.79.132.104/users/s...
Filter chain halted as :redirect_unlogged_user rendered or redirected
Completed 302 Found in 26ms (ActiveRecord: 0.0ms)
Started GET "/users/sign_in" for 222.209.157.149 at 2018-02-22 15:40:30 +0800
Started GET "/" for 210.74.149.155 at 2018-02-22 15:41:07 +0800
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:41:34 +0800
Raven 2.5.3 configured not to capture errors: DSN not set
Raven 2.5.3 configured not to capture errors: DSN not set
Started GET "/" for at 2018-02-22 15:45:26 +0800
Processing by RootController#index as HTML
Redirected to http://example.org/users/sign_in
Filter chain halted as :redirect_unlogged_user rendered or redirected
Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-02-22 15:45:40 +0800

阅读 13.9k
2 个回答

检查下gitlab下的日志tail -100 /var/log/gitlab/gitlab-rails/production.log

最近也在尝试在自己的测试服务器 CentOS 7 上安装使用 Jenkins,但是发现如果你的服务器性能比较差,很容易就会出现 502 的,官方推荐的服务器性能是最低 双核 + 8GB RAM。

clipboard.png

CentOS 7 上安装 Jenkins 实践

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题