{"record":{"id":"02761a709a30384e","repo":"openai/codex","slug":"sandbox-denied-exec-error-exit-code-stdout","errorCode":null,"errorMessage":"sandbox denied exec error, exit code: {}, stdout: {}, stderr: {}","messagePattern":"sandbox denied exec error, exit code: (.+?), stdout: (.+?), stderr: (.+?)","errorType":"exception","errorClass":"SandboxErr","httpStatus":null,"severity":"error","filePath":"codex-rs/protocol/src/error.rs","lineNumber":38,"sourceCode":"use codex_utils_string::truncate_middle_with_token_budget;\nuse http::StatusCode;\nuse serde_json;\nuse std::fmt;\nuse std::io;\nuse std::time::Duration;\nuse strum_macros::EnumDiscriminants;\nuse thiserror::Error;\nuse tokio::task::JoinError;\n\npub type Result<T> = std::result::Result<T, CodexErr>;\n\n/// Limit UI error messages to a reasonable size while keeping useful context.\nconst ERROR_MESSAGE_UI_MAX_BYTES: usize = 2 * 1024;\n\n#[derive(Error, Debug)]\npub enum SandboxErr {\n    /// Error from sandbox execution\n    #[error(\n        \"sandbox denied exec error, exit code: {}, stdout: {}, stderr: {}\",\n        .output.exit_code, .output.stdout.text, .output.stderr.text\n    )]\n    Denied {\n        output: Box<ExecToolCallOutput>,\n        network_policy_decision: Option<NetworkPolicyDecisionPayload>,\n    },\n\n    /// Error from linux seccomp filter setup\n    #[cfg(target_os = \"linux\")]\n    #[error(\"seccomp setup error\")]\n    SeccompInstall(#[from] seccompiler::Error),\n\n    /// Error from linux seccomp backend\n    #[cfg(target_os = \"linux\")]\n    #[error(\"seccomp backend error\")]\n    SeccompBackend(#[from] seccompiler::BackendError),\n","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/protocol/src/error.rs#L20-L56","documentation":"Error \"sandbox denied exec error, exit code: {}, stdout: {}, stderr: {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/protocol/src/error.rs:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}