{"record":{"id":"2aeabff3fa7d9533","repo":"juicedata/juicefs","slug":"can-t-create-bucket-s","errorCode":null,"errorMessage":"can't create bucket: %s","messagePattern":"can't create bucket: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/objbench.go","lineNumber":229,"sourceCode":"\t\tskipped = fmt.Sprintf(\"%s%dm%s%s\", COLOR_SEQ, YELLOW, skipped, RESET_SEQ)\n\t\tpass = fmt.Sprintf(\"%s%dm%s%s\", COLOR_SEQ, GREEN, pass, RESET_SEQ)\n\t\tfailed = fmt.Sprintf(\"%s%dm%s%s\", COLOR_SEQ, RED, failed, RESET_SEQ)\n\t}\n\tif runtime.GOOS != \"windows\" {\n\t\tnobody, err := user.Lookup(\"nobody\")\n\t\tif err != nil {\n\t\t\tlogger.Fatalf(\"lookup nobody user failed: %v\", err)\n\t\t} else {\n\t\t\tgroup, err := user.LookupGroupId(nobody.Gid)\n\t\t\tif err != nil {\n\t\t\t\tlogger.Fatalf(\"lookup nobody's group failed: %v\", err)\n\t\t\t}\n\t\t\tgroupName = group.Name\n\t\t}\n\t}\n\tif ctx.Bool(\"skip-functional-tests\") {\n\t\tif err := blob.Create(ctx.Context); err != nil {\n\t\t\treturn fmt.Errorf(\"can't create bucket: %s\", err)\n\t\t}\n\t} else {\n\t\tvar result [][]string\n\t\tresult = append(result, []string{\"CATEGORY\", \"TEST\", \"RESULT\"})\n\t\tfmt.Println(\"Start Functional Testing ...\")\n\t\tfunctionalTesting(ctx.Context, blob, &result, colorful)\n\t\tprintResult(result, -1, colorful)\n\t\tfmt.Println()\n\t}\n\tfmt.Println(\"Start Performance Testing ...\")\n\tvar pResult [][]string\n\tpResult = append(pResult, []string{\"ITEM\", \"VALUE\", \"COST\"})\n\n\tapis := []apiInfo{\n\t\t{\n\t\t\tname:  \"smallput\",\n\t\t\tcount: sCount,\n\t\t\ttitle: \"put small objects\",","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/cmd/objbench.go#L211-L247","documentation":"Returned by `juicefs objbench` when creating the benchmark bucket on the object store fails. It wraps the backend Create error — bad credentials, insufficient permission, or an invalid bucket name/endpoint.","triggerScenarios":"Thrown at cmd/objbench.go:229 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify access keys and permissions allow bucket creation on the endpoint","Ensure the bucket name is valid and does not violate the provider's rules"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c9a67b23e8e08ec23ec331aa6f1675e2319e921c","analyzedAt":"2026-09-06T17:55:48.476Z","contentChangedAt":"2026-09-06T17:55:48.476Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}