openai/codex · error · SetupFailure
HelperReadAclHelperSpawnFailed
HelperReadAclHelperSpawnFailed
Error message
spawn read ACL helper failed: {err} What it means
Sentinel error: spawning the separate read-ACL helper process failed (the io/OS error is chained). This happens after read roots are present and the read-ACL mutex check showed no helper already running; without the helper, read-root ACLs cannot be granted to the sandbox user.
Solutions
- Check the chained io error for the spawn failure (missing binary, access denied)
- Verify the setup/helper binary path is valid and executable in the sandbox layout
- Re-run setup after fixing the underlying spawn cause (for example antivirus blocking the helper)
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at codex-rs/windows-sandbox-rs/src/bin/setup_main/win.rs:820 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/91e9e94978b082ac.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/windows-sandbox-rs/src/bin/setup_main/win.rs:820
}
.context("apply deny-read ACLs")?;
if !applied_deny_read_paths.is_empty() {
log_line(
log,
&format!("applied {} deny-read ACLs", applied_deny_read_paths.len()),
)?;
}
if payload.read_roots.is_empty() {
log_line(log, "no read roots to grant; skipping read ACL helper")?;
} else {
match read_acl_mutex_exists() {
Ok(true) => {
log_line(log, "read ACL helper already running; skipping spawn")?;
}
Ok(false) => {
spawn_read_acl_helper(payload, log).map_err(|err| {
anyhow::Error::new(SetupFailure::new(
SetupErrorCode::HelperReadAclHelperSpawnFailed,
format!("spawn read ACL helper failed: {err}"),
))
})?;
}
Err(err) => {
log_line(
log,
&format!("read ACL mutex check failed: {err}; spawning anyway"),
)?;
spawn_read_acl_helper(payload, log).map_err(|spawn_err| {
anyhow::Error::new(SetupFailure::new(
SetupErrorCode::HelperReadAclHelperSpawnFailed,
format!(
"spawn read ACL helper failed after mutex error {err}: {spawn_err}"
),
))
})?;View on GitHub (pinned to 339751715c)