{"record":{"id":"88e6c5b9e22425e6","repo":"diegosouzapw/OmniRoute","slug":"tailscale-is-not-installed","errorCode":null,"errorMessage":"Tailscale is not installed","messagePattern":"Tailscale is not installed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/tailscaleTunnel.ts","lineNumber":548,"sourceCode":"  };\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)\n  // This is the most common case on servers where tailscale was installed via apt/brew\n  if (isSystemDaemonAvailable()) {\n    const systemStatus = await getLiveStatusPayload(resolution.binaryPath);\n    if (systemStatus) {\n      // System daemon is live — no need to start our own\n      return { started: false, systemDaemon: true };\n    }\n  }\n\n  // Check if our custom daemon is already running\n  const existingStatus = await getLiveStatusPayload(resolution.binaryPath);\n  if (existingStatus) {","sourceCodeStart":530,"sourceCodeEnd":566,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/tailscaleTunnel.ts#L530-L566","documentation":"Binary-resolution failure in startTailscaleDaemon: resolveBinary() found no tailscale executable on the system PATH or known locations. The daemon cannot be started before the CLI exists; this fires when Tailscale was never installed (or was uninstalled) on this host.","triggerScenarios":"Thrown at src/lib/tailscaleTunnel.ts:548 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the Tailscale install flow first (installTailscale)","Install tailscale via the system package manager and retry"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}