claude-code - 💡(How to fix) Fix [Bug] Persistent authentication required despite previous login attempts [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51628Fetched 2026-04-22 07:57:10
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/vldk/.local/share/claude/versions/2.1.116 (expected in multi-process scenarios)\n at jl_ (/$bunfs/root/src/entrypoints/cli.js:2752:2177)\n at B88 (/$bunfs/root/src/entrypoints/cli.js:2752:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:31.871Z"},{"error":"AxiosError: Request failed with status code 400\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:32.318Z"},{"error":"AxiosError: Request failed with status code 400\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.033Z"},{"error":"AxiosError: Request failed with status code 401\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async Gc (/$bunfs/root/src/entrypoints/cli.js:421:4685)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2639:190)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6611:23533)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.167Z"},{"error":"AxiosError: Request failed with status code 401\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.547Z"},{"error":"AxiosError: Request failed with status code 400\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.547Z"},{"error":"AxiosError: Request failed with status code 401\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.596Z"},{"error":"AxiosError: Request failed with status code 400\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n …

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/vldk/.local/share/claude/versions/2.1.116 (expected in multi-process scenarios)\n    at jl_ (/$bunfs/root/src/entrypoints/cli.js:2752:2177)\n    at B88 (/$bunfs/root/src/entrypoints/cli.js:2752:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:31.871Z"},{"error":"AxiosError: Request failed with status code 400\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n    at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:32.318Z"},{"error":"AxiosError: Request failed with status code 400\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n    at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.033Z"},{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Gc (/$bunfs/root/src/entrypoints/cli.js:421:4685)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2639:190)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6611:23533)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.167Z"},{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n    at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.547Z"},{"error":"AxiosError: Request failed with status code 400\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n    at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.547Z"},{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n    at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.596Z"},{"error":"AxiosError: Request failed with status code 400\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n …
RAW_BUFFERClick to expand / collapse

Bug Description I have problem with Cluade Code in terminal, everytime I run Claude Code it requires me to login even though I did it multiply times before.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.116
  • Feedback ID: c0fab7c3-e959-4c81-b9fe-87b779f95434

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/vldk/.local/share/claude/versions/2.1.116 (expected in multi-process scenarios)\n    at jl_ (/$bunfs/root/src/entrypoints/cli.js:2752:2177)\n    at B88 (/$bunfs/root/src/entrypoints/cli.js:2752:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:31.871Z"},{"error":"AxiosError: Request failed with status code 400\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n    at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:32.318Z"},{"error":"AxiosError: Request failed with status code 400\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n    at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.033Z"},{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Gc (/$bunfs/root/src/entrypoints/cli.js:421:4685)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2639:190)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6611:23533)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.167Z"},{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n    at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.547Z"},{"error":"AxiosError: Request failed with status code 400\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async bnH (/$bunfs/root/src/entrypoints/cli.js:253:275561)\n    at async BI6 (/$bunfs/root/src/entrypoints/cli.js:406:3883)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.547Z"},{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n    at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:23:34.596Z"},{"error":"AxiosError: Request failed with status code 400\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n …

Note: Content was truncated.

extent analysis

TL;DR

The issue with Claude Code requiring a login every time it's run, despite previous logins, may be related to authentication or session management issues, and checking the lock acquisition failure and Axios errors could provide more insight.

Guidance

  • Investigate the "Lock acquisition failed" error for /Users/vldk/.local/share/claude/versions/2.1.116 to understand if it's related to multi-process scenarios or file system permissions.
  • Review the Axios errors with status codes 400 and 401, which indicate bad requests and unauthorized access, respectively, to see if there's an issue with the request payload or authentication tokens.
  • Check the authentication mechanism used by Claude Code to see if there's an issue with session persistence or token renewal.
  • Consider clearing the local storage or cache for Claude Code to see if it resolves the issue, but be cautious of losing any important data.

Example

No specific code example can be provided without more context, but checking the cli.js file at the mentioned lines (e.g., 2752:2177, 110:1194) might give clues about the error handling and authentication logic.

Notes

The provided error messages and stack traces suggest issues with both local file system access and remote API calls, making it challenging to pinpoint the exact cause without more information about the Claude Code application and its environment.

Recommendation

Apply a workaround by checking the authentication tokens and session management to ensure they are correctly set and persisted between runs, as the root cause seems to be related to authentication or authorization issues.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING