openai/codex · error · CodexErr
codex-linux-sandbox was required but not provided
Error message
codex-linux-sandbox was required but not provided
What it means
Configuration/supply error: on Linux, sandboxing requires the external codex-linux-sandbox helper binary, and it was not found or not provided at the expected location. The session refuses to run sandboxed commands rather than silently degrading isolation.
Solutions
- Build/install codex-linux-sandbox so it is on PATH or at the configured location
- Point the configuration to the correct sandbox binary path
- Run with sandboxing disabled only if the environment is already trusted
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at codex-rs/protocol/src/error.rs:158 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/ece4d542f06fe03b.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/protocol/src/error.rs:158
ConnectionFailed(ConnectionFailedError),
#[error("Quota exceeded. Check your plan and billing details.")]
QuotaExceeded,
#[error(
"To use Codex with your ChatGPT plan, upgrade to Plus: https://chatgpt.com/explore/plus."
)]
UsageNotIncluded,
#[error("We're currently experiencing high demand, which may cause temporary errors.")]
InternalServerError,
/// Retry limit exceeded.
#[error("{0}")]
RetryLimit(RetryLimitReachedError),
/// Agent loop died unexpectedly
#[error("internal error; agent loop died unexpectedly")]
InternalAgentDied,
/// Sandbox error
#[error("sandbox error: {0}")]
Sandbox(#[from] SandboxErr),
#[error("codex-linux-sandbox was required but not provided")]
LandlockSandboxExecutableNotProvided,
#[error("unsupported operation: {0}")]
UnsupportedOperation(String),
#[error("{0}")]
RefreshTokenFailed(RefreshTokenFailedError),
#[error("Fatal error: {0}")]
Fatal(String),
// -----------------------------------------------------------------
// Automatic conversions for common external error types
// -----------------------------------------------------------------
#[error(transparent)]
Io(#[from] io::Error),
#[error(transparent)]
Json(#[from] serde_json::Error),
#[cfg(target_os = "linux")]
#[error(transparent)]
LandlockRuleset(#[from] landlock::RulesetError),
#[cfg(target_os = "linux")]View on GitHub (pinned to 339751715c)