zed-industries/zed · error

failed to copy Zed update from

Error message

failed to copy Zed update from {:?} to {:?}: {:?}

What it means

install_release_linux used `rsync -av --delete` to copy the freshly extracted Zed update over the existing install prefix and rsync exited non-zero; the message records source, destination, and exit status, so the failure is in syncing the extracted tree onto the local installation (permissions, disk, or a vanished destination), not in the download.

Solutions

  1. Check write permissions on the install prefix (~/.local or the detected running-app prefix) and retry the update
  2. Free disk space if the rsync failed while copying large binaries
  3. Re-run the installer after restoring a consistent install directory if --delete removed partial state
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at crates/auto_update/src/auto_update.rs:1175 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/8ae26af4163368df. Report an issue: GitHub.

Appendix: source

Thrown at crates/auto_update/src/auto_update.rs:1186

    let mut to = home_dir.join(".local");

    let expected_suffix = format!("{}/libexec/zed-editor", app_folder_name);

    if let Some(prefix) = running_app_path
        .to_str()
        .and_then(|str| str.strip_suffix(&expected_suffix))
    {
        to = PathBuf::from(prefix);
    }

    let mut cmd = new_command("rsync");
    cmd.args(["-av", "--delete"]).arg(&from).arg(&to);
    let output = cmd
        .output()
        .await
        .with_context(|| "failed to rsync: {cmd}")?;

    anyhow::ensure!(
        output.status.success(),
        "failed to copy Zed update from {:?} to {:?}: {:?}",
        from,
        to,
        String::from_utf8_lossy(&output.stderr)
    );

    Ok(Some(to.join(expected_suffix)))
}

async fn install_release_macos(
    temp_dir: &InstallerDir,
    downloaded_dmg: &Path,
    running_app_path: PathBuf,
    background_executor: &BackgroundExecutor,
) -> Result<Option<PathBuf>> {
    let running_app_filename = running_app_path
        .file_name()

View on GitHub (pinned to 916fc2b8cb)