{"record":{"id":"a289587147b768ee","repo":"diegosouzapw/OmniRoute","slug":"failed-to-start-tailscale-service","errorCode":null,"errorMessage":"Failed to start Tailscale service","messagePattern":"Failed to start Tailscale service","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/tailscaleTunnel.ts","lineNumber":583,"sourceCode":"  const existingStatus = await getLiveStatusPayload(resolution.binaryPath);\n  if (existingStatus) {\n    return { started: false };\n  }\n\n  if (getCurrentPlatform() === \"win32\") {\n    try {\n      await execFileAsync(\"net\", [\"start\", \"Tailscale\"], {\n        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","sourceCodeStart":565,"sourceCodeEnd":601,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/tailscaleTunnel.ts#L565-L601","documentation":"Windows service-start verification failure: after attempting `net start Tailscale` (errors intentionally ignored) and waiting 2.5s, the live status probe via the binary still returns nothing — the service did not come up. The daemon is expected to answer on its socket after start; silence means the start failed or the service crashed immediately.","triggerScenarios":"Thrown at src/lib/tailscaleTunnel.ts:583 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check Windows service status and Event Log for Tailscale errors","Retry the start after a longer wait (slow service init)","Reinstall the Tailscale Windows service if it is in a broken state"],"exampleFix":null,"handlingStrategy":"retry","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"}