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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最近也在尝试在自己的测试服务器 CentOS 7 上安装使用 Jenkins,但是发现如果你的服务器性能比较差,很容易就会出现 502 的,官方推荐的服务器性能是最低 双核 + 8GB RAM。
CentOS 7 上安装 Jenkins 实践
检查下gitlab下的日志
tail -100 /var/log/gitlab/gitlab-rails/production.log