centos – GitLab和Prometheus失败

前端之家收集整理的这篇文章主要介绍了centos – GitLab和Prometheus失败前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
设置:在CentOS 6.4上安装了Omnibus软件包的 GitLab

在我对GitLab配置文件/etc/gitlab/gitlab.rb进行更改以将Bitbucket配置为OAuth2提供程序之后,我运行了重新配置:

sudo gitlab-ctl reconfigure

在我启动此命令后,我看到了一些错误,可能是关于监控服务,但SSH会话丢失,我还没有看到发生了什么.
恢复会话后GitLab无法访问,我能够看到GitLab徽标,出现502错误:“GitLab需要花费太多时间来回复”或类似的东西.

所以我已经恢复了配置文件,认为它出了问题……

跑尾我有以下错误(普罗米修斯失败):

2018-01-30_22:19:19.28021 time="2018-01-30T23:19:19+01:00" level=info msg="Starting prometheus (version=,branch=,revision=)" source="main.go:87"
2018-01-30_22:19:19.28027 time="2018-01-30T23:19:19+01:00" level=info msg="Build context (go=go1.9.2,user=,date=)" source="main.go:88"
2018-01-30_22:19:19.28030 time="2018-01-30T23:19:19+01:00" level=info msg="Host details (Linux 2.6.32-642.11.1.el6.x86_64 #1 SMP Fri Nov 18 19:25:05 UTC 2016 x86_64 lnx01.brainsen.com (none))" source="main.go:89"
2018-01-30_22:19:19.29486 time="2018-01-30T23:19:19+01:00" level=info msg="Loading configuration file /var/opt/gitlab/prometheus/prometheus.yml" source="main.go:254"
2018-01-30_22:19:19.29779 time="2018-01-30T23:19:19+01:00" level=error msg="Could not open the fingerprint-to-metric index for archived series. Please try a 3rd party tool to repair LevelDB in directory "/var/opt/gitlab/prometheus/data/archived_fingerprint_to_metric". If unsuccessful or undesired,delete the whole directory and restart Prometheus for crash recovery. You will lose all archived time series." source="persistence.go:213"
2018-01-30_22:19:19.29781 time="2018-01-30T23:19:19+01:00" level=error msg="Error opening memory series storage: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000923]" source="main.go:192"

我已经运行了命令

sudo -u gitlab-prometheus python -c "import leveldb; leveldb.RepairDB('/var/opt/gitlab/prometheus/data/archived_fingerprint_to_metric')"

但我收到的消息是:

Traceback (most recent call last):
File "<string>",line 1,in <module>
ImportError: No module named leveldb

现在GitLab工作正常但运行尾巴我仍然每隔2秒看到关于Prometheus的上述错误,我想在不破坏我的GitLab安装的情况下修复它.

问题是gitlab在pyvenv设置中运行Prometheus,我无法找到它的位置.

你可以随时

pip install leveldb

然后运行命令..它应该工作

原文链接:https://www.f2er.com/centos/373291.html

猜你在找的CentOS相关文章