JuliusBrussee/caveman · error

binary download stalled after

Error message

binary download stalled after ${seconds}s — nothing installed; agents still launch, traffic is NOT compressed or metered
fix: caveman setup --install

What it means

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.

Solutions

  1. Check network connectivity and any proxy/firewall blocking the release host
  2. Re-run caveman setup --install to retry the download
  3. Raise CAVE_SETUP_TIMEOUT on slow connections
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at packages/cli/src/index.ts:2342 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of JuliusBrussee/caveman@5184b3d11a (2026-08-18). Data as JSON: /api/errors/bef5d220ff49e11c. Report an issue: GitHub.

Appendix: source

Thrown at packages/cli/src/index.ts:2374

  const line = `${name}  ${platform.os}/${platform.arch}  …`;
  if (interactive()) process.stderr.write(line);
  else console.error(line);
}

function installProgressComplete(
  name: string,
  platform: { os: string; arch: string },
  bytes: number,
) {
  const line = `${name}  ${platform.os}/${platform.arch}  ${(bytes / 1_000_000).toFixed(1)} MB  checksum verified`;
  if (interactive()) process.stderr.write(`\r${line}\n`);
  else console.error(line);
}

function setupInstallFailure(error: unknown, timeoutSeconds: number): never {
  if (interactive()) process.stderr.write("\n");
  if (error instanceof BinaryDownloadError && error.kind === "stalled") {
    throw new Error(`${OFF_STATES.downloadStalled(timeoutSeconds).line}\nfix: ${OFF_STATES.downloadStalled(timeoutSeconds).fix}`);
  }
  throw new Error(`${OFF_STATES.downloadUnreachable.line}\nfix: ${OFF_STATES.downloadUnreachable.fix}`);
}

function printInstallResult(
  installed: InstalledBinary[],
  platform: { os: string; arch: string },
  binDir: string,
  json: boolean,
  continuing = false,
) {
  if (json) {
    print({
      release: BINARY_RELEASE,
      platform: `${platform.os}/${platform.arch}`,
      target: binDir,
      binaries: installed,
      next: "caveman claude",

View on GitHub (pinned to 5184b3d11a)