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

  查看各个服务运行状态均正常

猜你喜欢

转载自www.cnblogs.com/minseo/p/11236956.html
今日推荐