{"record":{"id":"bef5d220ff49e11c","repo":"JuliusBrussee/caveman","slug":"binary-download-stalled-after-seconds-s-nothin","errorCode":null,"errorMessage":"binary download stalled after ${seconds}s — nothing installed; agents still launch, traffic is NOT compressed or metered\nfix: caveman setup --install","messagePattern":"binary download stalled after (.+?)s — nothing installed; 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":2374,"sourceCode":"  const line = `${name}  ${platform.os}/${platform.arch}  …`;\n  if (interactive()) process.stderr.write(line);\n  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\",","sourceCodeStart":2356,"sourceCodeEnd":2392,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/5184b3d11ac6a1acb7d44b9bfaa31698157cff97/packages/cli/src/index.ts#L2356-L2392","documentation":"Install abort in setupInstallFailure: the binary download made no progress and stalled past the setup timeout, so nothing was installed. The proxy is in a degraded off-state: agents still launch, but traffic is not compressed or metered. The fix hint points at caveman setup --install.","triggerScenarios":"Thrown at packages/cli/src/index.ts:2342 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity and any proxy/firewall blocking the release host","Re-run caveman setup --install to retry the download","Raise CAVE_SETUP_TIMEOUT on slow connections"],"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"}