jdx/mise · error
tracking declarations updated, but could not commit the…
Error message
tracking declarations updated, but could not commit the change: {reason} What it means
The TOML declarations were updated, but the history checkpoint commit failed (store.attempt returned Outcome::Unavailable(reason)). Mise reports that the config change succeeded but the change could not be recorded in the operation history, including the underlying reason.
Solutions
- Read the {reason} in the message to identify why the checkpoint store was unavailable
- Check permissions and disk space on the mise data/history directory
- Retry after closing other mise processes that may hold the operation lock
- Repair or reset the history store if it is corrupted
Defensive patterns
Strategy: retry
Validate before calling
test -w ~/.local/share/mise && echo 'history dir writable'
Prevention
- Keep the mise data directory writable and backed up
- Close competing mise sessions before history-sensitive operations
When it happens
Trigger: store.attempt(&tracked, draft) inside the spawn_blocking task returns Outcome::Unavailable — e.g. history store unavailable, locked, or unable to snapshot the checkpoint — while the draft tracking edit itself is fine.
Common situations: Corrupt or inaccessible mise history store, filesystem permission problems on the history directory, or concurrent operations holding conflicting locks.
Understand the failure class
Background: "git command failed": what it means when a tool shells out to git and git exits non-zero — this error's family across 21 libraries.
Related errors
- Git diff failed ( )
- a branch name is required
- a glob is required
- a repository url is required
- adoption requires confirmation; review the directory and…
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/a6f858811b3b7006.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/dotfiles/untrack.rs:199
);
return Ok(());
}
let store = crate::system::history::checkpoint::Store::open()?;
let mut draft = crate::system::history::checkpoint::Draft::new(
crate::system::history::store::Trigger::Save,
);
draft.description = Some("stop tracking files".into());
draft.untrack = self
.targets
.iter()
.map(|path| normalize_target(&crate::system::files::resolve_target_arg(path)))
.collect();
tokio::task::spawn_blocking(move || -> Result<()> {
let _operation = crate::system::history::scope::take_operation_lock(&store, &tracked)?;
if let crate::system::history::checkpoint::Outcome::Unavailable(reason) =
store.attempt(&tracked, draft)?
{
bail!("tracking declarations updated, but could not commit the change: {reason}");
}
Ok(())
})
.await??;
info!(
"dotfiles: live files were left in place; their previously committed versions remain in Git"
);
Ok(())
}
}
static AFTER_LONG_HELP: &str = color_print::cstr!(
r#"<bold><underline>Examples:</underline></bold>
$ <bold>mise dot untrack ~/.zshrc</bold>
"#
);
View on GitHub (pinned to 533346cc37)