我按照https://docs.gitlab.com/omnibus/docker/README.html
中描述的文档安装了gitlab docker安装完成后,我从旧服务器备份gitlab数据并在新服务器中恢复。
在这种状态下一切正常,但我的日志充满了以下错误。
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/-/metrics" for 127.0.0.1 at 2017-08-14 11:34:23 +0000
Processing by MetricsController#index as HTML
Filter chain halted as :validate_prometheus_metrics rendered or redirected
Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
==> /var/log/gitlab/gitlab-monitor/current <==
2017-08-14_11:34:30.58806 ::1 - - [14/Aug/2017:11:34:30 UTC] "GET /sidekiq HTTP/1.1" 200 3399
2017-08-14_11:34:30.58809 - -> /sidekiq
2017-08-14_11:34:32.51269 ::1 - - [14/Aug/2017:11:34:32 UTC] "GET /database HTTP/1.1" 200 42149
2017-08-14_11:34:32.51272 - -> /database
==> /var/log/gitlab/node-exporter/current <==
2017-08-14_11:34:33.97247 time="2017-08-14T11:34:33Z" level=error msg="ERROR: wifi collector failed after 0.000044s: failed to access wifi data: permission denied" source="node_exporter.go:95"
==> /var/log/gitlab/gitlab-monitor/current <==
2017-08-14_11:34:34.78141 ::1 - - [14/Aug/2017:11:34:34 UTC] "GET /process HTTP/1.1" 200 2212
2017-08-14_11:34:34.78143 - -> /process
==> /var/log/gitlab/gitlab-rails/production.log <==
此处突出显示的错误是&#34; 错误:0.000044s后wifi收集器失败:无法访问wifi数据:权限被拒绝&#34;
我没有看到由于此错误导致的任何副作用,但它几乎每10秒运行一次,导致日志已满。
可以解释一下:
提前致谢。
答案 0 :(得分:0)
该错误是由SELinux引起的。 GitLab正在修复。此问题已在此处报告并确认:https://gitlab.com/gitlab-org/gitlab-ce/issues/36559