{"record":{"id":"84bbf00fd8318ca2","repo":"diegosouzapw/OmniRoute","slug":"sudo-password-required","errorCode":null,"errorMessage":"Sudo password required","messagePattern":"Sudo password required","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/tailscaleTunnel.ts","lineNumber":536,"sourceCode":"  else if (!check.installed) phase = \"not_installed\";\n  else if (running) phase = \"running\";\n  else if (check.daemonRunning && !check.loggedIn) phase = \"needs_login\";\n  else if (check.lastError) phase = \"error\";\n\n  return {\n    ...check,\n    running,\n    enabled,\n    tunnelUrl,\n    apiUrl: getTailscaleApiUrl(tunnelUrl),\n    phase,\n  };\n}\n\nasync function runSudoShell(command: string, password: string) {\n  const normalizedPassword = password.trim();\n  if (!normalizedPassword) {\n    throw new Error(\"Sudo password required\");\n  }\n  await execFileWithPassword(\"sudo\", [\"-S\", \"sh\", \"-c\", command], normalizedPassword);\n}\n\nexport async function startTailscaleDaemon({\n  sudoPassword,\n}: {\n  sudoPassword?: string;\n} = {}) {\n  const resolution = await resolveBinary();\n  if (!resolution.binaryPath) {\n    throw new Error(\"Tailscale is not installed\");\n  }\n\n  // Invalidate socket cache so we re-probe the system socket\n  invalidateSocketCache();\n\n  // Check if the system daemon is already running (e.g. via systemd)","sourceCodeStart":518,"sourceCodeEnd":554,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/tailscaleTunnel.ts#L518-L554","documentation":"Error \"Sudo password required\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/tailscaleTunnel.ts:536 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}