bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted
What version of the Codex App are you using (From “About Codex” dialog)?
codex-cli 0.124.0
What subscription do you have?
Pro
What platform is your computer?
Ubuntu 24.04.1 LTS
What issue are you seeing?
Codex messages as working through the issue:
I’m retrying the fix path now, but I’m first verifying the shell/edit path
works so we don’t waste another cycle on a no-op. Then I’ll make only the
narrow radar overlay lifecycle change.
• I would, but I can’t actually land it right now.
The tool/edit path is still broken on my side:
- git status is clean because no patch was ever applied
- the sandbox is failing on real file reads/writes with bwrap: loopback:
Failed RTM_NEWADDR: Operation not permitted
So if I said “I retried it,” we’d be back in the same bad state: no actual
code change, zero signal.
So yes, that is still the right “quick fix” to try. But I can’t honestly claim
to have retried it until the editor path is working. If you want, the moment
the tool path is healthy, that is the first change I’d make.
• I’m retrying now. First I’ll read the radar overlay and AIS overlay code to
make sure the lifecycle refactor stays narrowly scoped, then I’ll patch only
that piece.
• The tool update did not fix shell access for real file reads. I’m probing one
more minimal command path so I can tell whether this is a general sandbox
failure or just sed/subprocesses being blocked.
• Ran pwd
└ /home/
────────────────────────────────────────────────────────────────────────────────
• I still don’t have a usable edit path. pwd works, but any real command like
cat, sed, even true still fails with the same sandbox error. I’m checking one
last minimal builtin case, then I’ll call it if it’s still dead.
• Ran pwd
│ pwd
└ /home/
/home/
────────────────────────────────────────────────────────────────────────────────
• I tried again. The tooling is still broken for actual file work.
Current state:
- pwd works
- any real command still fails: cat, sed, true, cd, exit 0
- same error every time: bwrap: loopback: Failed RTM_NEWADDR: Operation not
permitted
So I still cannot:
- read the files
- patch them
- run tests
- verify a fix
There are still no code changes in your repo.
What steps can reproduce the bug?
Run the codex terminal app with the cmd 'codex' inside any projecct directory, use the /permissions command, select 'Full Access', ask codex to edit a file, codex will fail to edit such file as per the BWRAP issue
What is the expected behavior?
_No response_
Additional information
_No response_