{"record":{"id":"ae5a56d1756bdfa8","repo":"JuliusBrussee/caveman","slug":"binary-download-unreachable-agents-still-launch","errorCode":null,"errorMessage":"binary download unreachable — agents still launch; traffic is NOT compressed or metered\nfix: caveman setup --install","messagePattern":"binary download unreachable — agents still launch; traffic is NOT compressed or metered\nfix: caveman setup --install","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/index.ts","lineNumber":2376,"sourceCode":"  else console.error(line);\n}\n\nfunction installProgressComplete(\n  name: string,\n  platform: { os: string; arch: string },\n  bytes: number,\n) {\n  const line = `${name}  ${platform.os}/${platform.arch}  ${(bytes / 1_000_000).toFixed(1)} MB  checksum verified`;\n  if (interactive()) process.stderr.write(`\\r${line}\\n`);\n  else console.error(line);\n}\n\nfunction setupInstallFailure(error: unknown, timeoutSeconds: number): never {\n  if (interactive()) process.stderr.write(\"\\n\");\n  if (error instanceof BinaryDownloadError && error.kind === \"stalled\") {\n    throw new Error(`${OFF_STATES.downloadStalled(timeoutSeconds).line}\\nfix: ${OFF_STATES.downloadStalled(timeoutSeconds).fix}`);\n  }\n  throw new Error(`${OFF_STATES.downloadUnreachable.line}\\nfix: ${OFF_STATES.downloadUnreachable.fix}`);\n}\n\nfunction printInstallResult(\n  installed: InstalledBinary[],\n  platform: { os: string; arch: string },\n  binDir: string,\n  json: boolean,\n  continuing = false,\n) {\n  if (json) {\n    print({\n      release: BINARY_RELEASE,\n      platform: `${platform.os}/${platform.arch}`,\n      target: binDir,\n      binaries: installed,\n      next: \"caveman claude\",\n    });\n    return;","sourceCodeStart":2358,"sourceCodeEnd":2394,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/5184b3d11ac6a1acb7d44b9bfaa31698157cff97/packages/cli/src/index.ts#L2358-L2394","documentation":"Install abort in setupInstallFailure: the release host was unreachable (network error rather than a stall), so no binary was downloaded. Agents still launch, but traffic is not compressed or metered until installation completes.","triggerScenarios":"Thrown at packages/cli/src/index.ts:2344 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify DNS/network access to the binary release host","Check CAVE_BINARY_RELEASE_BASE if overridden — the mirror may be wrong or down","Re-run caveman setup --install once connectivity is restored"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5184b3d11ac6a1acb7d44b9bfaa31698157cff97","analyzedAt":"2026-08-18T03:14:35.516Z","contentChangedAt":"2026-08-18T03:14:35.516Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}