diegosouzapw/OmniRoute · error · Error
tailscaled did not become ready
Error message
tailscaled did not become ready
What it means
Readiness-verification failure after launching tailscaled: the daemon was spawned under sudo (nohup, socket+statedir configured), the socket cache was invalidated, and a 3s settle elapsed — yet getLiveStatusPayload still cannot reach the daemon. tailscaled either crashed on startup (bad state dir, port conflict) or is too slow to open its socket.
Solutions
- Check the Tailscale log file for daemon crash reasons
- Retry after ensuring no stale socket/pid file blocks startup
- Verify the state directory is writable by root and not corrupted
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/lib/tailscaleTunnel.ts:614 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/e2fabff9bd579b26.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/tailscaleTunnel.ts:614
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);
// Re-probe socket after starting
invalidateSocketCache();
if (!(await getLiveStatusPayload(resolution.binaryPath))) {
throw new Error("tailscaled did not become ready");
}
const pid = await readPidFile();
await updateStateFile({
binaryPath: resolution.binaryPath,
installSource: resolution.installSource,
daemonPid: pid,
lastError: null,
});
return { started: true };
}
export async function startTailscaleLogin({
hostname,
}: {
hostname?: string;
} = {}): Promise<TailscaleLoginResult> {View on GitHub (pinned to a179ffed5b)