Gitlab提交時間錯誤問題修復


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

  查看各個服務運行狀態均正常

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM