Gitlab提交时间错误问题修复

1
gitlab-ctl status

  

  gitlab提交时间显示错误,明明是近期修改提交的代码在页面显示的时间是19年前

  查看配置文件

1
/etc/gitlab/gitlab.rb

  时区设置正确,再说就算是时区设置错误相差也应该是8小时

1
gitlab_rails['time_zone'] = 'Asia/Shanghai'

  查看gitlab状态其他服务正常只有prometheus宕

  查看日志

1
tail -f /var/log/gitlab/prometheus/current

  报错如下

1
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"

  根据提示,删除数据文件夹

1
/var/opt/gitlab/prometheus/data

  然后重启gitlab即可,会重新生成数据文件夹

1
gitlab-ctl restart

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

 

posted @   minseo  阅读(3718)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
点击右上角即可分享
微信分享提示