Loki Fails To Start With ObjectStorage enabled and strategey: monolith
Bug
Description
Setting this combination results in a pod startup errror (also set all replicas to 0 if using test-values.yaml
)
loki:
strategy: monolith
values:
minio:
enabled: true
level=info ts=2024-08-15T16:12:12.262179551Z caller=main.go:126 msg="Starting Loki" version="(version=3.1.0, branch=HEAD, revision=935aee77ed)"
level=info ts=2024-08-15T16:12:12.262216144Z caller=main.go:127 msg="Loading configuration file" filename=/etc/loki/config/config.yaml
level=info ts=2024-08-15T16:12:12.262814129Z caller=server.go:352 msg="server listening on addresses" http=[::]:3100 grpc=[::]:9095
level=error ts=2024-08-15T16:12:12.263312781Z caller=log.go:216 msg="error running loki" err="directory required for local rules config\ngithub.com/grafana/loki/v3/pkg/ruler/rulestore/local.NewLocalRulesClient\n\t/src/loki/pkg/ruler/rulestore/local/local.go:38\ngithub.com/grafana/loki/v3/pkg/ruler/base.NewLegacyRuleStore\n\t/src/loki/pkg/ruler/base/storage.go:113\ngithub.com/grafana/loki/v3/pkg/loki.(*Loki).initRulerStorage\n\t/src/loki/pkg/loki/modules.go:1172\ngithub.com/grafana/dskit/modules.(*Manager).initModule\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:136\ngithub.com/grafana/dskit/modules.(*Manager).InitModuleServices\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:108\ngithub.com/grafana/loki/v3/pkg/loki.(*Loki).Run\n\t/src/loki/pkg/loki/loki.go:458\nmain.main\n\t/src/loki/cmd/loki/main.go:129\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1695\nerror initialising module: ruler-storage\ngithub.com/grafana/dskit/modules.(*Manager).initModule\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:138\ngithub.com/grafana/dskit/modules.(*Manager).InitModuleServices\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:108\ngithub.com/grafana/loki/v3/pkg/loki.(*Loki).Run\n\t/src/loki/pkg/loki/loki.go:458\nmain.main\n\t/src/loki/cmd/loki/main.go:129\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1695"
monolith works ok if minio is disabled
Edited by Michael Martin