{"record":{"id":"9be69588219c6fed","repo":"libnyanpasu/clash-nyanpasu","slug":"failed-to-start-service-exit-code-signal","errorCode":null,"errorMessage":"failed to start service, exit code: {}, signal: {:?}","messagePattern":"failed to start service, exit code: (.+?), signal: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/tauri/src/core/service/control.rs","lineNumber":199,"sourceCode":"    })\n    .await??;\n    if !child.success() {\n        anyhow::bail!(\n            \"failed to start service, exit code: {}, signal: {:?}\",\n            child.code().unwrap_or(-1),\n            {\n                #[cfg(unix)]\n                {\n                    child.signal().unwrap_or(0)\n                }\n                #[cfg(not(unix))]\n                {\n                    0\n                }\n            }\n        );\n    }\n    Ok(())\n}","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/libnyanpasu/clash-nyanpasu/blob/f7dbce2997c633e484f54788035e770b3ee99773/backend/tauri/src/core/service/control.rs#L181-L217","documentation":"start_service ran the service starter with elevated privileges (RunasCommand on Windows, sudo on macOS) and the child process exited non-zero, meaning the nyanpasu service was not started. This is an ExitStatus check on the spawned privileged command: failure usually indicates the elevation prompt was denied, the service is not installed, or the service binary failed during startup.","triggerScenarios":"Thrown at backend/tauri/src/core/service/control.rs:199 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry and accept the UAC/sudo elevation prompt.","Confirm the service is installed first (install_service) before starting; an uninstalled service makes start fail.","Run the service binary manually with the `start` argument as administrator to capture detailed output.","Check OS service logs (Windows Event Log / launchd) for the service's startup failure reason."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f7dbce2997c633e484f54788035e770b3ee99773","analyzedAt":"2026-09-08T01:24:59.197Z","contentChangedAt":"2026-09-08T01:24:59.197Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}