{"record":{"id":"a6f858811b3b7006","repo":"jdx/mise","slug":"tracking-declarations-updated-but-could-not-commi","errorCode":null,"errorMessage":"tracking declarations updated, but could not commit the change: {reason}","messagePattern":"tracking declarations updated, but could not commit the change: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/dotfiles/untrack.rs","lineNumber":199,"sourceCode":"            );\n            return Ok(());\n        }\n        let store = crate::system::history::checkpoint::Store::open()?;\n        let mut draft = crate::system::history::checkpoint::Draft::new(\n            crate::system::history::store::Trigger::Save,\n        );\n        draft.description = Some(\"stop tracking files\".into());\n        draft.untrack = self\n            .targets\n            .iter()\n            .map(|path| normalize_target(&crate::system::files::resolve_target_arg(path)))\n            .collect();\n        tokio::task::spawn_blocking(move || -> Result<()> {\n            let _operation = crate::system::history::scope::take_operation_lock(&store, &tracked)?;\n            if let crate::system::history::checkpoint::Outcome::Unavailable(reason) =\n                store.attempt(&tracked, draft)?\n            {\n                bail!(\"tracking declarations updated, but could not commit the change: {reason}\");\n            }\n            Ok(())\n        })\n        .await??;\n        info!(\n            \"dotfiles: live files were left in place; their previously committed versions remain in Git\"\n        );\n        Ok(())\n    }\n}\n\nstatic AFTER_LONG_HELP: &str = color_print::cstr!(\n    r#\"<bold><underline>Examples:</underline></bold>\n\n    $ <bold>mise dot untrack ~/.zshrc</bold>\n\"#\n);\n","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/dotfiles/untrack.rs#L181-L217","documentation":"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.","triggerScenarios":"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.","commonSituations":"Corrupt or inaccessible mise history store, filesystem permission problems on the history directory, or concurrent operations holding conflicting locks.","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"],"exampleFix":null,"handlingStrategy":"retry","validationCode":"test -w ~/.local/share/mise && echo 'history dir writable'","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Keep the mise data directory writable and backed up","Close competing mise sessions before history-sensitive operations"],"tags":["cli","dotfiles","git","checkpoint"],"backgroundTag":"git-command-failed","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}