openai/codex · error · anyhow::Error

managed Codex binary

Error message

managed Codex binary {} exited with status {}

What it means

managed_codex_version spawned `codex --version` against the managed standalone binary and the process exited with a non-zero status, so the daemon cannot determine the installed version — the binary is likely corrupted, incompatible, or its runtime is broken.

Solutions

  1. Run the managed binary's `--version` by hand to see the underlying failure
  2. Reinstall the standalone Codex install to replace a corrupted binary
  3. Check for missing shared libraries or architecture mismatch on the host
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at codex-rs/app-server-daemon/src/managed_install.rs:50 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/97e6f99a49523325. Report an issue: GitHub.

Appendix: source

Thrown at codex-rs/app-server-daemon/src/managed_install.rs:50

            codex_bin.display()
        )
    })
}

#[cfg(unix)]
pub(crate) async fn managed_codex_version(codex_bin: &Path) -> Result<String> {
    let output = Command::new(codex_bin)
        .arg("--version")
        .output()
        .await
        .with_context(|| {
            format!(
                "failed to invoke managed Codex binary {}",
                codex_bin.display()
            )
        })?;
    if !output.status.success() {
        return Err(anyhow!(
            "managed Codex binary {} exited with status {}",
            codex_bin.display(),
            output.status
        ));
    }

    let stdout = String::from_utf8(output.stdout).with_context(|| {
        format!(
            "managed Codex version was not utf-8: {}",
            codex_bin.display()
        )
    })?;
    parse_codex_version(&stdout)
}

#[cfg(unix)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) struct ExecutableIdentity {

View on GitHub (pinned to 339751715c)