Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loki 2.9.0 to 3.0.0 upgrade issue: flag provided but not defined: -boltdb.shipper.compactor.working-directory #15422

Open
yasharne opened this issue Dec 15, 2024 · 2 comments

Comments

@yasharne
Copy link
Contributor

Describe the bug
I have made all the changes needed for upgrading from 2.9.0 to 3.0.0 described here: https://grafana.com/docs/loki/latest/setup/upgrade/#300
All components are up as expected, but compactor is in crashloopbackoff with this error:

flag provided but not defined: -boltdb.shipper.compactor.working-directory
Run with -help to get list of available parameters

here is my compactor config section:

compactor:
  working_directory: /var/loki/compactor
  compaction_interval: 10m
  delete_request_cancel_period: 15m
  delete_request_store: s3
  retention_enabled: true
  retention_delete_delay: 2h
  retention_delete_worker_count: 150
  compactor_ring:
    kvstore:
        store: memberlist

To Reproduce
Steps to reproduce the behavior:

  1. update loki to version 3.0.0

Expected behavior
Compactor start working

Environment:

  • Infrastructure: openshift
  • Deployment tool:helm

Screenshots, Promtail config, or terminal output

@dtunikov
Copy link

Hi @yasharne
It looks like your configuration still refers to -boltdb.shipper, which was deprecated in favor of -compactor:

- The `-boltdb.shipper.compactor.*` CLI flags are deprecated in favor of `-compactor.*`.

PR: https://github.com/grafana/loki/pull/11151/files#diff-adc81f6ffba52bc1871b0dac7c88237aa1cdea40e7691e35e834b40129ab723fL129

@JStickler
Copy link
Contributor

The BoltDB store is deprecated in Loki 3.0. You should migrate from BoltDB to TSDB, and then perform the Loki upgrade. This is mentioned in the TIP in the Loki upgrade documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants