{"record":{"id":"c0e3e9a2ead05b8f","repo":"libnyanpasu/clash-nyanpasu","slug":"failed-to-update-service-exit-code-signal","errorCode":null,"errorMessage":"failed to update service, exit code: {}, signal: {:?}","messagePattern":"failed to update service, exit code: (.+?), signal: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/tauri/src/core/service/control.rs","lineNumber":123,"sourceCode":"    })\n    .await??;\n    if !child.success() {\n        anyhow::bail!(\n            \"failed to update 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":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/libnyanpasu/clash-nyanpasu/blob/f7dbce2997c633e484f54788035e770b3ee99773/backend/tauri/src/core/service/control.rs#L105-L141","documentation":"update_service ran the elevated service updater (RunasCommand on Windows, sudo on macOS) and the child process terminated unsuccessfully. This means the `nyanpasu-service update` step failed at the OS privilege level — commonly because the elevation prompt was dismissed or the updater binary rejected the operation — and the service was not updated.","triggerScenarios":"Thrown at backend/tauri/src/core/service/control.rs:123 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the update and accept the UAC/sudo elevation prompt.","Inspect the reported exit code; run the service binary manually with the `update` argument as administrator to capture its detailed error output.","Ensure the service binary is present, unblocked, and not locked by a running process (stop the service first if needed).","Reinstall the service (install_service) if the update step keeps failing."],"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-17T15:17:12.973Z"}