{"record":{"id":"7fb9bcabfdfac3b4","repo":"zed-industries/zed","slug":"failed-to-run-command-command-output","errorCode":null,"errorMessage":"Failed to run command: {command:?}: output: {}","messagePattern":"Failed to run command: (.+?): output: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/remote/src/transport.rs","lineNumber":285,"sourceCode":"        std::env::var(\"ZED_BUILD_REMOTE_SERVER\").unwrap_or(\"nocompress\".into());\n\n    if let \"never\" = &*build_remote_server {\n        return Ok(None);\n    } else if let \"false\" | \"no\" | \"off\" | \"0\" = &*build_remote_server {\n        if binary_exists_on_server {\n            return Ok(None);\n        }\n        log::warn!(\"ZED_BUILD_REMOTE_SERVER is disabled, but no server binary exists on the server\")\n    }\n\n    async fn run_cmd(command: &mut Command) -> Result<()> {\n        let output = command\n            .kill_on_drop(true)\n            .stdout(Stdio::inherit())\n            .stderr(Stdio::inherit())\n            .output()\n            .await?;\n        anyhow::ensure!(\n            output.status.success(),\n            \"Failed to run command: {command:?}: output: {}\",\n            String::from_utf8_lossy(&output.stderr)\n        );\n        Ok(())\n    }\n\n    let use_musl = !build_remote_server.contains(\"nomusl\");\n    let triple = format!(\n        \"{}-{}\",\n        platform.arch,\n        match platform.os {\n            RemoteOs::Linux =>\n                if use_musl {\n                    \"unknown-linux-musl\"\n                } else {\n                    \"unknown-linux-gnu\"\n                },","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/remote/src/transport.rs#L267-L303","documentation":"In transport.rs run_cmd: a local command (used while building the remote server from source) exited unsuccessfully; the error embeds the command and its captured output. It fails the remote-server build pipeline step.","triggerScenarios":"Thrown at crates/remote/src/transport.rs:285 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the included output for the build failure","Ensure build tools (cargo/rustc) are installed and up to date","Set ZED_BUILD_REMOTE_SERVER=never as a workaround"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}