juicedata/juicefs · error
user(%s):group(%s) not found
Error message
user(%s):group(%s) not found
What it means
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.
Source
Thrown at pkg/object/file.go:397
}
func (d *filestore) Chmod(key string, mode os.FileMode) error {
p, err := d.path(key)
if err != nil {
return err
}
return os.Chmod(p, mode)
}
func (d *filestore) Chown(key string, owner, group string) error {
p, err := d.path(key)
if err != nil {
return err
}
uid := utils.LookupUser(owner)
gid := utils.LookupGroup(group)
if uid == -1 || gid == -1 {
return fmt.Errorf("user(%s):group(%s) not found", owner, group)
}
return os.Lchown(p, uid, gid)
}
func newDisk(root, accesskey, secretkey, token string) (ObjectStorage, error) {
// For Windows, the path looks like /C:/a/b/c/
if runtime.GOOS == "windows" {
root = strings.TrimPrefix(root, "/")
}
return &filestore{root: root}, nil
}
func init() {
Register("file", newDisk)
}
View on GitHub (pinned to c9a67b23e8)
Solutions
- Create the user/group locally or use names that exist on the host running juicefs
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at pkg/object/file.go:397 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of juicedata/juicefs@c9a67b23e8 (2026-09-06).
Data as JSON: /api/errors/5a59717d94108c92.
Report an issue: GitHub.