thanos icon indicating copy to clipboard operation
thanos copied to clipboard

how to solve problem

Open mongoliaredmountain opened this issue 3 years ago • 3 comments

level=info ts=2022-08-08T03:16:11.854528377Z caller=options.go:27 protocol=gRPC msg="disabled TLS, key and cert must be set to enable" level=info ts=2022-08-08T03:16:11.854760378Z caller=factory.go:50 msg="loading bucket configuration" level=error ts=2022-08-08T03:16:11.854822567Z caller=main.go:132 err="yaml: line 2: mapping values are not allowed in this context\nparsing config YAML file\ngithub.com/thanos-io/thanos/pkg/objstore/client.NewBucket\n\t/app/pkg/objstore/client/factory.go:53\nmain.runSidecar\n\t/app/cmd/thanos/sidecar.go:306\nmain.registerSidecar.func1\n\t/app/cmd/thanos/sidecar.go:73\nmain.main\n\t/app/cmd/thanos/main.go:130\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:255\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581\npreparing sidecar command failed\nmain.main\n\t/app/cmd/thanos/main.go:132\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:255\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581"

image

This problem how to solve?

mongoliaredmountain avatar Aug 08 '22 03:08 mongoliaredmountain

I think it needs to be:

type: S3
config:
  ...

Notice how there are no spaces before "config:". Let us know if that helps.

GiedriusS avatar Aug 08 '22 06:08 GiedriusS

type: s3 config: access_key_id: "kvMgKi6doSwB1md" access_key_secret: "9e563QISa0g1GDSqcLPqWcCQFADYs" bucket: "thanos" endpoint: "192.168.58.204" insecure: true

yaml validation

ADITYADAS1999 avatar Aug 09 '22 03:08 ADITYADAS1999

hey i thing thats useful

ADITYADAS1999 avatar Aug 09 '22 03:08 ADITYADAS1999