[Bug] ENOENT: Missing lock file directory in ~/.local/state/claude/locks/
Resolved 💬 2 comments Opened Nov 8, 2025 by AbdelrahmanHafez Closed Nov 8, 2025
Bug Description
I got this error that seems like a bug with Claude "This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
error: ENOENT: no such file or directory, stat '/Users/hafez/.local/state/claude/locks/2.0.35.lock'"
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.0.35
- Feedback ID: 75d1983c-8932-4fc5-b046-b315d025e5d7
Errors
[{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at X (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at execSync (node:child_process:275:109)\n at R (/$bunfs/root/claude:1478:514)\n at Rj1 (/$bunfs/root/claude:1478:692)\n at Tj1 (/$bunfs/root/claude:1478:1221)","timestamp":"2025-11-07T16:49:26.831Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at X (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T16:49:36.167Z"},{"error":"MaxFileReadTokenExceededError: File content (99289 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at eWB (/$bunfs/root/claude:1578:25270)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T16:58:42.379Z"},{"error":"MaxFileReadTokenExceededError: File content (44527 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at eWB (/$bunfs/root/claude:1578:25270)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T16:59:19.436Z"},{"error":"MaxFileReadTokenExceededError: File content (44109 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at eWB (/$bunfs/root/claude:1578:25270)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T16:59:19.668Z"},{"error":"MaxFileReadTokenExceededError: File content (44527 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at eWB (/$bunfs/root/claude:1578:25270)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T17:07:28.144Z"},{"error":"MaxFileReadTokenExceededError: File content (43956 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at eWB (/$bunfs/root/claude:1578:25270)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T17:07:28.396Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at X (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T17:19:35.860Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at X (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T17:56:32.272Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at X (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T18:26:31.772Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at X (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T20:20:42.434Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at X (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T20:53:09.158Z"},{"error":"Error: Lock file is already being held\n at <anonymous> (/$bunfs/root/claude:82:11838)\n at X (/$bunfs/root/claude:81:5167)\n at <anonymous> (node:fs:243:13)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-07T21:23:07.948Z"},{"error":"Error: Lock file is
Note: Error logs were truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗