diegosouzapw/OmniRoute · error · Error

tailscaled binary not found

Error message

tailscaled binary not found

What it means

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.

Solutions

  1. Install the package that ships tailscaled (e.g. tailscaled package on Debian/Ubuntu)
  2. Verify tailscaled exists in PATH or beside the tailscale binary
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/lib/tailscaleTunnel.ts:591 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/7a8f077be2125e8b. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/tailscaleTunnel.ts:591

        timeout: 10000,
        windowsHide: true,
        env: buildExecEnv(),
      });
    } catch {
      // Ignore service start errors and verify below.
    }

    await sleep(2500);
    if (!(await getLiveStatusPayload(resolution.binaryPath))) {
      throw new Error("Failed to start Tailscale service");
    }

    return { started: true };
  }

  const daemonBinary = await resolveDaemonBinary(resolution.binaryPath);
  if (!daemonBinary) {
    throw new Error("tailscaled binary not found");
  }

  const password = toNonEmptyString(sudoPassword) || getCachedPassword() || "";
  if (!password) {
    throw new Error("Sudo password required to start tailscaled");
  }

  setCachedPassword(password);
  await ensureTailscaleDir();

  const command = [
    `mkdir -p ${shellEscape(getTailscaleDir())}`,
    `nohup ${shellEscape(daemonBinary)} --socket=${shellEscape(getTailscaleSocketPath())} --statedir=${shellEscape(getTailscaleDir())} >> ${shellEscape(getLogFilePath())} 2>&1 & echo $! > ${shellEscape(getPidFilePath())}`,
  ].join(" && ");

  await runSudoShell(command, password);
  await sleep(3000);

View on GitHub (pinned to a179ffed5b)