{"record":{"id":"294b242268dea2a3","repo":"juicedata/juicefs","slug":"put-object-failed-s","errorCode":null,"errorMessage":"put object failed: %s","messagePattern":"put object failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/objbench.go","lineNumber":752,"sourceCode":"\t\t\treturn \"\", err\n\t\t}\n\t\tdefer r.Close()\n\t\tdata, err := io.ReadAll(r)\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\treturn string(data), nil\n\t}\n\tkey := \"put_test_file\"\n\n\tfunFSCase := func(name string, fn func() error) {\n\t\trunCase(name, func(blob object.ObjectStorage) error {\n\t\t\tif !isFileSystem {\n\t\t\t\treturn utils.ErrNotSUP\n\t\t\t}\n\t\t\tbr := []byte(\"hello\")\n\t\t\tif err := blob.Put(ctx, key, bytes.NewReader(br)); err != nil {\n\t\t\t\treturn fmt.Errorf(\"put object failed: %s\", err)\n\t\t\t}\n\t\t\tdefer blob.Delete(ctx, key) //nolint:errcheck\n\t\t\treturn warning(fn())\n\t\t})\n\t}\n\n\trunCase(\"create a bucket\", func(blob object.ObjectStorage) error {\n\t\tcreated := true\n\t\tif err := blob.Put(ctx, key, bytes.NewReader([]byte(\"1\"))); err != nil {\n\t\t\tcreated = false\n\t\t}\n\t\tdefer blob.Delete(ctx, key) //nolint:errcheck\n\n\t\tif !created {\n\t\t\tif err := blob.Create(ctx); err != nil {\n\t\t\t\treturn fmt.Errorf(\"can't create bucket: %s\", err)\n\t\t\t}\n\t\t}","sourceCodeStart":734,"sourceCodeEnd":770,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/cmd/objbench.go#L734-L770","documentation":"A filesystem-only benchmark case attempted blob.Put of a small test object (key 'put_test_file') and the underlying storage rejected the write. Wraps the storage-layer error so the benchmark reports which filesystem-backed object operation failed.","triggerScenarios":"Thrown at cmd/objbench.go:752 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check write permissions and space on the target storage","Verify the endpoint/credentials used by objbench"],"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"}