diegosouzapw/OmniRoute · error · Error

Tailscale is not installed

Error message

Tailscale is not installed

What it means

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.

Solutions

  1. Run the Tailscale install flow first (installTailscale)
  2. Install tailscale via the system package manager and retry
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/lib/tailscaleTunnel.ts:548 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/88e6c5b9e22425e6. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/tailscaleTunnel.ts:548

  };
}

async function runSudoShell(command: string, password: string) {
  const normalizedPassword = password.trim();
  if (!normalizedPassword) {
    throw new Error("Sudo password required");
  }
  await execFileWithPassword("sudo", ["-S", "sh", "-c", command], normalizedPassword);
}

export async function startTailscaleDaemon({
  sudoPassword,
}: {
  sudoPassword?: string;
} = {}) {
  const resolution = await resolveBinary();
  if (!resolution.binaryPath) {
    throw new Error("Tailscale is not installed");
  }

  // Invalidate socket cache so we re-probe the system socket
  invalidateSocketCache();

  // Check if the system daemon is already running (e.g. via systemd)
  // This is the most common case on servers where tailscale was installed via apt/brew
  if (isSystemDaemonAvailable()) {
    const systemStatus = await getLiveStatusPayload(resolution.binaryPath);
    if (systemStatus) {
      // System daemon is live — no need to start our own
      return { started: false, systemDaemon: true };
    }
  }

  // Check if our custom daemon is already running
  const existingStatus = await getLiveStatusPayload(resolution.binaryPath);
  if (existingStatus) {

View on GitHub (pinned to a179ffed5b)