Pinned musl version causes codex to fail to start
Resolved 💬 6 comments Opened Nov 4, 2025 by illgitthat Closed Nov 4, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.54.0
What subscription do you have?
using azure provider
Which model were you using?
gpt-5-codex
What platform is your computer?
Windows 11 - Running via Ubuntu on WSL
What issue are you seeing?
https://github.com/openai/codex/issues/6116 introduced a regression for me. Now I am no longer able to run the codex executable on WSL.
Error:
adam@DESKTOP1:~/..$ npm --version
11.6.2
adam@DESKTOP1:~/..$ npm list -g @openai/codex
/home/adam/.nvm/versions/node/v20.17.0/lib
└── @openai/codex@0.54.0
adam@DESKTOP1:~/..$ ls /home/adam/.nvm/versions/node/v20.17.0/lib/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/
codex path
adam@DESKTOP1:~/..$ ls /home/adam/.nvm/versions/node/v20.17.0/lib/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/codex
codex
adam@DESKTOP1:~/..$ npm uninstall -g @openai/codex
npm install -g @openai/codex
removed 1 package in 150ms
added 1 package in 2s
adam@DESKTOP1:~/..$ codex
Error: spawn /home/adam/.nvm/versions/node/v20.17.0/lib/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/codex/codex ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn /home/adam/.nvm/versions/node/v20.17.0/lib/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/codex/codex',
path: '/home/adam/.nvm/versions/node/v20.17.0/lib/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/codex/codex',
spawnargs: []
}
What steps can reproduce the bug?
Install on WSL, try to run codex.
Additional information
Related to: issue https://github.com/openai/codex/issues/6116
Bug introduced via https://github.com/openai/codex/pull/6189
FYI @dylan-hurd-oai @etraut-openai
6 Comments
codex-actions also fails on github since 0.54
I'm also running into this issue while running on Codex in WSL on Windows 11. I've downgraded to version 0.53 to work around it.
Same issue on Ubuntu 25.04 - they fully broke the cli today for everybody. Full brick.
What was the problem:
The npm package uses musl-compiled Linux binaries (x86_64-unknown-linux-musl)
WSL2 runs Ubuntu with glibc 2.39, not musl
The musl binary was incompatible and segfaulted
Solution:
Downloaded the codex-x86_64-unknown-linux-gnu.tar.gz (glibc version) from GitHub releases and replaced the musl binary at:
/home/ilya/.nvm/versions/node/v24.7.0/lib/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/codex/codex
Thanks for the bug report. We're working on reverting the fix to #6116.
Fix available in https://github.com/openai/codex/releases/tag/rust-v0.55.0 and on npm.