{"record":{"id":"7a8f077be2125e8b","repo":"diegosouzapw/OmniRoute","slug":"tailscaled-binary-not-found","errorCode":null,"errorMessage":"tailscaled binary not found","messagePattern":"tailscaled binary not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/tailscaleTunnel.ts","lineNumber":591,"sourceCode":"        timeout: 10000,\n        windowsHide: true,\n        env: buildExecEnv(),\n      });\n    } catch {\n      // Ignore service start errors and verify below.\n    }\n\n    await sleep(2500);\n    if (!(await getLiveStatusPayload(resolution.binaryPath))) {\n      throw new Error(\"Failed to start Tailscale service\");\n    }\n\n    return { started: true };\n  }\n\n  const daemonBinary = await resolveDaemonBinary(resolution.binaryPath);\n  if (!daemonBinary) {\n    throw new Error(\"tailscaled binary not found\");\n  }\n\n  const password = toNonEmptyString(sudoPassword) || getCachedPassword() || \"\";\n  if (!password) {\n    throw new Error(\"Sudo password required to start tailscaled\");\n  }\n\n  setCachedPassword(password);\n  await ensureTailscaleDir();\n\n  const command = [\n    `mkdir -p ${shellEscape(getTailscaleDir())}`,\n    `nohup ${shellEscape(daemonBinary)} --socket=${shellEscape(getTailscaleSocketPath())} --statedir=${shellEscape(getTailscaleDir())} >> ${shellEscape(getLogFilePath())} 2>&1 & echo $! > ${shellEscape(getPidFilePath())}`,\n  ].join(\" && \");\n\n  await runSudoShell(command, password);\n  await sleep(3000);\n","sourceCodeStart":573,"sourceCodeEnd":609,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/tailscaleTunnel.ts#L573-L609","documentation":"Daemon-binary resolution failure on non-Windows platforms: resolveDaemonBinary could not locate a tailscaled executable near the resolved tailscale CLI (or system paths). Some distributions split CLI and daemon into separate packages; without tailscaled the service cannot be launched manually.","triggerScenarios":"Thrown at src/lib/tailscaleTunnel.ts:591 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install the package that ships tailscaled (e.g. tailscaled package on Debian/Ubuntu)","Verify tailscaled exists in PATH or beside the tailscale binary"],"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"}