{"record":{"id":"0c4030599135ffd3","repo":"thanos-io/thanos","slug":"create-caching-bucket","errorCode":null,"errorMessage":"create caching bucket","messagePattern":"create caching bucket","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/thanos/store.go","lineNumber":347,"sourceCode":"\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 {\n\t\treturn errors.Wrap(err, \"get content of index cache configuration\")\n\t}\n\n\t// Create the index cache loading its config from config file, while keeping\n\t// backward compatibility with the pre-config file era.\n\tvar indexCache storecache.IndexCache\n\tif len(indexCacheContentYaml) > 0 {\n\t\tindexCache, err = storecache.NewIndexCache(logger, indexCacheContentYaml, reg)","sourceCodeStart":329,"sourceCodeEnd":365,"githubUrl":"https://github.com/thanos-io/thanos/blob/35b8b991177def87ed52dcf10f9b6d87f07282c8/cmd/thanos/store.go#L329-L365","documentation":"Wraps storecache.NewCachingBucketFromYaml: the caching bucket configuration supplied via --store.caching.bucket.config could not be parsed into a working caching layer for the object storage bucket. The YAML is malformed or contains unknown/invalid cache entries, so the store cannot wrap its bucket and exits.","triggerScenarios":"Thrown at cmd/thanos/store.go:347 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Validate caching bucket config fields (in-memory/memcached settings)","Check size and TTL values are sensible","Compare against storecache config docs"],"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"}