EACCES / EPERM: permission denied — page 2
The OS refused a read, write, or exec because of file ownership or mode.
415 issues · 71 open · 344 resolved (83%) · first seen Feb 24, 2025
First response · local
What to do now
Most likely: The operating system rejected a file or directory operation.
- Read the first path in the error and verify that it exists and belongs to the expected user.
- Check disk space, permissions, symlinks and whether another process holds the target.
- Reproduce with the smallest affected path before changing project-wide permissions.
These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.
Is this getting better or worse?
This class of problem is holding steady. 99 new reports in the last 90 days vs 130 in the 90 before — -24%. The open backlog peaked at 71 in 2026-08 and sits at 71 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
262 of these reports name the Claude Code build they were running, spanning 122 releases. Heaviest reporters:
- Claude Code v2.1.89
- Claude Code v2.1.59
- Claude Code v2.1.2
- Claude Code v2.1.128
- Claude Code v2.1.111
- Claude Code v2.0.76
- Claude Code v2.1.12
- Claude Code v2.1.19
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 28 days across 344 closures. Of the 344 closures with a recorded reason, 15% were closed as completed and 293 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
128 of these issues post a workaround someone says worked. The highest-engagement ones:
- Sandbox: allow outbound connections to localhost
- …e of these settings allow the outbound connection. The only workaround is either on every bash call, or adding the command to , both of which defeat the purpose of the sandbox. Requested feature A sandbox setting that al…
Found in the description of #28018 · still open - [BUG] Background tasks ignore $TMPDIR and hardcode /tmp/claude/
- To work around this problem, I did this: This is the version with the bug. First thing, disable auto update by adding this to : If you are still on version 2.0.76 you're good. If you are on 2.1.1 then you also have to do…
Found in the thread of #15700 · resolved - [BUG] claude-code for Windows is NOT available due to its port
- I had this error too. you can avoid it by patching the file and replacing the with a lower port, e.g. <img width="542" height="201" alt="Image" src=" /
Found in the thread of #3402 · resolved - Sandboxed Bash intermittently fails: apply-seccomp: unshare(CLONE_NEWUSER): Invalid argument
- …thread , if the helper's entry point can run early enough. Workarounds, for anyone else hitting this What we shipped: a small wrapper early on that rewrites the prefix to run under first. util-linux is single-threaded,…
Found in the description of #86928 · still open - [Feature Request] Multi-account/profile support with CLI flags
- …in to switch accounts - Use the web version for one account as a workaround Requested feature: Native support for multiple accounts/profiles, similar to how Chrome handles different Google accounts. Ideally: 1. Ability t…
Found in the description of #19722 · resolved
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 101–200
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 415 matches; the statistics above cover all 415.
- [BUG] All custom slash commands missing from autocomplete on v2.1.89 (WSL2/Linux)
- Claude Code node process deletes user-managed agent files from ~/.claude/agents/
- [Bug] Sandbox blocks installation of dependencies containing `.idea` directories
- [BUG] Task tool subagent freezes on Windows (native Bun binary) — no error, no timeout
- [BUG] EPERM: operation not permitted accessing ~/Library/CloudStorage/ despite Full Disk Access enabled
- [Bug] Graph loop stop hook fails on Windows PowerShell
- [FEATURE] Support CLAUDE_TMPDIR environment variable for custom temporary directory
- [BUG] macOS EPERM on Node.js fs.open()
- [BUG] /tmp/claude path collision on shared HPC/multi-user systems
- [Bug] /usage command fails to recognize valid subscription with extra-usage
- [Feature Request] Unify rules and skills into single callable system
- Anthropic API Billing: Persistent Model Access Restriction
- Context Limit Exceeded: Compaction Failure Causing Data Loss
- Unhandled Anthropic API Response Containing Inappropriate Language
- Agent List Not Updating After Creation
- [BUG] OAuth error: listen EACCES: permission denied 0.0.0.0:54545
- [BUG] Session working directory becomes permanently unresolvable after using a git worktree (background job), breaking Bash, file tools, and the /cd command
- [FEATURE] Expose permission picker decisions (rule + option kind) to hooks
- [BUG]
- Windows: Marketplace update permanently wedged by stale .bak directory (EPERM rename loop)
- Claude Code periodically deletes project-root `config/` directory (path confusion with .git internals)
- [BUG] Title: Preview sandbox broken on macOS — EPERM uv_cwd
- You've hit your limit · resets 8am (Asia/Bangkok)
- [Bug] Session rename does not persist in /resume picker
- [Bug] Anthropic API Error: Cannot modify thinking blocks in assistant messages
- [BUG] Claude Code fails with EACCES on multi-user systems when /tmp/claude is not writable
- [Feature Request] Add --chrome-path flag to specify custom Chrome browser location
- [BUG]
- [Bug] Claude Code CLI crashes without error message and closing the vs code , not even able to write full report on claude code feedback, please check once
- [Bug] Git Bash PATH format mismatch on Windows prevents command execution
- [Bug] Skills not detected despite files existing and permissions set
- [Bug] Token count animation displays on toggle despite no actual change
- [Bug] Theme compatibility issue with liquid glass and light backgrounds
- [Bug] Anthropic API Error: Invalid JSON Parsing in Prompt Submission
- [Bug] Critical Security Vulnerability in Claude Code
- [BUG] .mcp.json at a Windows drive root is never discovered — absent from claude mcp list, no warning
- [BUG] Cowork scheduled task creation fails: "path moved between validation and open" — TOCTOU guard false-positives on FSLogix profile containers
- Sandbox materializes & persists .git/config.lock in linked worktrees, blocking git config writes
- [BUG] 動かない
- [BUG] "Windows auto-updater EBUSY: running 245MB SEA locks its dir during swap"
- [BUG] macOS sandbox blocks JVM attach mechanism — Gradle/Mockito tests fail, sandboxed daemon contaminates terminal
- Claude Desktop: /tmp/claude-settings-<hash>.json not UID-namespaced — second macOS user hits EACCES, Claude Code panel "crashes"
- [Bug] Unable to modify effort setting when settings.json managed by NixOS/home-manager
- [BUG] Claude Code crashes or fails with EACCES when connected via SSH to fresh Ubuntu server
- [Bug] Session termination not respecting configured conversation continuity settings
- [BUG] [Windows] Plugin install fails with EPERM during rename to versioned cache slot — Defender holds handles on freshly-extracted files
- [BUG] ccd-cli fails on multi-user Linux: /tmp/claude-settings-{hash}.json collides between users
- [BUG] [Windows] Plugin marketplace install fails with EPERM on rename — path resolution collapses username + .claude into single token
- [Bug] Web page scraping fails to retrieve data from app pages
- [Bug] Computer Use tool fails with "Cannot read properties of undefined" on initialization
- [BUG] Startup keychain credentials error regression on MacOS.
- CLAUDE_CODE_TMPDIR not respected for CWD tracking files on multi-user servers
- Windows: ~/.claude.json corruption from concurrent sessions (race condition in config writes)
- [BUG] .claude.json corruption from excessive write frequency + antivirus EPERM on Windows (single-session, no concurrency needed)
- [BUG] Session crashes silently on ARM64 Windows due to EPERM symlink failure during subagent spawn
- [Bug] Event loop hang with 100% CPU on Node v25.3.0 in versions 2.1.12+
- [Windows] Persistent bun.exe terminal window with "Cannot read file System32" EPERM error
- EPERM: Cannot read/write project-level .claude/ files from outside project directory
- [BUG]bash_tool ignores $TMPDIR, fails on HPC systems on the newest claude code
- [BUG] Sandbox directory /tmp/claude causes permission conflicts for multi-user systems
- [Bug] Anthropic API Error 400 during extended thinking with MCP tools
- [Bug] Clipboard image paste (Ctrl+V) not working on Windows
- Atomic file writes fail with multi-level symlinks (nix home-manager)
- [BUG] Claude Code failed to run in VS Code Integrated Terminal through Sandboxie
- [BUG] Crashed EPERM on Bash(ls -la /FULL_PATH_TO_PROJECT/*.{xml,out,html} 2>/dev/null | head -20)
- [BUG]
- File Search Pattern Matching Fails in Claude Code
- Unable to Locate Created Agents in Claude Code CLI
- Cannot install Cloude Code on different linux machines
- [BUG] macOS: a running CLI session loses its TCC Documents grant mid-session — a new session and a new terminal window both stay broken; only quitting the host terminal app recovers it
- [BUG] macOS: auto-update deletes the running app bundle mid-session, revoking granted Full Disk Access until restart
- macOS: background/fleet session re-hosted onto a fresh spare worker loses live file access (EPERM) mid-session, after the bundle-ID fix (#61314)
- Windows: 杀毒软件的"PowerShell 脚本执行检测"导致 Claude Code Shell 全部 EPERM
- [BUG] Bash sandbox fabricates phantom unreadable files when a hidden/denyRead path doesn't exist — breaks dotnet/SourceLink builds
- Claude Code 2.1.113+ crashes on startup (SIGILL in bundled Bun 1.3.14) on Intel Emerald Rapids / Ubuntu 24.04
- [BUG] Account connector sync overwrites claude_desktop_config.json, wiping manually-added MCP servers and re-adding removed ones
- Cowork sandbox (virtiofs bind-mount) silently drops git unlink() with EPERM, leaving stale tmp_obj_* files and .lock files on host
- EPERM cascade on Read/Edit/FileHistory for session-created files in long-running autonomous sessions
- [BUG] Project-scoped plugins not automatically enabled in git worktrees despite being configured in `.claude/settings.json`
- Intermittent "Working directory was deleted" + EPERM on file ops when project lives under ~/Documents/Claude/* (macOS Tahoe)
- [BUG]
- Testing issue classification boundaries
- [Bug Report: Unable to process - no bug details provided]
- --settings writes cache to shared /tmp/, causing EACCES when two macOS user accounts share a Mac
- claude plugin marketplace add fails with EPERM rename on Windows (clone-then-rename race with Defender / Indexer)
- [BUG] /tmp/claude-settings-{hash}.json permission conflict when multiple macOS users run SSH sessions simultaneously
- [BUG] Write tool fails with EPERM mkdir on Windows
- [Bug] Chat width reduces when scrolling up in terminal output
- [BUG] --settings <json> writes to shared /tmp/claude-settings-<hash>.json, blocks all but first macOS user account
- [BUG] VS Code extension host hangs on launch (onWillSaveTextDocument timeout)
- [Feature Request] Add connection status indicator and last-received timestamp to detect dropped connections
- I don't see a complete bug report in your message. Could you please provide the full bug report details so I can generate an appropriate GitHub issue title for Claude Code?
- [BUG] Windows Server 2022 Standard
- [Bug] /tmp/claude-settings-<hash>.json shared across Linux users — second user crashes with EACCES (exit code 1)
- [Feature Request] Add context transfer capability with `/new` command instead of requiring `/clear`
- [BUG] Desktop app crashes on multi-user Mac: /tmp/claude-settings-*.json ownership collision
- 2.1.118 silently rmdirs top-level hooks/, HEAD, objects, refs, config at project root on every Bash tool call
- Claude.app: CCD subprocess fails with EACCES on shared /tmp/claude-settings-*.json across macOS users
- You've hit your limit · resets 6pm (America/Los_Angeles)
- You've hit your limit · resets 6pm (America/Los_Angeles)