zed-industries/zed · error
failed to mount
Error message
failed to mount: {:?} What it means
install_release_macos attached the downloaded DMG with `hdiutil attach -nobrowse` under a temporary mount root and the command failed (non-zero status or spawn failure, per the embedded debug output); the disk image could not be mounted, so the bundled app inside is never reached for copying.
Solutions
- Retry the update — hdiutil occasionally fails transiently under load
- Verify the downloaded DMG is complete (re-download if checksum/size mismatch)
- Check that /tmp or the designated mount root is writable and not exhaustively mounted
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/auto_update/src/auto_update.rs:1210 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/a932c6518ed93ffb.
Report an issue: GitHub.
Appendix: source
Thrown at crates/auto_update/src/auto_update.rs:1221
let running_app_filename = running_app_path
.file_name()
.with_context(|| format!("invalid running app path {running_app_path:?}"))?;
let mount_path = temp_dir.path().join("Zed");
let mut mounted_app_path: OsString = mount_path.join(running_app_filename).into();
mounted_app_path.push("/");
let mut cmd = new_command("hdiutil");
cmd.args(["attach", "-nobrowse"])
.arg(&downloaded_dmg)
.arg("-mountroot")
.arg(temp_dir.path());
let output = cmd
.output()
.await
.with_context(|| "failed to mount: {cmd}")?;
anyhow::ensure!(
output.status.success(),
"failed to mount: {:?}",
String::from_utf8_lossy(&output.stderr)
);
let unmounter = MacOsUnmounter {
mount_path: mount_path.clone(),
background_executor,
};
let mut cmd = new_command("rsync");
cmd.args(["-av", "--delete", "--exclude", "Icon?"])
.arg(&mounted_app_path)
.arg(&running_app_path);
let rsync_output = cmd.output().await;
// Await the unmount (even if rsync failed) so that the installer temp dir
// can be deleted once this function returns.View on GitHub (pinned to 916fc2b8cb)