{"record":{"id":"59c99ff2aeefaac5","repo":"DioxusLabs/dioxus","slug":"linuxdeploy-failed-with-exit-code-stdout","errorCode":null,"errorMessage":"linuxdeploy failed with exit code {:?}\nstdout:\n{}\nstderr:\n{}","messagePattern":"linuxdeploy failed with exit code (.+?)\nstdout:\n(.+?)\nstderr:\n(.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/linux.rs","lineNumber":89,"sourceCode":"        let output = Command::new(linuxdeploy)\n            .arg(\"--appdir\")\n            .arg(&appdir)\n            .arg(\"--output\")\n            .arg(\"appimage\")\n            .env(\"OUTPUT\", &appimage_path)\n            // Run the linuxdeploy AppImage in extract-and-run mode to avoid host\n            // runtime/FUSE differences on distros and CI runners.\n            .env(\"APPIMAGE_EXTRACT_AND_RUN\", \"1\")\n            .env(\"NO_STRIP\", \"true\")\n            .current_dir(&output_dir)\n            .output()\n            .await\n            .with_context(|| format!(\"Failed to run linuxdeploy: {}\", linuxdeploy.display()))?;\n\n        if !output.status.success() {\n            let stdout = String::from_utf8_lossy(&output.stdout);\n            let stderr = String::from_utf8_lossy(&output.stderr);\n            bail!(\n                \"linuxdeploy failed with exit code {:?}\\nstdout:\\n{}\\nstderr:\\n{}\",\n                output.status.code(),\n                stdout.trim(),\n                stderr.trim()\n            );\n        }\n\n        if !appimage_path.exists() {\n            let found = find_appimage_output(&output_dir, &name)?;\n            if let Some(found_path) = found {\n                if found_path != appimage_path {\n                    fs::rename(&found_path, &appimage_path).with_context(|| {\n                        format!(\n                            \"Failed to rename {} to {}\",\n                            found_path.display(),\n                            appimage_path.display()\n                        )\n                    })?;","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/linux.rs#L71-L107","documentation":"The linuxdeploy AppImage tool exited with a non-zero status while building the AppDir into an AppImage. The CLI captures and reports linuxdeploy's stdout/stderr along with the exit code to explain the packaging failure.","triggerScenarios":"Thrown at packages/cli/src/bundler/linux.rs:89 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["linuxdeploy failed. Read the printed stdout and stderr and install the missing dependencies it reports."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}