Skip to content

WSL: No solution to "Error: The combination of seccomp/landlock that Codex uses for sandboxing is not supported in this environment."? #1039

@gamergenic

Description

@gamergenic

What version of Codex is running?

0.1.2505172129

Which model were you using?

o4-mini

What platform is your computer?

Linux 4.4.0-19041-Microsoft x86_64 x86_64

What steps can reproduce the bug?

Issue happens randomly during normal use on WSL.

What is the expected behavior?

A useable agent.

What do you see instead?

Error: The combination of seccomp/landlock that Codex uses for sandboxing is not
supported in this environment.

If you are running in a Docker container, you may want to try adding
restrictions to your Docker container such that it provides your desired
sandboxing guarantees and then run Codex with the
--dangerously-auto-approve-everything option inside the container.

If you are running on an older Linux kernel that does not support newer
features of seccomp/landlock, you will have to update your kernel to a newer
version.

at file:///root/.nvm/versions/node/v22.15.0/lib/node_modules/@openai/codex/dist/cli.js:498:184
at ChildProcess.exithandler (node:child_process:421:5)
at ChildProcess.emit (node:events:518:28)
at x0.emit (file:///root/.nvm/versions/node/v22.15.0/lib/node_modules/@openai/codex/dist/cli.js:332:3112)
at maybeClose (node:internal/child_process:1101:16)
at Socket.<anonymous> (node:internal/child_process:456:11)
at Socket.emit (node:events:518:28)
at x0.emit (file:///root/.nvm/versions/node/v22.15.0/lib/node_modules/@openai/codex/dist/cli.js:332:3112)
at Pipe.<anonymous> (node:net:351:12)

Additional information

Codex has been perfectly useable over the last 2 weeks on WSL until today. Now I receive the above across a wide variety of prompts & tasks. I doubt it's a change in codex, more likely something in my project is suddenly triggering it. The --dangerously-auto-approve-everything doesn't change anything. Codex is no longer able to complete any tasks in this project as a result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions