claude-code - 💡(How to fix) Fix [Bug] Team Premium usage meter shows 85% but token count indicates ~4% usage [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#54601Fetched 2026-04-30 06:41:10
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×3cross-referenced ×2commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:09.698Z"},{"error":"Error: Command failed with EPERM: ps -o lstart= -p 15457\nEPERM: operation not permitted, posix_spawn 'ps'\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at ZHH (/$bunfs/root/src/entrypoints/cli.js:148:222)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:148:5078)\n at new Promise (native:1:11)\n at j8 (/$bunfs/root/src/entrypoints/cli.js:148:5068)\n at sg (/$bunfs/root/src/entrypoints/cli.js:257:488)\n at IBq (/$bunfs/root/src/entrypoints/cli.js:257:4483)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:09.815Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:10.225Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n at async _ (/$bunfs/root/src/entrypoints/cli.js:9150:2861)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:45:11.112Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:48:13.548Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:48:55.346Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:50:18.721Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:51:58.776Z"}]

Code Example

ccusage blocks --since 20260428

 WARN  Fetching latest model pricing from LiteLLM...                                                                                                                                    ccusage 2:16:35 pm

Loaded pricing for 2687 models                                                                                                                                                       ccusage 2:16:35 pm
Using max tokens from previous sessions: 187,895,696                                                                                                                                 ccusage 2:16:37 pm

 ╭───────────────────────────────────────────────────╮
 │                                                   │
Claude Code Token Usage Report - Session Blocks │                                                   │
 ╰───────────────────────────────────────────────────╯

┌──────────────────────────────────────────────────────────────┬─────────────────┬───────────────────────────────────┬──────────────┬───────────┬───────────┐
Block StartDuration/StatusModelsTokens%Cost├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
2026-04-28, 5:17:21 a.m. - 2026-04-28, 9:34:59 a.m. (4h gap)  (inactive)----├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
2026-04-28, 9:30:00 a.m. (4h 11m)                            │                 │ - haiku-4-5187,895,696100.0% │   $116.39│                                                              │                 │ - opus-4-7                        │              │           │           │
│                                                              │                 │ - sonnet-4-6                      │              │           │           │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
2026-04-28, 2:30:00 p.m. (2h 42m)                            │                 │ - opus-4-729,700,84515.8% │    $20.42│                                                              │                 │ - sonnet-4-6                      │              │           │           │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
2026-04-28, 7:30:00 p.m. (4h 4m)                             │                 │ - opus-4-734,422,23018.3% │    $35.22├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
2026-04-29, 4:33:31 a.m. - 2026-04-29, 9:54:46 a.m. (5h gap)  (inactive)----├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
2026-04-29, 9:30:00 a.m. (4h 47m elapsed, 0h 13m remaining)ACTIVE- opus-4-77,087,6563.8% │     $8.20│                                                              │                 │ - sonnet-4-6                      │              │           │           │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
                           (assuming 187,895,696 token limit)REMAINING       │                                   │  180,808,04096.2% │           │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
                                 (assuming current burn rate)PROJECTED       │                                   │    7,466,4304.0% │     $8.64└──────────────────────────────────────────────────────────────┴─────────────────┴───────────────────────────────────┴──────────────┴───────────┴───────────┘

---

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:09.698Z"},{"error":"Error: Command failed with EPERM: ps -o lstart= -p 15457\nEPERM: operation not permitted, posix_spawn 'ps'\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at ZHH (/$bunfs/root/src/entrypoints/cli.js:148:222)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:148:5078)\n    at new Promise (native:1:11)\n    at j8 (/$bunfs/root/src/entrypoints/cli.js:148:5068)\n    at sg (/$bunfs/root/src/entrypoints/cli.js:257:488)\n    at IBq (/$bunfs/root/src/entrypoints/cli.js:257:4483)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:09.815Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n    at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:10.225Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n    at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n    at async _ (/$bunfs/root/src/entrypoints/cli.js:9150:2861)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:45:11.112Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:48:13.548Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:48:55.346Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n    at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:50:18.721Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n    at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:51:58.776Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Team Premium seat: usage spike looks incorrect.

On 2026-04-29, the "Current session" bar jumped to 85% used, but the token blocks show only 7,087,656 tokens (3.8%) in the active block for $8.20.

For comparison, on 2026-04-28 the first block used 187,895,696 tokens (100%) for $116.39, so the 85% jump today is inconsistent with token usage.

Time it jumped: 2026-04-29 around 01.50 PM IST

Reset time shown: 17 minutes remaining

CC Usage output for comparision with yesterday's blocks

ccusage blocks --since 20260428

 WARN  Fetching latest model pricing from LiteLLM...                                                                                                                                    ccusage 2:16:35 pm

ℹ Loaded pricing for 2687 models                                                                                                                                                       ccusage 2:16:35 pm
ℹ Using max tokens from previous sessions: 187,895,696                                                                                                                                 ccusage 2:16:37 pm

 ╭───────────────────────────────────────────────────╮
 │                                                   │
 │  Claude Code Token Usage Report - Session Blocks  │
 │                                                   │
 ╰───────────────────────────────────────────────────╯

┌──────────────────────────────────────────────────────────────┬─────────────────┬───────────────────────────────────┬──────────────┬───────────┬───────────┐
│ Block Start                                                  │ Duration/Status │ Models                            │       Tokens │         % │      Cost │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
│ 2026-04-28, 5:17:21 a.m. - 2026-04-28, 9:34:59 a.m. (4h gap) │ (inactive)      │ -                                 │            - │         - │         - │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
│ 2026-04-28, 9:30:00 a.m. (4h 11m)                            │                 │ - haiku-4-5                       │  187,895,696 │    100.0% │   $116.39 │
│                                                              │                 │ - opus-4-7                        │              │           │           │
│                                                              │                 │ - sonnet-4-6                      │              │           │           │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
│ 2026-04-28, 2:30:00 p.m. (2h 42m)                            │                 │ - opus-4-7                        │   29,700,845 │     15.8% │    $20.42 │
│                                                              │                 │ - sonnet-4-6                      │              │           │           │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
│ 2026-04-28, 7:30:00 p.m. (4h 4m)                             │                 │ - opus-4-7                        │   34,422,230 │     18.3% │    $35.22 │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
│ 2026-04-29, 4:33:31 a.m. - 2026-04-29, 9:54:46 a.m. (5h gap) │ (inactive)      │ -                                 │            - │         - │         - │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
│ 2026-04-29, 9:30:00 a.m. (4h 47m elapsed, 0h 13m remaining)  │ ACTIVE          │ - opus-4-7                        │    7,087,656 │      3.8% │     $8.20 │
│                                                              │                 │ - sonnet-4-6                      │              │           │           │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
│                           (assuming 187,895,696 token limit) │ REMAINING       │                                   │  180,808,040 │     96.2% │           │
├──────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────┼──────────────┼───────────┼───────────┤
│                                 (assuming current burn rate) │ PROJECTED       │                                   │    7,466,430 │      4.0% │     $8.64 │
└──────────────────────────────────────────────────────────────┴─────────────────┴───────────────────────────────────┴──────────────┴───────────┴───────────┘

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.123
  • Feedback ID: ebec1ea4-41f8-44f7-83d5-6eb49d23bf97

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:09.698Z"},{"error":"Error: Command failed with EPERM: ps -o lstart= -p 15457\nEPERM: operation not permitted, posix_spawn 'ps'\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at ZHH (/$bunfs/root/src/entrypoints/cli.js:148:222)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:148:5078)\n    at new Promise (native:1:11)\n    at j8 (/$bunfs/root/src/entrypoints/cli.js:148:5068)\n    at sg (/$bunfs/root/src/entrypoints/cli.js:257:488)\n    at IBq (/$bunfs/root/src/entrypoints/cli.js:257:4483)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:09.815Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n    at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:34:10.225Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n    at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n    at async _ (/$bunfs/root/src/entrypoints/cli.js:9150:2861)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:45:11.112Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:48:13.548Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:48:55.346Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n    at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:50:18.721Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/niranjan/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Fz7 (/$bunfs/root/src/entrypoints/cli.js:2767:12718)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2769:4898)\n    at async M$_ (/$bunfs/root/src/entrypoints/cli.js:2769:4864)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:51:58.776Z"}]

extent analysis

TL;DR

The token usage spike inconsistency may be related to the reported lock acquisition failures and EPERM errors, suggesting a potential issue with file system permissions or concurrent access.

Guidance

  • Review the error logs to identify the frequency and pattern of lock acquisition failures and EPERM errors.
  • Check the file system permissions for the /Users/niranjan/.local/share/claude/versions/ directory to ensure that the necessary permissions are granted.
  • Consider running the ccusage command with elevated privileges or modifying the file system permissions to resolve the EPERM errors.
  • Monitor the token usage and error logs after making these changes to verify if the issue is resolved.

Example

No code snippet is provided as the issue seems to be related to file system permissions and error handling.

Notes

The provided error logs suggest that the issue may be related to concurrent access or file system permissions. However, without further information about the system configuration and the ccusage command, it is difficult to provide a more specific solution.

Recommendation

Apply workaround: Modify the file system permissions for the /Users/niranjan/.local/share/claude/versions/ directory to ensure that the necessary permissions are granted, and monitor the token usage and error logs to verify if the issue is resolved.

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

claude-code - 💡(How to fix) Fix [Bug] Team Premium usage meter shows 85% but token count indicates ~4% usage [1 comments, 2 participants]