{"record":{"id":"2b3c01c67bb21423","repo":"jdx/mise","slug":"bootstrap-system-services-are-only-supported-on-li","errorCode":null,"errorMessage":"bootstrap system services are only supported on Linux","messagePattern":"bootstrap system services are only supported on Linux","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/services_non_linux.rs","lineNumber":51,"sourceCode":") -> Vec<ResourcePlan> {\n    vec![]\n}\n\npub(crate) fn apply(_requests: &[ServiceRequest], _dry_run: bool, _yes: bool) -> Result<()> {\n    Ok(())\n}\n\npub(crate) fn apply_with_notifications(\n    _requests: &[ServiceRequest],\n    _notifications: &ServiceNotifications,\n    _dry_run: bool,\n    _yes: bool,\n) -> Result<()> {\n    Ok(())\n}\n\npub(crate) fn apply_privileged_plan_from_stdin() -> Result<()> {\n    bail!(\"bootstrap system services are only supported on Linux\")\n}\n\nfn reject_configured(config: &Config) -> Result<Vec<ServiceRequest>> {\n    // validated like on Linux first, so a forgotten `scope = \"user\"` is\n    // reported as such rather than as a platform limitation\n    let configured = !compose_system_declarations(config)?.is_empty();\n    if configured {\n        bail!(\"bootstrap system services are only supported on Linux\");\n    }\n    Ok(vec![])\n}\n","sourceCodeStart":33,"sourceCodeEnd":63,"githubUrl":"https://github.com/jdx/mise/blob/afd2eddd3a50c16190efc1c7e94404b48f72af57/src/system/services_non_linux.rs#L33-L63","documentation":"Bootstrap system services (systemd units) are implemented only for Linux. On non-Linux platforms apply_privileged_plan_from_stdin is a stub that always fails with this message, so any attempt to apply a privileged system-service plan aborts.","triggerScenarios":"Running a mise operation that applies a privileged service plan (via the elevated helper stdin path) on macOS, Windows, or another non-Linux OS.","commonSituations":"Configuring bootstrap services on a macOS laptop; CI images running macOS; WSL misconfigured so platform detection sees non-Linux.","solutions":["Run the operation on a Linux machine with systemd","Use an alternative service manager (launchd, Task Scheduler) instead of mise bootstrap services","If on WSL, ensure WSL2/systemd enabled so the platform is Linux"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"if !cfg!(target_os = \"linux\") {\n    eprintln!(\"bootstrap system services require Linux; skipping\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only configure bootstrap system services on Linux hosts","Gate service config per-OS in shared mise.toml setups","Use native service managers (launchd/Task Scheduler) elsewhere"],"tags":["platform","linux","services"],"backgroundTag":"unsupported-platform","analyzedSha":"afd2eddd3a50c16190efc1c7e94404b48f72af57","analyzedAt":"2026-09-09T01:38:25.179Z","contentChangedAt":"2026-09-09T01:38:25.179Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}