{"record":{"id":"3bb140e2db3a1ae0","repo":"thanos-io/thanos","slug":"block-id-is-not-a-valid-uuid-got-v","errorCode":null,"errorMessage":"block.id is not a valid UUID, got: %v","messagePattern":"block\\.id is not a valid UUID, got: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/thanos/tools_bucket.go","lineNumber":1118,"sourceCode":"\ttbc.registerBucketMarkBlockFlag(cmd)\n\n\tcmd.Setup(func(g *run.Group, logger log.Logger, reg *prometheus.Registry, _ opentracing.Tracer, _ <-chan struct{}, _ bool) error {\n\t\tconfContentYaml, err := objStoreConfig.Content()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tbkt, err := client.NewBucket(logger, confContentYaml, component.Mark.String(), nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinsBkt := objstoretracing.WrapWithTraces(objstore.WrapWithMetrics(bkt, extprom.WrapRegistererWithPrefix(\"thanos_\", reg), bkt.Name()))\n\n\t\tvar ids []ulid.ULID\n\t\tfor _, id := range tbc.blockIDs {\n\t\t\tu, err := ulid.Parse(id)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Errorf(\"block.id is not a valid UUID, got: %v\", id)\n\t\t\t}\n\t\t\tids = append(ids, u)\n\t\t}\n\n\t\tif !tbc.removeMarker && tbc.details == \"\" {\n\t\t\treturn errors.Errorf(\"required flag --details not provided\")\n\t\t}\n\n\t\tctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)\n\t\tg.Add(func() error {\n\t\t\tfor _, id := range ids {\n\t\t\t\tif tbc.removeMarker {\n\t\t\t\t\terr := block.RemoveMark(ctx, logger, insBkt, id, promauto.With(nil).NewCounter(prometheus.CounterOpts{}), tbc.marker)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn errors.Wrapf(err, \"remove mark %v for %v\", id, tbc.marker)\n\t\t\t\t\t}\n\t\t\t\t\tcontinue\n\t\t\t\t}","sourceCodeStart":1100,"sourceCodeEnd":1136,"githubUrl":"https://github.com/thanos-io/thanos/blob/35b8b991177def87ed52dcf10f9b6d87f07282c8/cmd/thanos/tools_bucket.go#L1100-L1136","documentation":"A ulid.Parse failure in the mark-block command: one of the --block IDs passed on the command line is not a valid ULID, so a mark file cannot be addressed in the bucket. The malformed value is echoed in the message.","triggerScenarios":"Thrown at cmd/thanos/tools_bucket.go:1118 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the correct 26-character ULID","Get IDs via `thanos tools bucket ls`","Check for whitespace or truncation in the flag"],"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"}