状況
GitLab を Docker(Docker Compose)で使っていて、バージョンを上げるために一度 down してイメージを削除して最新イメージを落として、docker-compose up したら(エラー)メッセージの嵐嵐嵐……
エラーメッセージ詳細
エラーメッセージの詳細は以下のとおりです。
level=error msg="Could not open the fingerprint-to-metric index for archived series. Please try a 3rd party tool to repair LevelDB in directory "/var/opt/gitlab/prometheus/data/archived_fingerprint_to_metric". If unsuccessful or undesired, delete the whole directory and restart Prometheus for crash recovery. You will lose all archived time series." source="persistence.go:213" level=error msg="Error opening memory series storage: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000121]" source="main.go:192"
どうしたらいいか
Prometheus
を明示的に無効にしましょう。gitlab.rb
の Prometheus
の設定部分を以下のように設定します。
################################################################################ ## Prometheus ##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/ ################################################################################ prometheus['enable'] = false
再起動
これで再起動をすれば、大丈夫なはずです。