jdx/mise · error
registry archive entry is too large
Error message
registry archive entry is too large
What it means
This error is thrown while validating a registry archive's individual entries during parse. The registry loader enforces a per-entry size limit (MAX_REGISTRY_ARCHIVE_ENTRY_SIZE) so that a single oversized entry cannot blow up memory or stall parsing. If any one entry's declared size exceeds that constant, parsing fails immediately.
Solutions
- Find the oversized entry in the archive and remove or split it so each entry is under MAX_REGISTRY_ARCHIVE_ENTRY_SIZE
- Regenerate the registry archive with the official packing tool instead of hand-rolled tooling
- Re-download the archive — a corrupted download may have malformed entry headers
- If the data legitimately needs to be larger, host it out-of-band rather than embedding it in a registry entry
Example fix
// before: single entry embedding a 200MB vendored binary [[tools.node.backends]] archive = "node-v20-bundle.tar.gz" // 200MB entry // after: keep registry entries small; host large artifacts externally [[tools.node.backends]] url = "https://example.com/node-v20.tar.gz"
Defensive patterns
Strategy: validation
Validate before calling
const MAX_REGISTRY_ARCHIVE_ENTRY_SIZE: u64 = /* limit from src/registry.rs */;
fn validate_entry_size(entry_size: u64) -> Result<(), String> {
if entry_size > MAX_REGISTRY_ARCHIVE_ENTRY_SIZE {
return Err(format!("entry size {entry_size} exceeds limit {MAX_REGISTRY_ARCHIVE_ENTRY_SIZE}"));
}
Ok(())
} Prevention
- Keep large artifacts out of registry entries; host them via URLs instead
- Run the registry packing tool's validation step in CI before publishing
- Verify archive integrity (checksums) after download to catch corrupt headers
When it happens
Trigger: Calling registry parsing/loading code with an archive in which one entry's entry_size exceeds MAX_REGISTRY_ARCHIVE_ENTRY_SIZE; the check runs per entry after the entry-count check.
Common situations: Hand-editing or regenerating a registry archive with a huge embedded blob (e.g. a bundled binary or giant vendored file), a corrupted/truncated archive whose entry header reports a bogus size, or a tool that packs registry data without respecting size limits.
Understand the failure class
Background: "File too large" / "file size exceeds limit" errors: why libraries cap file sizes and how to fix them — this error's family across 46 libraries.
Related errors
- registry archive is too large
- backend min_version requires version_order = "semver"
- backends must not be empty
- encrypted file exceeds the size limit
- unknown idiomatic file field
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/84c741829ee0e51a.
Report an issue: GitHub.
Appendix: source
Thrown at src/registry.rs:376
}
ensure!(
!sources.is_empty(),
"archive does not contain registry entries"
);
registry_from_sources(sources)
}
fn track_registry_archive_entry(
index: usize,
entry_size: u64,
archive_size: &mut u64,
) -> Result<()> {
ensure!(
index < MAX_REGISTRY_ARCHIVE_ENTRIES,
"registry archive contains too many entries"
);
ensure!(
entry_size <= MAX_REGISTRY_ARCHIVE_ENTRY_SIZE,
"registry archive entry is too large"
);
*archive_size = archive_size
.checked_add(entry_size)
.ok_or_else(|| eyre::eyre!("registry archive size overflow"))?;
ensure!(
*archive_size <= MAX_REGISTRY_ARCHIVE_SIZE,
"registry archive is too large"
);
Ok(())
}
fn registry_from_sources(sources: BTreeMap<String, String>) -> Result<Registry> {
let mut entries = BTreeMap::new();
let mut missing_version_order = false;
for (short, source) in sources {
let value: toml::Value = toml::from_str(&source)View on GitHub (pinned to 533346cc37)