{"record":{"id":"b230fd6cc8ac4f36","repo":"libnyanpasu/clash-nyanpasu","slug":"failed-to-uninstall-service-exit-code","errorCode":null,"errorMessage":"failed to uninstall service, exit code: {}","messagePattern":"failed to uninstall service, exit code: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/tauri/src/core/service/control.rs","lineNumber":166,"sourceCode":"    })\n    .await??;\n    if !child.success() {\n        anyhow::bail!(\n            \"failed to uninstall service, exit code: {}\",\n            child.code().unwrap()\n        );\n    }\n    Ok(())\n}","sourceCodeStart":148,"sourceCodeEnd":184,"githubUrl":"https://github.com/libnyanpasu/clash-nyanpasu/blob/f7dbce2997c633e484f54788035e770b3ee99773/backend/tauri/src/core/service/control.rs#L148-L184","documentation":"uninstall_service ran the elevated service uninstaller (RunasCommand on Windows, sudo on macOS) and the child process exited non-zero, so the nyanpasu service was not removed. This is a check on the spawned uninstaller's ExitStatus: failure typically means the elevation prompt was denied or the uninstaller could not remove the service registration.","triggerScenarios":"Thrown at backend/tauri/src/core/service/control.rs:166 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the uninstall and accept the elevation prompt.","Run the service binary manually with the `uninstall` argument as administrator to see the underlying error.","Check whether the service is still running; stop it before uninstalling.","Manually delete the OS service registration (e.g. `sc delete` on Windows / launchd plist removal on macOS) if the uninstaller 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"}