Skip to content

Codex fails on shared Linux systems due to global /tmp/codex-ipc permissions #26485

Closed as duplicate

Description

@light12222

What version of the IDE extension are you using?

Visual Studio Code (Remote SSH)

What subscription do you have?

ChatGPT Plus

Which IDE are you using?

VS Code

What platform is your computer?

macOS (client) + Linux HPC cluster (remote)

What issue are you seeing?

Summary

The Codex VS Code extension appears to create and use a global IPC directory:

/tmp/codex-ipc

On shared Linux systems (e.g. HPC clusters), the directory becomes owned by whichever user launches Codex first.

Subsequent users cannot create their own IPC sockets and the extension fails to start.


Environment

  • VS Code Remote SSH
  • Linux (multi-user HPC cluster)
  • OpenAI ChatGPT / Codex VS Code Extension
  • Release version: 26.602.30954
  • Previously reproduced on pre-release version as well

Error

The extension repeatedly logs:

listen EACCES: permission denied /tmp/codex-ipc/ipc-4208563.sock

Codex never initializes.


Reproduction

Login node A:

drwxr-xr-x 2 xz4366 xz4366 /tmp/codex-ipc

Login node B:

drwxr-xr-x 2 wz3008 wz3008 /tmp/codex-ipc

The directory owner changes depending on who first starts Codex on that node.

Any subsequent user receives:

EACCES: permission denied

when attempting to create:

/tmp/codex-ipc/ipc-<uid>.sock

Additional Information

I verified that:

  • Home directory quota is not the cause.
  • Inode quota issues were resolved.
  • CODEX_HOME was moved to a user-owned scratch directory.
  • TMPDIR/TMP/TEMP were redirected to a user-owned scratch directory.
  • The extension still attempts to use /tmp/codex-ipc.
  • The issue reproduces on multiple login nodes.

Expected Behavior

The extension should use a user-scoped runtime location, such as:

$XDG_RUNTIME_DIR

or

/tmp/codex-ipc-$UID

or

/tmp/codex-ipc-$USER

instead of a single global directory shared across all users.

What steps can reproduce the bug?

  1. Install the OpenAI Codex VS Code extension on a shared Linux system (e.g. HPC cluster or multi-user server).

  2. User A opens Codex through VS Code Remote SSH.

  3. Observe that the extension creates:

    /tmp/codex-ipc

    owned by User A with permissions similar to:

    drwxr-xr-x

  4. Disconnect User A.

  5. Login as User B on the same machine.

  6. Open Codex through VS Code Remote SSH.

  7. Observe repeated errors:

    listen EACCES: permission denied /tmp/codex-ipc/ipc-.sock

  8. Codex never initializes and remains unavailable.

Additional observation:

The same behavior reproduces across multiple login nodes. The owner of /tmp/codex-ipc changes depending on which user first launches Codex on that node.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    extension
    on Jun 4, 2026
  2. added
    bug
    app-server
    on Jun 4, 2026
  3. github-actions commented on Jun 4, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. etraut-openai commented on Oct 13, 2026

    @etraut-openai
    Contributor

    (response from codex)

    Thanks for confirming this on 26.602.30954. Closing as a duplicate of #17765, which tracks the same global /tmp/codex-ipc ownership collision on shared Linux hosts. The IPC parent directory, not just the socket filename, needs to be user-scoped; please follow #17765.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app-serverbugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions