{"record":{"id":"53413fdcb5517464","repo":"thanos-io/thanos","slug":"get-caching-bucket-configuration","errorCode":null,"errorMessage":"get caching bucket configuration","messagePattern":"get caching bucket configuration","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/thanos/store.go","lineNumber":339,"sourceCode":"\t}\n\tparquetBktConfigYaml, err := conf.parquetStoreConfig.Content()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tcustomBktConfig := exthttp.DefaultCustomBucketConfig()\n\tif err := yaml.Unmarshal(confContentYaml, &customBktConfig); err != nil {\n\t\treturn errors.Wrap(err, \"parsing config YAML file\")\n\t}\n\tbkt, err := client.NewBucket(logger, confContentYaml, conf.component.String(), exthttp.CreateHedgedTransportWithConfig(customBktConfig))\n\tif err != nil {\n\t\treturn err\n\t}\n\tinsBkt := objstoretracing.WrapWithTraces(objstore.WrapWithMetrics(bkt, extprom.WrapRegistererWithPrefix(\"thanos_\", reg), bkt.Name()))\n\n\tcachingBucketConfigYaml, err := conf.cachingBucketConfig.Content()\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"get caching bucket configuration\")\n\t}\n\n\tr := route.New()\n\n\tif len(cachingBucketConfigYaml) > 0 {\n\t\tinsBkt, err = storecache.NewCachingBucketFromYaml(cachingBucketConfigYaml, insBkt, logger, reg, r, conf.cachingBucketConfig.Path())\n\t\tif err != nil {\n\t\t\treturn errors.Wrap(err, \"create caching bucket\")\n\t\t}\n\t}\n\n\trelabelConfig, err := conf.selectorRelabel.RelabelConfig(block.SelectorSupportedRelabelActions)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tindexCacheContentYaml, err := conf.indexCacheConfigs.Content()\n\tif err != nil {","sourceCodeStart":321,"sourceCodeEnd":357,"githubUrl":"https://github.com/thanos-io/thanos/blob/35b8b991177def87ed52dcf10f9b6d87f07282c8/cmd/thanos/store.go#L321-L357","documentation":"Reading the caching bucket configuration content failed (e.g. the --store.caching-bucket.config-file is unreadable or its Content() errored). Store needs this optional config to wrap the bucket with caching.","triggerScenarios":"Thrown at cmd/thanos/store.go:339 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the caching bucket config file path and permissions","Fix YAML syntax if the file is malformed","Remove the flag if caching is not needed"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35b8b991177def87ed52dcf10f9b6d87f07282c8","analyzedAt":"2026-09-07T01:49:59.689Z","contentChangedAt":"2026-09-07T01:49:59.689Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}