claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] EBUSY: Resource locked when accessing .claude.json config file

Open dimension-zero opened this issue 1 month ago • 1 comments

Bug Description Claude Code abruptly crashes with this error message:

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: EBUSY: resource busy or locked, open 'C:\Users\dev.account.claude.json' at Module.openSync (node:fs:561:18) at file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:999 at sI (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:8084) at Object.writeFileSync (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:774) at iR (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4806:1175) at DV9 (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4785:11585) at n0 (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4785:10222) at OV7 (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:5027:4897) at hR0. (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:5046:7366) at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.0.72
  • Feedback ID: 708688c9-bd61-484a-b644-f6592c01a87a

Errors

[{"error":"AbortError: The operation was aborted\n    at abortChildProcess (node:child_process:750:27)\n    at AbortSignal.onAbortListener (node:child_process:820:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:778:26)\n    at runAbort (node:internal/abort_controller:486:10)\n    at abortSignal (node:internal/abort_controller:457:3)\n    at AbortController.abort (node:internal/abort_controller:505:5)\n    at Timeout._onTimeout (file:///C:/Users/mathew.burkitt/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:5027:6966)\n    at listOnTimeout (node:internal/timers:588:17)\n    at process.processTimers (node:internal/timers:523:7)","timestamp":"2025-12-18T18:29:20.084Z"}]

dimension-zero avatar Dec 18 '25 18:12 dimension-zero

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/14424
  2. https://github.com/anthropics/claude-code/issues/12234
  3. https://github.com/anthropics/claude-code/issues/14054

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 18 '25 18:12 github-actions[bot]

This issue has been automatically closed as a duplicate of #14424.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 22 '25 09:12 github-actions[bot]