{"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":"Error \"Failed to start Tailscale service\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/tailscaleTunnel.ts:583 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}