codex icon indicating copy to clipboard operation
codex copied to clipboard

Pinned musl version causes codex to fail to start

Open illgitthat opened this issue 1 year ago • 6 comments

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/[email protected]

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

illgitthat avatar Nov 04 '25 19:11 illgitthat

codex-actions also fails on github since 0.54

activadee avatar Nov 04 '25 19:11 activadee

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.

brucehart avatar Nov 04 '25 19:11 brucehart

Same issue on Ubuntu 25.04 - they fully broke the cli today for everybody. Full brick.

arlogilbert avatar Nov 04 '25 19:11 arlogilbert

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

ilyafedotov-ops avatar Nov 04 '25 20:11 ilyafedotov-ops

Thanks for the bug report. We're working on reverting the fix to #6116.

etraut-openai avatar Nov 04 '25 20:11 etraut-openai

Fix available in https://github.com/openai/codex/releases/tag/rust-v0.55.0 and on npm.

bolinfest avatar Nov 04 '25 20:11 bolinfest