codex - 💡(How to fix) Fix Linux sandbox cannot execute codex itself [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17367Fetched 2026-04-11 06:16:55
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Code Example

$ CODEX_HOME=/tmp/codex-home codex sandbox linux -c 'default_permissions="sbx"' -c 'permissions.sbx.network.enabled=true' echo
WARNING: proceeding, even though we could not update PATH: Refusing to create helper binaries under temporary dir "/tmp" (codex_home: "/tmp/codex-home")
bwrap: execvp /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex: No such file or directory
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.119.0-alpha.33

What subscription do you have?

Pro

Which model were you using?

gpt-5.4

What platform is your computer?

Linux 6.19.9-arch1-1.1 x86_64 unknown

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

$ CODEX_HOME=/tmp/codex-home codex sandbox linux -c 'default_permissions="sbx"' -c 'permissions.sbx.network.enabled=true' echo
WARNING: proceeding, even though we could not update PATH: Refusing to create helper binaries under temporary dir "/tmp" (codex_home: "/tmp/codex-home")
bwrap: execvp /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex: No such file or directory

(used CODEX_HOME to avoid my config being involved in any way; it happens without that as well)

If I don't set default_permissions its fine

What steps can reproduce the bug?

See above

What is the expected behavior?

sandbox can execute

Additional information

No response

extent analysis

TL;DR

The issue can likely be resolved by setting a non-temporary directory for CODEX_HOME to avoid the restriction on creating helper binaries.

Guidance

  • The error message indicates that the issue is due to the CODEX_HOME directory being set to a temporary directory (/tmp/codex-home), which is not allowed for creating helper binaries.
  • Try setting CODEX_HOME to a non-temporary directory, such as ~/codex-home, to see if the issue is resolved.
  • The default_permissions setting may be related to the issue, but it's not clear how; try removing or modifying this setting to see if it makes a difference.
  • Verify that the codex executable is present in the expected location (/usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex) and that the permissions are correct.

Example

No code snippet is provided as it's not necessary for this issue.

Notes

The issue may be specific to the codex-cli version (0.119.0-alpha.33) or the gpt-5.4 model being used. Further investigation may be needed to determine the root cause.

Recommendation

Apply workaround: set CODEX_HOME to a non-temporary directory, as this is a simple change that may resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Linux sandbox cannot execute codex itself [1 participants]