codex - 💡(How to fix) Fix Vscode codex report /tmp/codex-ipc/ error when different user use same ipc directory

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

WARNING: failed to clean up stale arg0 temp dirs: Directory not empty (os error 39) "OpenAI API base URL": "https://fast.sbbbbbbbbb.xyz/v1 error following redirect for url (https://fast.sbbbbbbbbb.xyz/v1) (required)", "log DB integrity": "error returned from database: (code: 11) database disk image is malformed", "state DB integrity": "error returned from database: (code: 26) file is not a database" ┌  wangji1@bw150-5  ~/../flang  wangji/current_acc_privet_status_not_modifier_codex 29  error  | 09:46:59 vscode codex plugin ereport a ipc error: 26-05-27 09:46:37.878 [error] [IpcRouterManager] Server error errorCode=EACCES errorMessage="listen EACCES: permission denied /tmp/codex-ipc/ipc-11479.sock" errorName=Error errorStack="Error: listen EACCES: permission denied /tmp/codex-ipc/ipc-11479.sock\n\tat Server.setupListenHandle [as _listen2] (node:net:1918:21)\n\tat listenInCluster (node:net:1997:12)\n\tat Server.listen (node:net:2119:5)\n\tat eg.startRouterIfNeeded (/public5/home/wangji1/.vscode-server/extensions/openai.chatgpt-26.519.32039/out/extension.js:473:17065)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n\tat async Vc.connect (/public5/home/wangji1/.vscode-server/extensions/openai.chatgpt-26.519.32039/out/extension.js:473:19077)"

Code Example

┌  wangji1@bw150-5~/../flang  wangji/current_acc_privet_status_not_modifier_codex 29| 09:46:22
└$ codex doctor --json
WARNING: failed to clean up stale arg0 temp dirs: Directory not empty (os error 39)
{
  "schemaVersion": 1,
  "generatedAt": "1779846418s since unix epoch",
  "overallStatus": "fail",
  "codexVersion": "0.132.0",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is not running",
      "details": {
        "control socket": "/public/home/wangji1/.codex/app-server-control/app-server-control.sock",
        "daemon state dir": "/public/home/wangji1/.codex/app-server-daemon",
        "mode": "ephemeral",
        "pid file": "/public/home/wangji1/.codex/app-server-daemon/app-server.pid (missing)",
        "settings": "/public/home/wangji1/.codex/app-server-daemon/settings.json (missing)",
        "status": "not running",
        "update-loop pid file": "/public/home/wangji1/.codex/app-server-daemon/app-server-updater.pid (missing)"
      },
      "remediation": null,
      "durationMs": 0
    },
    "auth.credentials": {
      "id": "auth.credentials",
      "category": "auth",
      "status": "ok",
      "summary": "auth is configured",
      "details": {
        "auth file": "/public/home/wangji1/.codex/auth.json",
        "auth storage mode": "File",
        "stored API key": "true",
        "stored ChatGPT tokens": "false",
        "stored agent identity": "false",
        "stored auth mode": "api_key"
      },
      "remediation": null,
      "durationMs": 0
    },
    "config.load": {
      "id": "config.load",
      "category": "config",
      "status": "ok",
      "summary": "config loaded",
      "details": {
        "CODEX_HOME": "/public/home/wangji1/.codex",
        "config.toml": "/public/home/wangji1/.codex/config.toml",
        "config.toml parse": "ok",
        "cwd": "/public5/home/wangji1/code/flang",
        "enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_search, tool_suggest, plugins, plugin_hooks, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, image_generation, skill_mcp_dependency_install, steer, guardian_approval, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, workspace_dependencies",
        "feature flag overrides": "none",
        "feature flags enabled": "28",
        "log dir": "/public/home/wangji1/.codex/log",
        "mcp servers": "0",
        "model": "gpt-5.4",
        "model provider": "OpenAI",
        "sqlite home": "/public/home/wangji1/.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "/public/home/wangji1/.nvm/versions/node/v22.22.0/bin/codex",
        "PATH codex #2": "/public/home/wangji1/.nvm/versions/node/v22.22.0/bin/codex",
        "PATH codex #3": "/public/home/wangji1/.nvm/versions/node/v22.22.0/bin/codex",
        "PATH codex entries": "3",
        "current executable": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex",
        "install context": "npm",
        "managed by bun": "false",
        "managed by npm": "true",
        "managed package root": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex",
        "npm update target": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex"
      },
      "remediation": null,
      "durationMs": 158
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "ok",
      "summary": "no MCP servers configured",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "network.env": {
      "id": "network.env",
      "category": "network",
      "status": "ok",
      "summary": "network-related environment looks readable",
      "details": {
        "proxy env vars": "none"
      },
      "remediation": null,
      "durationMs": 0
    },
    "network.provider_reachability": {
      "id": "network.provider_reachability",
      "category": "reachability",
      "status": "fail",
      "summary": "one or more required provider endpoints are unreachable over HTTP",
      "details": {
        "OpenAI API base URL": "https://fast.sbbbbbbbbb.xyz/v1 error following redirect for url (https://fast.sbbbbbbbbb.xyz/v1) (required)",
        "reachability mode": "API key auth"
      },
      "remediation": "Check proxy, VPN, firewall, DNS, and custom CA configuration.",
      "durationMs": 2629
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket is not enabled for the active provider",
      "details": {
        "model provider": "OpenAI",
        "provider name": "OpenAI",
        "proxy env vars": "none",
        "supports websockets": "false",
        "wire API": "responses"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running npm on linux-x86_64",
      "details": {
        "commit": "unknown",
        "current executable": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex",
        "install method": "npm",
        "platform": "linux-x86_64",
        "version": "0.132.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search is OK (system)",
      "details": {
        "search command": "rg",
        "search command readiness": "ripgrep 15.1.0 (rev af60c2de9d)",
        "search provider": "system"
      },
      "remediation": null,
      "durationMs": 9
    },
    "sandbox.helpers": {
      "id": "sandbox.helpers",
      "category": "sandbox",
      "status": "ok",
      "summary": "sandbox configuration is readable",
      "details": {
        "approval policy": "OnRequest",
        "codex-linux-sandbox helper": "/public/home/wangji1/.codex/tmp/arg0/codex-arg0EOTybn/codex-linux-sandbox",
        "execve wrapper helper": "/public/home/wangji1/.codex/tmp/arg0/codex-arg0EOTybn/codex-execve-wrapper",
        "filesystem sandbox": "restricted",
        "network sandbox": "restricted"
      },
      "remediation": null,
      "durationMs": 0
    },
    "state.paths": {
      "id": "state.paths",
      "category": "state",
      "status": "fail",
      "summary": "state database integrity check failed",
      "details": {
        "CODEX_HOME": "/public/home/wangji1/.codex (dir)",
        "active rollout files": "115 files, 42182571 total bytes, 366804 average bytes",
        "archived rollout files": "0 files, 0 total bytes, 0 average bytes",
        "log DB": "/public/home/wangji1/.codex/logs_2.sqlite (file)",
        "log DB integrity": "error returned from database: (code: 11) database disk image is malformed",
        "log dir": "/public/home/wangji1/.codex/log (dir)",
        "sqlite home": "/public/home/wangji1/.codex (dir)",
        "state DB": "/public/home/wangji1/.codex/state_5.sqlite (file)",
        "state DB integrity": "error returned from database: (code: 26) file is not a database"
      },
      "remediation": "Back up CODEX_HOME, then remove or repair the affected SQLite database.",
      "durationMs": 40
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "warning",
      "summary": "height 22 rows - content may scroll off (recommended >=24)",
      "details": {
        "COLORTERM": "truecolor",
        "SSH_CLIENT": "present",
        "SSH_CONNECTION": "present",
        "TERM_PROGRAM": "vscode",
        "VSCODE_IPC_HOOK_CLI": "present",
        "color output": "enabled",
        "effective locale": "en_US.UTF-8",
        "stderr is terminal": "true",
        "stdin is terminal": "true",
        "stdout is terminal": "true",
        "terminal": "VS Code",
        "terminal size": "204x22",
        "terminal version": "1.119.0"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "height 22 rows - content may scroll off (recommended >=24)",
          "measured": "204 x 22",
          "expected": ">= 24 rows",
          "remedy": "resize the window to at least 24 rows",
          "fields": [
            "terminal size"
          ]
        }
      ],
      "remediation": null,
      "durationMs": 0
    },
    "updates.status": {
      "id": "updates.status",
      "category": "updates",
      "status": "ok",
      "summary": "update configuration is locally consistent",
      "details": {
        "cached latest version": "0.131.0",
        "check for update on startup": "true",
        "last checked at": "2026-05-19T03:16:36.637018882Z",
        "latest version": "0.134.0",
        "latest version status": "newer version is available",
        "npm update target": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex",
        "update action": "npm install -g @openai/codex",
        "version cache": "/public/home/wangji1/.codex/version.json"
      },
      "remediation": null,
      "durationMs": 751
    }
  }
}

┌  wangji1@bw150-5~/../flang  wangji/current_acc_privet_status_not_modifier_codex 29  error  | 09:46:59
└$
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.132.0

What subscription do you have?

pro

Which model were you using?

gpt-5.5

What platform is your computer?

Linux 4.18.0-372.9.1.el8.x86_64 x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

vs code

Codex doctor report

┌  wangji1@bw150-5  ~/../flang  wangji/current_acc_privet_status_not_modifier_codex 29  | 09:46:22
└$ codex doctor --json
WARNING: failed to clean up stale arg0 temp dirs: Directory not empty (os error 39)
{
  "schemaVersion": 1,
  "generatedAt": "1779846418s since unix epoch",
  "overallStatus": "fail",
  "codexVersion": "0.132.0",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is not running",
      "details": {
        "control socket": "/public/home/wangji1/.codex/app-server-control/app-server-control.sock",
        "daemon state dir": "/public/home/wangji1/.codex/app-server-daemon",
        "mode": "ephemeral",
        "pid file": "/public/home/wangji1/.codex/app-server-daemon/app-server.pid (missing)",
        "settings": "/public/home/wangji1/.codex/app-server-daemon/settings.json (missing)",
        "status": "not running",
        "update-loop pid file": "/public/home/wangji1/.codex/app-server-daemon/app-server-updater.pid (missing)"
      },
      "remediation": null,
      "durationMs": 0
    },
    "auth.credentials": {
      "id": "auth.credentials",
      "category": "auth",
      "status": "ok",
      "summary": "auth is configured",
      "details": {
        "auth file": "/public/home/wangji1/.codex/auth.json",
        "auth storage mode": "File",
        "stored API key": "true",
        "stored ChatGPT tokens": "false",
        "stored agent identity": "false",
        "stored auth mode": "api_key"
      },
      "remediation": null,
      "durationMs": 0
    },
    "config.load": {
      "id": "config.load",
      "category": "config",
      "status": "ok",
      "summary": "config loaded",
      "details": {
        "CODEX_HOME": "/public/home/wangji1/.codex",
        "config.toml": "/public/home/wangji1/.codex/config.toml",
        "config.toml parse": "ok",
        "cwd": "/public5/home/wangji1/code/flang",
        "enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_search, tool_suggest, plugins, plugin_hooks, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, image_generation, skill_mcp_dependency_install, steer, guardian_approval, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, workspace_dependencies",
        "feature flag overrides": "none",
        "feature flags enabled": "28",
        "log dir": "/public/home/wangji1/.codex/log",
        "mcp servers": "0",
        "model": "gpt-5.4",
        "model provider": "OpenAI",
        "sqlite home": "/public/home/wangji1/.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "/public/home/wangji1/.nvm/versions/node/v22.22.0/bin/codex",
        "PATH codex #2": "/public/home/wangji1/.nvm/versions/node/v22.22.0/bin/codex",
        "PATH codex #3": "/public/home/wangji1/.nvm/versions/node/v22.22.0/bin/codex",
        "PATH codex entries": "3",
        "current executable": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex",
        "install context": "npm",
        "managed by bun": "false",
        "managed by npm": "true",
        "managed package root": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex",
        "npm update target": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex"
      },
      "remediation": null,
      "durationMs": 158
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "ok",
      "summary": "no MCP servers configured",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "network.env": {
      "id": "network.env",
      "category": "network",
      "status": "ok",
      "summary": "network-related environment looks readable",
      "details": {
        "proxy env vars": "none"
      },
      "remediation": null,
      "durationMs": 0
    },
    "network.provider_reachability": {
      "id": "network.provider_reachability",
      "category": "reachability",
      "status": "fail",
      "summary": "one or more required provider endpoints are unreachable over HTTP",
      "details": {
        "OpenAI API base URL": "https://fast.sbbbbbbbbb.xyz/v1 error following redirect for url (https://fast.sbbbbbbbbb.xyz/v1) (required)",
        "reachability mode": "API key auth"
      },
      "remediation": "Check proxy, VPN, firewall, DNS, and custom CA configuration.",
      "durationMs": 2629
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket is not enabled for the active provider",
      "details": {
        "model provider": "OpenAI",
        "provider name": "OpenAI",
        "proxy env vars": "none",
        "supports websockets": "false",
        "wire API": "responses"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running npm on linux-x86_64",
      "details": {
        "commit": "unknown",
        "current executable": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex/codex",
        "install method": "npm",
        "platform": "linux-x86_64",
        "version": "0.132.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search is OK (system)",
      "details": {
        "search command": "rg",
        "search command readiness": "ripgrep 15.1.0 (rev af60c2de9d)",
        "search provider": "system"
      },
      "remediation": null,
      "durationMs": 9
    },
    "sandbox.helpers": {
      "id": "sandbox.helpers",
      "category": "sandbox",
      "status": "ok",
      "summary": "sandbox configuration is readable",
      "details": {
        "approval policy": "OnRequest",
        "codex-linux-sandbox helper": "/public/home/wangji1/.codex/tmp/arg0/codex-arg0EOTybn/codex-linux-sandbox",
        "execve wrapper helper": "/public/home/wangji1/.codex/tmp/arg0/codex-arg0EOTybn/codex-execve-wrapper",
        "filesystem sandbox": "restricted",
        "network sandbox": "restricted"
      },
      "remediation": null,
      "durationMs": 0
    },
    "state.paths": {
      "id": "state.paths",
      "category": "state",
      "status": "fail",
      "summary": "state database integrity check failed",
      "details": {
        "CODEX_HOME": "/public/home/wangji1/.codex (dir)",
        "active rollout files": "115 files, 42182571 total bytes, 366804 average bytes",
        "archived rollout files": "0 files, 0 total bytes, 0 average bytes",
        "log DB": "/public/home/wangji1/.codex/logs_2.sqlite (file)",
        "log DB integrity": "error returned from database: (code: 11) database disk image is malformed",
        "log dir": "/public/home/wangji1/.codex/log (dir)",
        "sqlite home": "/public/home/wangji1/.codex (dir)",
        "state DB": "/public/home/wangji1/.codex/state_5.sqlite (file)",
        "state DB integrity": "error returned from database: (code: 26) file is not a database"
      },
      "remediation": "Back up CODEX_HOME, then remove or repair the affected SQLite database.",
      "durationMs": 40
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "warning",
      "summary": "height 22 rows - content may scroll off (recommended >=24)",
      "details": {
        "COLORTERM": "truecolor",
        "SSH_CLIENT": "present",
        "SSH_CONNECTION": "present",
        "TERM_PROGRAM": "vscode",
        "VSCODE_IPC_HOOK_CLI": "present",
        "color output": "enabled",
        "effective locale": "en_US.UTF-8",
        "stderr is terminal": "true",
        "stdin is terminal": "true",
        "stdout is terminal": "true",
        "terminal": "VS Code",
        "terminal size": "204x22",
        "terminal version": "1.119.0"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "height 22 rows - content may scroll off (recommended >=24)",
          "measured": "204 x 22",
          "expected": ">= 24 rows",
          "remedy": "resize the window to at least 24 rows",
          "fields": [
            "terminal size"
          ]
        }
      ],
      "remediation": null,
      "durationMs": 0
    },
    "updates.status": {
      "id": "updates.status",
      "category": "updates",
      "status": "ok",
      "summary": "update configuration is locally consistent",
      "details": {
        "cached latest version": "0.131.0",
        "check for update on startup": "true",
        "last checked at": "2026-05-19T03:16:36.637018882Z",
        "latest version": "0.134.0",
        "latest version status": "newer version is available",
        "npm update target": "/public5/home/wangji1/.nvm/versions/node/v22.22.0/lib/node_modules/@openai/codex",
        "update action": "npm install -g @openai/codex",
        "version cache": "/public/home/wangji1/.codex/version.json"
      },
      "remediation": null,
      "durationMs": 751
    }
  }
}

┌  wangji1@bw150-5  ~/../flang  wangji/current_acc_privet_status_not_modifier_codex 29  error  | 09:46:59
└$

What issue are you seeing?

vscode codex plugin ereport a ipc error: 26-05-27 09:46:37.878 [error] [IpcRouterManager] Server error errorCode=EACCES errorMessage="listen EACCES: permission denied /tmp/codex-ipc/ipc-11479.sock" errorName=Error errorStack="Error: listen EACCES: permission denied /tmp/codex-ipc/ipc-11479.sock\n\tat Server.setupListenHandle [as _listen2] (node:net:1918:21)\n\tat listenInCluster (node:net:1997:12)\n\tat Server.listen (node:net:2119:5)\n\tat eg.startRouterIfNeeded (/public5/home/wangji1/.vscode-server/extensions/openai.chatgpt-26.519.32039/out/extension.js:473:17065)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n\tat async Vc.connect (/public5/home/wangji1/.vscode-server/extensions/openai.chatgpt-26.519.32039/out/extension.js:473:19077)"

What steps can reproduce the bug?

Different user should use different ipc directory to avoid perssion iuuse for same /tmp/codex-ipc/ directory. Another method is use 777 permission for same /tmp/codex-ipc/ directory to allow all user can create socked file.

What is the expected behavior?

No response

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Vscode codex report /tmp/codex-ipc/ error when different user use same ipc directory