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

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

 

转载于:https://www.cnblogs.com/minseo/p/11236956.html

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值