gitlab-ctl status
gitlab提交時間顯示錯誤,明明是近期修改提交的代碼在頁面顯示的時間是19年前
查看配置文件
/etc/gitlab/gitlab.rb
時區設置正確,再說就算是時區設置錯誤相差也應該是8小時
gitlab_rails['time_zone'] = 'Asia/Shanghai'
查看gitlab狀態其他服務正常只有prometheus宕
查看日志
tail -f /var/log/gitlab/prometheus/current
報錯如下
2019-07-24_03:11:06.07552 time="2019-07-24T11:11:06+08:00" level=error msg="Error opening memory series storage: found existing files in storage path that do not look like storage files compatible with this version of Prometheus; please delete the files in the storage path or choose a different storage path" source="main.go:192"
根據提示,刪除數據文件夾
/var/opt/gitlab/prometheus/data
然后重啟gitlab即可,會重新生成數據文件夾
gitlab-ctl restart
查看各個服務運行狀態均正常