thanos-io/thanos · error
get caching bucket configuration
Error message
get caching bucket configuration
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at cmd/thanos/store.go:339 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of thanos-io/thanos@35b8b99117 (2026-09-07).
Data as JSON: /api/errors/53413fdcb5517464.
Report an issue: GitHub.
Appendix: source
Thrown at cmd/thanos/store.go:339
}
parquetBktConfigYaml, err := conf.parquetStoreConfig.Content()
if err != nil {
return err
}
customBktConfig := exthttp.DefaultCustomBucketConfig()
if err := yaml.Unmarshal(confContentYaml, &customBktConfig); err != nil {
return errors.Wrap(err, "parsing config YAML file")
}
bkt, err := client.NewBucket(logger, confContentYaml, conf.component.String(), exthttp.CreateHedgedTransportWithConfig(customBktConfig))
if err != nil {
return err
}
insBkt := objstoretracing.WrapWithTraces(objstore.WrapWithMetrics(bkt, extprom.WrapRegistererWithPrefix("thanos_", reg), bkt.Name()))
cachingBucketConfigYaml, err := conf.cachingBucketConfig.Content()
if err != nil {
return errors.Wrap(err, "get caching bucket configuration")
}
r := route.New()
if len(cachingBucketConfigYaml) > 0 {
insBkt, err = storecache.NewCachingBucketFromYaml(cachingBucketConfigYaml, insBkt, logger, reg, r, conf.cachingBucketConfig.Path())
if err != nil {
return errors.Wrap(err, "create caching bucket")
}
}
relabelConfig, err := conf.selectorRelabel.RelabelConfig(block.SelectorSupportedRelabelActions)
if err != nil {
return err
}
indexCacheContentYaml, err := conf.indexCacheConfigs.Content()
if err != nil {View on GitHub (pinned to 35b8b99117)