{"record":{"id":"65b67b86608eb59d","repo":"dagger/dagger","slug":"no-such-user-s","errorCode":null,"errorMessage":"no such user: %s","messagePattern":"no such user: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/util.go","lineNumber":58,"sourceCode":"\t}\n\n\tif workDir == \"\" {\n\t\tworkDir = \"/\"\n\t}\n\n\treturn path.Join(workDir, containerPath)\n}\n\nfunc findUID(f io.Reader, uname string) (int, error) {\n\tusers, err := user.ParsePasswdFilter(f, func(u user.User) bool {\n\t\treturn u.Name == uname\n\t})\n\tif err != nil {\n\t\treturn -1, fmt.Errorf(\"parse /etc/passwd: %w\", err)\n\t}\n\n\tif len(users) == 0 {\n\t\treturn -1, fmt.Errorf(\"no such user: %s\", uname)\n\t}\n\n\treturn users[0].Uid, nil\n}\n\nfunc findGID(f io.Reader, gname string) (int, error) {\n\tgroups, err := user.ParseGroupFilter(f, func(g user.Group) bool {\n\t\treturn g.Name == gname\n\t})\n\tif err != nil {\n\t\treturn -1, fmt.Errorf(\"parse /etc/group: %w\", err)\n\t}\n\n\tif len(groups) == 0 {\n\t\treturn -1, fmt.Errorf(\"no such group: %s\", gname)\n\t}\n\n\treturn groups[0].Gid, nil","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/dagger/dagger/blob/82ba2681dbe30d3547a1dc50ea495900ab5b6047/core/util.go#L40-L76","documentation":"findUID parsed /etc/passwd successfully but no entry matches the requested user name. The container image has no such user; the user specified for the container or file ownership does not exist in the image.","triggerScenarios":"Thrown at core/util.go:58 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a user that exists in the image (check with `getent passwd` in the image)","Reference the user by numeric UID instead of name","Add the user to the image before running"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"82ba2681dbe30d3547a1dc50ea495900ab5b6047","analyzedAt":"2026-09-05T07:21:37.930Z","contentChangedAt":"2026-09-05T07:21:37.930Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}