jdx/mise · error · eyre::Report
managed system files require group
Error message
managed system files require group '{group}', but that bootstrap group cannot be safely converged What it means
When pending accounts are allowed, a referenced group's plan action being Unknown means mise cannot safely converge the group before applying file ownership. Validation bails early to avoid an indeterminate apply sequence rather than failing mid-run.
Solutions
- Simplify the [bootstrap.groups.g] declaration so its converge action is deterministic.
- Ensure the group already exists on the target machine and reference it without pending-account handling.
- Reference a group whose plan is known-safe (e.g. root or a plain present-state group).
Defensive patterns
Strategy: validation
Validate before calling
fn group_plan_known(g: &GroupRequest, allow_pending: bool) -> bool {
g.state != AccountState::Absent && (!allow_pending || g.plan().action != ResourceAction::Unknown)
} Prevention
- Avoid conditional or templated fields in group declarations.
- Pre-create groups outside bootstrap when their plan is hard to determine.
- Validate with a dry-run before enabling allow-pending-accounts flows.
When it happens
Trigger: `validate_principals` with `allow_pending_accounts = true`; a managed file/directory (state present) declares `group = "g"`; group g is present in the accounts config and not absent, but its `plan().action == ResourceAction::Unknown`.
Common situations: Group declarations with fields the planner cannot statically resolve (conditional gid, conflicting membership rules); templated/derived group names producing ambiguous plans.
Understand the failure class
Background: "Invalid state transition" errors: "status must be X, actually Y", "already rejected/charging/uninstalled", "cannot ... while running" — what they mean when a library rejects your call — this error's family across 31 libraries.
Related errors
- managed system files require owner
- managed system files require group
- managed system files require owner
- agent ' ' `start_calendar_interval. ` must be between and
- agent ' ' `start_calendar_interval` must set at least one…
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/f2bf19edc6bdbe13.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/managed_files.rs:955
}
Some(_) if allow_pending_accounts => {}
Some(_) | None => {
resolve_user(owner)?;
}
}
}
if let Some(group) = group {
match accounts
.and_then(|accounts| accounts.groups.iter().find(|request| request.name == group))
{
Some(request) if request.state == super::accounts::AccountState::Absent => bail!(
"managed system files require group '{group}', but that bootstrap group is absent"
),
Some(request)
if allow_pending_accounts
&& request.plan().action == ResourceAction::Unknown =>
{
bail!(
"managed system files require group '{group}', but that bootstrap group cannot be safely converged"
)
}
Some(_) if allow_pending_accounts => {}
Some(_) | None => {
resolve_group(group)?;
}
}
}
}
Ok(())
}
#[cfg(not(unix))]
pub(crate) fn validate_principals(
files: &[ManagedFileRequest],
directories: &[ManagedDirectoryRequest],
_accounts: Option<&super::accounts::AccountRequests>,View on GitHub (pinned to 533346cc37)