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

[Bug] Update process leaves stale lock file, blocking subsequent updates

Open graham-u opened this issue 2 months ago • 6 comments

Bug Description Every time I try to update I get the same error, last 3 updates:

trying to run: claude update

Result: Current version: 2.0.65 Checking for updates... Another process is currently updating Claude. Please try again in a moment.

Then I have to find the lock files and delete them in ~/.local/state/claude/locks

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.65
  • Feedback ID: 2277cbad-43cb-42ca-a40e-ec1c0cc2df03

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/..../.local/share/claude/versions/2.0.65 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at ZAA (/$bunfs/root/claude:2597:1296)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T15:56:31.922Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/..../.local/share/claude/versions/2.0.64 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async LAA (/$bunfs/root/claude:2597:3428)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T15:56:32.059Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/..../.local/share/claude/versions/2.0.65 (expected in multi-process scenarios)\n    at fjB (/$bunfs/root/claude:2597:1618)\n    at XAA (/$bunfs/root/claude:2595:35624)\n    at async DdD (/$bunfs/root/claude:2595:37725)\n    at async cj (/$bunfs/root/claude:2597:236)\n    at async <anonymous> (/$bunfs/root/claude:2597:13006)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-11T15:56:40.895Z"}]

graham-u avatar Dec 11 '25 16:12 graham-u

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/13085
  2. https://github.com/anthropics/claude-code/issues/13653
  3. https://github.com/anthropics/claude-code/issues/13599

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 11 '25 16:12 github-actions[bot]

My issue is updating, not installing. And on Mac, not linux

graham-u avatar Dec 11 '25 16:12 graham-u

Same issue on Mac. Was trying to update to 2.0.65. Thanks @graham-u for the delete lock files tip!

kenryu42 avatar Dec 12 '25 02:12 kenryu42

had the same issue on Ubuntu also, once when trying to update to 2.0.65 and again when trying to update to 2.0.68 had to delete .local/state/claude/locks/*.lock files to resolve , tried also reboot before that - didn`t resolved until .lock files were deleted

UdiMizrachi avatar Dec 13 '25 10:12 UdiMizrachi

had the same issue on Ubuntu also, once when trying to update to 2.0.65 and again when trying to update to 2.0.68 had to delete .local/state/claude/locks/*.lock files to resolve , tried also reboot before that - didn`t resolved until .lock files were deleted

This worked for me. Thanks.

NotMyself avatar Dec 16 '25 16:12 NotMyself

Happened to me, ran ~/.local/share/claude/versions/2.0.74 and rm -rf ~/.local/state/claude/locks/2.0.74.lock and then claude update and the update worked.

kylesnowschwartz avatar Dec 20 '25 08:12 kylesnowschwartz