oven-sh/bun · error · Error

buildkite-agent artifact download timed out after 120s for s

Error message

buildkite-agent artifact download timed out after 120s for step '${target}'. Refusing to continue with a partial download (would silently fall back to the wrong binary).

What it means

Error "buildkite-agent artifact download timed out after 120s for step '${target}'. Refusing to continue with a partial download (would silently fall back to the wrong binary)." thrown in oven-sh/bun.

Source

Thrown at scripts/runner.node.mjs:2750

  const releasePath = join(cwd, "release");
  mkdirSync(releasePath, { recursive: true });

  let zipPath;
  downloadLoop: for (let i = 0; i < 10; i++) {
    // build-bun also uploads libbun-*.a / libbun_rust.a / dep libs; only the zips are wanted here.
    const args = ["artifact", "download", "*.zip", releasePath, "--step", target];
    if (buildId) {
      args.push("--build", buildId);
    }

    const { error } = await spawnSafe({
      command: "buildkite-agent",
      args,
      timeout: 120000,
    });
    if (error === "timeout") {
      throw new Error(
        `buildkite-agent artifact download timed out after 120s for step '${target}'. ` +
          `Refusing to continue with a partial download (would silently fall back to the wrong binary).`,
      );
    }

    zipPath = readdirSync(releasePath, { recursive: true, encoding: "utf-8" })
      .filter(filename => /^bun.*\.zip$/i.test(filename))
      .map(filename => join(releasePath, filename))
      .sort((a, b) => b.includes("profile") - a.includes("profile"))
      .at(0);

    if (zipPath) {
      break downloadLoop;
    }

    console.warn(`Waiting for ${target}.zip to be available...`);
    await new Promise(resolve => setTimeout(resolve, i * 1000));
  }

View on GitHub (pinned to 8c5296ac45)

When it happens

Trigger: Thrown at scripts/runner.node.mjs:2750 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/834c0ab01c86c93e. Report an issue: GitHub.