zed-industries/zed · critical · anyhow::Error
Job rollback failed, the app might be left in an…
Error message
Job rollback failed, the app might be left in an inconsistent state: ({:?}) What it means
The most serious updater outcome: the update failed, and while rolling back the already-applied jobs, one of their rollback closures returned an error. The application directory is now left between two versions — the updater explicitly warns it may be inconsistent and gives up. Usually the underlying error is 144: a delete job cannot be rolled back.
Solutions
- Download the latest full installer and install it over the broken installation — this is the reliable repair path.
- If the installer refuses or the app misbehaves, uninstall Zed (keeping settings) and reinstall cleanly.
- Check the updater log to see which rollback failed and whether data directories were touched (they are not part of JOBS).
- Prevent recurrence: ensure disk space and AV exclusions before accepting updates.
Defensive patterns
Strategy: fallback
Prevention
- After this error, assume the install is inconsistent: repair with a full installer rather than retrying incremental update.
- Order destructive jobs last so rollback never hits a delete (root cause of the wrapped 144 error).
- Keep user data (settings) outside the app directory — JOBS only touch the install tree, so a clean reinstall is safe.
When it happens
Trigger: Update fails mid-apply; the rollback loop `(0..=last_successful_job).rev()` hits a job whose rollback errors — most commonly a delete job (always bails, see error 144), or a move/copy rollback failing on a locked file.
Common situations: Partial Windows update with files deleted then a later step failing (antivirus locks, disk full, crash), so the rollback cannot restore a consistent install.
Related errors
- Autoupdate failed, rollback successful
- Delete operations cannot be rolled back, file
- Autoupdate failed, nothing to rollback
- RmRegisterResources failed
- RmStartSession failed
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/9b65cecd6aa16e63.
Report an issue: GitHub.
Appendix: source
Thrown at crates/auto_update_helper/src/updater.rs:431
break 'outer;
}
},
}
}
}
if last_successful_job
.map(|job| job != JOBS.len() - 1)
.unwrap_or(true)
{
let Some(last_successful_job) = last_successful_job else {
anyhow::bail!("Autoupdate failed, nothing to rollback");
};
for job in (0..=last_successful_job).rev() {
let job = &JOBS[job];
if let Err(e) = (job.rollback)(app_dir) {
anyhow::bail!(
"Job rollback failed, the app might be left in an inconsistent state: ({:?})",
e
);
}
}
anyhow::bail!("Autoupdate failed, rollback successful");
}
if launch {
#[allow(clippy::disallowed_methods, reason = "doesn't run in the main binary")]
let _child = zed_launch_command(app_dir, launch_arguments)
.spawn()
.context("Failed to launch Zed after update")?;
}
log::info!("Update completed successfully");
Ok(())
}View on GitHub (pinned to f4178619ac)