{"record":{"id":"fdc5b5fe3b426e25","repo":"openai/codex","slug":"failed-to-spawn-exec-server-0","errorCode":null,"errorMessage":"failed to spawn exec-server: {0}","messagePattern":"failed to spawn exec-server: (.+?)","errorType":"exception","errorClass":"ExecServerError","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/client.rs","lineNumber":630,"sourceCode":"        &self,\n        params: crate::HttpRequestParams,\n    ) -> BoxFuture<\n        '_,\n        Result<(crate::HttpRequestResponse, crate::HttpResponseBodyStream), ExecServerError>,\n    > {\n        async move { self.get().await?.http_request_stream(params).await }.boxed()\n    }\n}\n\nimpl LazyRemoteExecServerClient {\n    pub(crate) async fn environment_info(&self) -> Result<EnvironmentInfo, ExecServerError> {\n        self.get().await?.environment_info().await\n    }\n}\n\n#[derive(Debug, thiserror::Error)]\npub enum ExecServerError {\n    #[error(\"failed to spawn exec-server: {0}\")]\n    Spawn(#[source] std::io::Error),\n    #[error(\"timed out connecting to exec-server websocket `{url}` after {timeout:?}\")]\n    WebSocketConnectTimeout { url: String, timeout: Duration },\n    #[error(\"failed to connect to exec-server websocket `{url}`: {source}\")]\n    WebSocketConnect {\n        url: String,\n        #[source]\n        source: tokio_tungstenite::tungstenite::Error,\n    },\n    #[error(\"failed to configure exec-server websocket: {0}\")]\n    WebSocketConfiguration(String),\n    #[error(\"timed out waiting for exec-server initialize handshake after {timeout:?}\")]\n    InitializeTimedOut { timeout: Duration },\n    #[error(\"exec-server transport closed\")]\n    Closed,\n    #[error(\"{0}\")]\n    Disconnected(String),\n    #[error(\"failed to serialize or deserialize exec-server JSON: {0}\")]","sourceCodeStart":612,"sourceCodeEnd":648,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/client.rs#L612-L648","documentation":"Error \"failed to spawn exec-server: {0}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/client.rs:630 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the exec-server binary path and permissions; see the underlying spawn error."],"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"}