{"record":{"id":"8ae26af4163368df","repo":"zed-industries/zed","slug":"failed-to-copy-zed-update-from-to","errorCode":null,"errorMessage":"failed to copy Zed update from {:?} to {:?}: {:?}","messagePattern":"failed to copy Zed update from (.+?) to (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/auto_update/src/auto_update.rs","lineNumber":1186,"sourceCode":"    let mut to = home_dir.join(\".local\");\n\n    let expected_suffix = format!(\"{}/libexec/zed-editor\", app_folder_name);\n\n    if let Some(prefix) = running_app_path\n        .to_str()\n        .and_then(|str| str.strip_suffix(&expected_suffix))\n    {\n        to = PathBuf::from(prefix);\n    }\n\n    let mut cmd = new_command(\"rsync\");\n    cmd.args([\"-av\", \"--delete\"]).arg(&from).arg(&to);\n    let output = cmd\n        .output()\n        .await\n        .with_context(|| \"failed to rsync: {cmd}\")?;\n\n    anyhow::ensure!(\n        output.status.success(),\n        \"failed to copy Zed update from {:?} to {:?}: {:?}\",\n        from,\n        to,\n        String::from_utf8_lossy(&output.stderr)\n    );\n\n    Ok(Some(to.join(expected_suffix)))\n}\n\nasync fn install_release_macos(\n    temp_dir: &InstallerDir,\n    downloaded_dmg: &Path,\n    running_app_path: PathBuf,\n    background_executor: &BackgroundExecutor,\n) -> Result<Option<PathBuf>> {\n    let running_app_filename = running_app_path\n        .file_name()","sourceCodeStart":1168,"sourceCodeEnd":1204,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/auto_update/src/auto_update.rs#L1168-L1204","documentation":"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.","triggerScenarios":"Thrown at crates/auto_update/src/auto_update.rs:1175 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check write permissions on the install prefix (~/.local or the detected running-app prefix) and retry the update","Free disk space if the rsync failed while copying large binaries","Re-run the installer after restoring a consistent install directory if --delete removed partial state"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}