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