zoukankan      html  css  js  c++  java
  • 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
    

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

  • 相关阅读:
    斐波那契数列的递归和非递归实现
    二叉树遍历
    基础总结
    内部类
    I/O dempo
    读取文件注意事项
    eclipse 主题设置
    String 常用函数
    多态的理解
    ffmpeg处理RTMP流媒体的命令大全
  • 原文地址:https://www.cnblogs.com/minseo/p/11236956.html
Copyright © 2011-2022 走看看