鍍金池/ 問答/Linux/ centos7 安裝gitlab 訪問出現(xiàn) 502

centos7 安裝gitlab 訪問出現(xiàn) 502

提示這個錯誤 Whoops, GitLab is taking too much time to respond.
centos7 安裝gitlab 訪問出現(xiàn) 502
根據(jù)網(wǎng)上解決辦法 我修改了 端口號修改成了 8081
我的服務(wù)器是
內(nèi)存2 GB
磁盤40 GB
1核

公網(wǎng)的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

回答
編輯回答
夏木

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

2018年6月7日 18:43