jdx/mise · error
unsupported task cache store version
Error message
unsupported task cache store version {}; expected {} What it means
When mise loads a persisted task artifact cache store it composes the local and remote cache backends and checks the resulting store's version against the currently supported TASK_CACHE_STORE_VERSION. If the on-disk (or remote) store was written by a different version of mise, the load is rejected with this error. It exists to prevent misinterpreting a cache layout produced by older or newer tooling.
Solutions
- Delete the stale cache directory (default: ~/.cache/mise/task-artifacts or $MISE_CACHE_DIR/task-artifacts) and rerun the task to rebuild it.
- Upgrade or downgrade mise so the binary matches the version that wrote the cache store.
- Point cache artifacts_dir at a fresh location via config to bypass the incompatible store.
- If it recurs across versions, report it; the store version bump may need a migration path.
Example fix
// before (stale store from older mise) ~/.cache/mise/task-artifacts/v0/... -> error: unsupported task cache store version 0; expected 1 // after rm -rf ~/.cache/mise/task-artifacts && mise run build # store recreated at current version
Defensive patterns
Strategy: fallback
Validate before calling
mise_cache_dir="${MISE_CACHE_DIR:-$HOME/.cache/mise}"
[ -d "$mise_cache_dir/task-artifacts" ] && mise run build || echo "cache dir absent: safe" Try / catch
// Rust: treat as cache-miss, not fatal
match load_task_cache(...) {
Err(e) if e.to_string().contains("unsupported task cache store version") => {
warn!("stale cache store, rebuilding");
clear_cache_dir()?;
run_task_uncached()?;
}
r => r,
} Prevention
- Bump/refresh cache dirs after mise upgrades in CI setup scripts
- Don't share a single mise cache directory across different mise versions
- Pin the mise version per project so store formats stay consistent
When it happens
Trigger: Calling into task cache restore/save (e.g. running a task with artifact caching enabled) when the cache directory at $MISE_CACHE_DIR/task-artifacts/<CACHE_DIR_VERSION> contains a store whose version() differs from the compiled-in TASK_CACHE_STORE_VERSION — typically a store written by a different mise version.
Common situations: After upgrading or downgrading mise while an old cache directory persists; switching between release and dev builds that bumped the store format; sharing a cache dir across machines with different mise versions (e.g. in CI caches).
Related errors
- task action manifest has an invalid identity
- action prediction payload is too large
- cache agent did not return the rustc identity
- cache agent did not store the rustc identity
- cache agent returned an incomplete blob lookup response
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/8d87799445a961f9.
Report an issue: GitHub.
Appendix: source
Thrown at src/task/task_cache.rs:430
base_url,
namespace,
token: settings.task.cache.remote_token.clone(),
token_file: settings.task.cache.remote_token_file.clone(),
oidc_audience: settings.task.cache.remote_oidc_audience.clone(),
connect_timeout: settings.http_timeout(),
read_timeout: settings.http_timeout(),
download_timeout: settings.http_download_timeout(),
retries: settings.http_retries(),
},
staging_dir: cache_dir.join("remote"),
mode,
})
} else {
None
};
let store = compose_task_cache_stores(local, remote)?;
if store.version() != TASK_CACHE_STORE_VERSION {
bail!(
"unsupported task cache store version {}; expected {}",
store.version(),
TASK_CACHE_STORE_VERSION
);
}
Ok(TaskArtifactCache {
root,
cache_dir,
store,
key,
action: encoded,
explanation,
state_path,
limits,
})
}
}
View on GitHub (pinned to 533346cc37)