{"record":{"id":"1eb864702841e7b4","repo":"jdx/mise","slug":"managed-system-files-require-group-group-but","errorCode":null,"errorMessage":"managed system files require group '{group}', but that bootstrap group is absent","messagePattern":"managed system files require group '(.+?)', but that bootstrap group is absent","errorType":"error_code","errorClass":"eyre::Report","httpStatus":null,"severity":"error","filePath":"src/system/managed_files.rs","lineNumber":948,"sourceCode":"                Some(request)\n                    if allow_pending_accounts\n                        && request.plan().action == ResourceAction::Unknown =>\n                {\n                    bail!(\n                        \"managed system files require owner '{owner}', but that bootstrap user cannot be safely converged\"\n                    )\n                }\n                Some(_) if allow_pending_accounts => {}\n                Some(_) | None => {\n                    resolve_user(owner)?;\n                }\n            }\n        }\n        if let Some(group) = group {\n            match accounts\n                .and_then(|accounts| accounts.groups.iter().find(|request| request.name == group))\n            {\n                Some(request) if request.state == super::accounts::AccountState::Absent => bail!(\n                    \"managed system files require group '{group}', but that bootstrap group is absent\"\n                ),\n                Some(request)\n                    if allow_pending_accounts\n                        && request.plan().action == ResourceAction::Unknown =>\n                {\n                    bail!(\n                        \"managed system files require group '{group}', but that bootstrap group cannot be safely converged\"\n                    )\n                }\n                Some(_) if allow_pending_accounts => {}\n                Some(_) | None => {\n                    resolve_group(group)?;\n                }\n            }\n        }\n    }\n    Ok(())","sourceCodeStart":930,"sourceCodeEnd":966,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/managed_files.rs#L930-L966","documentation":"The group declared as `group` on a managed file/directory is declared in the bootstrap accounts config with state = \"absent\". Files requiring that group ownership therefore cannot be validated, since the same run would remove the group. Mirrors the owner-user contradiction check.","triggerScenarios":"`validate_principals` finds a [bootstrap.files]/[bootstrap.directories] entry with state present and `group = \"g\"` while [bootstrap.groups] declares group g with state = \"absent\".","commonSituations":"Retiring a group in the accounts config without updating file entries that still set `group = \"retired-group\"`; copy-paste of group names across environments.","solutions":["Remove the `group` key from entries referencing the absent group.","Set the group's state back to present if it is genuinely needed.","Point the entries at a group that exists or is declared present (e.g. \"root\")."],"exampleFix":"# before\n[bootstrap.groups.legacy]\nstate = \"absent\"\n\n[bootstrap.files.appconf]\npath = \"/etc/myapp/app.conf\"\ngroup = \"legacy\"\n\n# after\n[bootstrap.files.appconf]\npath = \"/etc/myapp/app.conf\"\ngroup = \"root\"\n","handlingStrategy":"validation","validationCode":"def check_groups(files, groups):\n    for f in files:\n        g = f.get('group')\n        if g and groups.get(g, {}).get('state') == 'absent':\n            raise ValueError(f\"file {f['path']} references absent group {g}\")","typeGuard":null,"tryCatchPattern":null,"preventionTips":["When retiring a group, remove its references from all file/directory entries first.","Standardize group ownership on groups guaranteed to exist.","Run the bootstrap plan/dry-run after any accounts config change."],"tags":["config","accounts","ownership","validation"],"backgroundTag":"conflicting-config-options","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}