[Bug] Update process leaves stale lock file, blocking subsequent updates
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 11 comments · opened Dec 11, 2025 · closed Mar 8, 2026
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"}]
11 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
My issue is updating, not installing. And on Mac, not linux
Same issue on Mac. Was trying to update to
2.0.65. Thanks @graham-u for the delete lock files tip!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.
Happened to me, ran
~/.local/share/claude/versions/2.0.74andrm -rf ~/.local/state/claude/locks/2.0.74.lockand thenclaude updateand the update worked.Comment written by Claude with info I gave it:
---
This issue also affects fresh installations via the documented install method:
The
--forceworkaround cannot be passed through this method, leaving users completely stuck without manually discovering the undocumented~/.local/state/claude/locks/directory.Video showing the issue:
https://github.com/user-attachments/assets/b67b060c-a3a1-4ff1-8c99-cd079dc80cd9
---
The core problem: Lock files are empty directories with no PID tracking. There's no way to detect if a lock is stale.
Issues #14301 and #13599 were closed without fixing this. Users are told to
rm -rfthe locks directory, which is unsafe if Claude actually is running.Standard fix - store PID in lock file and validate on acquisition:
This eliminates the need for
--forceentirely and handles crashes gracefully.This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
There was a partial fix with --force not working here:
https://github.com/anthropics/claude-code/blob/2bc62d1456e3b3084bb8c7971a8b111ebe5f505d/CHANGELOG.md?plain=1#L556
But as mentioned above that doesn't work with the install method, so it is not clear from the changelog if this has been fixed as I haven't seen anything else which suggests it is.
I think it is a mistake to close this before there is some confirmation that an old lockfile won't block the previously mentioned install method.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.