{"record":{"id":"5a59717d94108c92","repo":"juicedata/juicefs","slug":"user-s-group-s-not-found-5a5971","errorCode":null,"errorMessage":"user(%s):group(%s) not found","messagePattern":"user\\((.+?)\\):group\\((.+?)\\) not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/object/file.go","lineNumber":397,"sourceCode":"}\n\nfunc (d *filestore) Chmod(key string, mode os.FileMode) error {\n\tp, err := d.path(key)\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn os.Chmod(p, mode)\n}\n\nfunc (d *filestore) Chown(key string, owner, group string) error {\n\tp, err := d.path(key)\n\tif err != nil {\n\t\treturn err\n\t}\n\tuid := utils.LookupUser(owner)\n\tgid := utils.LookupGroup(group)\n\tif uid == -1 || gid == -1 {\n\t\treturn fmt.Errorf(\"user(%s):group(%s) not found\", owner, group)\n\t}\n\treturn os.Lchown(p, uid, gid)\n}\n\nfunc newDisk(root, accesskey, secretkey, token string) (ObjectStorage, error) {\n\t// For Windows, the path looks like /C:/a/b/c/\n\tif runtime.GOOS == \"windows\" {\n\t\troot = strings.TrimPrefix(root, \"/\")\n\t}\n\treturn &filestore{root: root}, nil\n}\n\nfunc init() {\n\tRegister(\"file\", newDisk)\n}\n","sourceCodeStart":379,"sourceCodeEnd":413,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/pkg/object/file.go#L379-L413","documentation":"Returned by filestore.Chown when either the owner or group name cannot be resolved to a local uid/gid (lookup returned -1). The chown cannot proceed because the target identity does not exist on this machine.","triggerScenarios":"Thrown at pkg/object/file.go:397 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the user/group locally or use names that exist on the host running juicefs"],"exampleFix":null,"handlingStrategy":"validation","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"}