Hello.
I’m going through the docs to start loki in monolith mode but I get this error from loki-0 container:
init compactor: failed to init delete store: failed to get s3 object: NoSuchBucket: The specified bucket does not exist
status code: 404, request id: 180B378566145D9B, host id:
error initialising module: compactor
github.com/grafana/dskit/modules.(*Manager).initModule
/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:138
github.com/grafana/dskit/modules.(*Manager).InitModuleServices
/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:108
github.com/grafana/loki/v3/pkg/loki.(*Loki).Run
/src/loki/pkg/loki/loki.go:492
main.main
/src/loki/cmd/loki/main.go:129
runtime.main
/usr/local/go/src/runtime/proc.go:272
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1700
level=error ts=2024-11-25T12:58:47.738819174Z caller=log.go:216 msg="error running loki" err="init compactor: failed to init delete store: failed to get s3 object: NoSuchBucket: The specified bucket does not exist\n\tstatus code: 404, request id: 180B378566145D9B, host id: \nerror initialising module: compactor\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:492\nmain.main\n\t/src/loki/cmd/loki/main.go:129\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700"
First of all, Loki logs does not say what bucket its missing which is a huge problem.
Second, I create three bucket by guessing from the docs it wants chunk, ruler and admin
. I’m using minio for now for testing and from this phrase in the docs I guess that it wants chunk, ruler and admin
:
When deploying Loki using S3 Storage DO NOT use the default bucket names; chunk, ruler and admin.
Choose a unique name for each bucket. For more information see the following security update. This caution does not apply when you are using MinIO
The problem is that the error above is thrown after creating the three buckets and setting their access to public.
I’m stuck and don’t know what next steps I can take.
Can someone please help me? What are the actual bucket it needs? Or what am I missing.
Thanks in advance for your kind concern and help.
P.S. How do you set the bucket names in the values file? I’m already anticipating blockers going to prod