zed-industries/zed · error · anyhow::Error
Autoupdate failed, nothing to rollback
Error message
Autoupdate failed, nothing to rollback
What it means
After the updater's apply loop, this fires when the update did not complete but no job ever succeeded (`last_successful_job` is `None`). The rollback branch is entered (guarded by `job != JOBS.len() - 1` / `unwrap_or(true)`), finds nothing to roll back, and reports that the very first update step already failed. The installation is typically still in its original state, just not updated.
Solutions
- Check the updater log for the first job's error and fix that root cause: free disk space, repair directory permissions, close running instances.
- Temporarily disable/reconfigure antivirus realtime scanning of the Zed directory and retry the update.
- Retry the auto-update after a reboot (clears stale locks).
- If auto-update keeps failing at step zero, install the latest full release manually over the existing app.
Defensive patterns
Strategy: fallback
Prevention
- Free disk space and verify write permission on the app directory before accepting an update.
- Close other Zed instances and exclude the install dir from antivirus before updating.
- Monitor updater logs; a first-job failure is always environmental (space/permissions/locks), not model data.
When it happens
Trigger: The first job in `JOBS` fails during apply — e.g., cannot write/move into the app directory because of permissions, disk full, or a locked file — so zero jobs succeeded when the failure path runs.
Common situations: Insufficient disk space for the update payload; app directory not writable (installed for another user, or permissions changed); antivirus quarantining the new files; another Zed instance mid-update holding locks.
Related errors
- Autoupdate failed, rollback successful
- Delete operations cannot be rolled back, file
- Job rollback failed, the app might be left in an…
- RmRegisterResources failed
- RmStartSession failed
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/db4f5b91b651b4e1.
Report an issue: GitHub.
Appendix: source
Thrown at crates/auto_update_helper/src/updater.rs:425
log::error!("Operation failed (retrying): {}", err);
std::thread::sleep(Duration::from_millis(50));
}
},
None => {
log::error!("Operation failed with unexpected error, aborting: {}", err);
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)View on GitHub (pinned to f4178619ac)