{"record":{"id":"a932c6518ed93ffb","repo":"zed-industries/zed","slug":"failed-to-mount","errorCode":null,"errorMessage":"failed to mount: {:?}","messagePattern":"failed to mount: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/auto_update/src/auto_update.rs","lineNumber":1221,"sourceCode":"    let running_app_filename = running_app_path\n        .file_name()\n        .with_context(|| format!(\"invalid running app path {running_app_path:?}\"))?;\n\n    let mount_path = temp_dir.path().join(\"Zed\");\n    let mut mounted_app_path: OsString = mount_path.join(running_app_filename).into();\n\n    mounted_app_path.push(\"/\");\n    let mut cmd = new_command(\"hdiutil\");\n    cmd.args([\"attach\", \"-nobrowse\"])\n        .arg(&downloaded_dmg)\n        .arg(\"-mountroot\")\n        .arg(temp_dir.path());\n    let output = cmd\n        .output()\n        .await\n        .with_context(|| \"failed to mount: {cmd}\")?;\n\n    anyhow::ensure!(\n        output.status.success(),\n        \"failed to mount: {:?}\",\n        String::from_utf8_lossy(&output.stderr)\n    );\n\n    let unmounter = MacOsUnmounter {\n        mount_path: mount_path.clone(),\n        background_executor,\n    };\n\n    let mut cmd = new_command(\"rsync\");\n    cmd.args([\"-av\", \"--delete\", \"--exclude\", \"Icon?\"])\n        .arg(&mounted_app_path)\n        .arg(&running_app_path);\n    let rsync_output = cmd.output().await;\n\n    // Await the unmount (even if rsync failed) so that the installer temp dir\n    // can be deleted once this function returns.","sourceCodeStart":1203,"sourceCodeEnd":1239,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/auto_update/src/auto_update.rs#L1203-L1239","documentation":"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.","triggerScenarios":"Thrown at crates/auto_update/src/auto_update.rs:1210 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"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"}