JuliusBrussee/caveman · critical
signature check failed for checksums.txt — refusing to…
Error message
signature check failed for checksums.txt — refusing to install; partial download deleted
What it means
After downloading checksums.txt and its signature, the installer calls verifyChecksumSignature(); if the cryptographic signature over checksums.txt does not verify, it refuses to install and deletes partial downloads. This guards against tampered or substitute checksum manifests.
Solutions
- Re-run the install to re-download a fresh checksums.txt + signature pair.
- Verify you are hitting the official release host, not a mirror or proxy cache.
- Check whether a proxy is rewriting/transcoding the response body.
- If you control the release, confirm the signature was regenerated after the last checksums.txt update.
Example fix
// before (stale CDN cache) caveman install // signature check failed // after caveman install --no-cache # or clear proxy cache, then retry
Defensive patterns
Strategy: retry
Try / catch
try { await install() } catch (e) { if (String(e.message).includes('signature check failed for checksums.txt')) { clearCaches(); await install(); } else throw e; } Prevention
- Never disable signature verification or use unofficial mirrors.
- Bypass proxies that rewrite response bodies for install traffic.
- Re-run installs from a clean cache so checksums.txt and its signature are fetched together.
When it happens
Trigger: verifyChecksumSignature(checksumsRaw, signatureRaw) returns false — signature bytes don't match the manifest under the pinned public key, the signature is for a different checksums.txt version, or the files were truncated/modified in transit.
Common situations: Man-in-the-middle or compromised mirror serving altered checksums.txt; stale cached signature paired with a new release; corporate proxy rewriting content.
Understand the failure class
Background: Checksum mismatch errors: "checksum verification failed", "digest mismatch", "expected vs actual checksum" — what they mean and how to fix them — this error's family across 41 libraries.
Related errors
- signature check failed for checksums.txt — refusing to…
- : MCP ownership journal failed; native config may already…
- ambiguous escaped path sequence
- auth_token: in is ignored — the inbound token is read only…
- awscreds: AWS_CONTAINER_CREDENTIALS_FULL_URI is not a valid…
AI-assisted analysis of JuliusBrussee/caveman@3ee70a1026 (2026-09-20).
Data as JSON: /api/errors/7f71862ab5022b1a.
Report an issue: GitHub.
Appendix: source
Thrown at packages/cli/src/index.ts:2448
return;
}
const base = (process.env.CAVE_BINARY_RELEASE_BASE ?? BINARY_RELEASE_BASE_DEFAULT).replace(/\/+$/, "");
const releaseBase = `${base}/${BINARY_RELEASE}`;
let checksumsRaw: string;
let signatureRaw: string;
try {
const [checksumsResponse, signatureResponse] = await Promise.all([
fetchReleaseAsset(`${releaseBase}/checksums.txt`, timeoutSeconds),
fetchReleaseAsset(`${releaseBase}/checksums.txt.keysig`, timeoutSeconds),
]);
[checksumsRaw, signatureRaw] = await Promise.all([checksumsResponse.text(), signatureResponse.text()]);
} catch (error) {
setupInstallFailure(error, timeoutSeconds);
}
if (!verifyChecksumSignature(checksumsRaw!, signatureRaw!)) {
throw new Error("signature check failed for checksums.txt — refusing to install; partial download deleted");
}
let checksums: Map<string, string>;
try {
checksums = parseSignedChecksums(checksumsRaw!);
} catch {
throw new Error("signature check failed for checksums.txt — refusing to install; partial download deleted");
}
const installed: InstalledBinary[] = [];
const artifactDigests: Record<string, string> = {};
for (const name of INSTALL_BINARIES) {
const artifact = `${name}_${platform.os}_${platform.arch}`;
const expected = checksums.get(artifact);
if (!expected) {
throw new Error(`signature check failed for ${artifact} — refusing to install; partial download deleted`);
}
const target = join(binDir, binaryInstallFilename(name, platform.os));View on GitHub (pinned to 3ee70a1026)