claude-code - 💡(How to fix) Fix [BUG] Cowork RPC error: "user already exists unexpectedly" → crashes with exit code 1 after reaching 100% workspace setup — macOS Apple M5 [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#49452Fetched 2026-04-17 08:40:47
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

Error Message

RPC error: ensure user: user great-sharp-tesla already exists unexpectedly: uid=1011 gid=1011 Something went wrong — Claude Code process exited with code 1

Code Example

RPC error: ensure user: user great-sharp-tesla already exists unexpectedly: uid=1011 gid=1011
Something went wrong — Claude Code process exited with code 1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Cowork fails to start any session. The VM reaches 100% workspace setup then crashes. Tried both Sonnet and Opus — identical result. Chat mode and Claude Code in Terminal both work normally. First error: RPC error: ensure user: user great-sharp-tesla already exists unexpectedly: uid=1011 gid=1011 After clearing vm_bundles and local-agent-mode-sessions, error changed to: Something went wrong — Claude Code process exited with code 1 Workspace setup now reaches 100% on each attempt before failing with exit code 1. Session history was lost as a side effect of the cache clearing.

What Should Happen?

Cowork completes workspace setup and allows task execution.

Error Messages/Logs

RPC error: ensure user: user great-sharp-tesla already exists unexpectedly: uid=1011 gid=1011
Something went wrong — Claude Code process exited with code 1

Steps to Reproduce

Steps to Reproduce

  1. Open Claude Desktop
  2. Open Cowork, start a new session
  3. Workspace setup reaches 100%
  4. Session crashes with above error

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.61

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

<img width="465" height="578" alt="Image" src="https://github.com/user-attachments/assets/b35c5d36-66c4-443a-b55b-8461af2fdc20" /> <img width="489" height="547" alt="Image" src="https://github.com/user-attachments/assets/e230372a-2e0f-4b4f-8ecf-f68f1fcbe429" />

extent analysis

TL;DR

The issue can be resolved by investigating and fixing the user creation issue in the Claude Code process, potentially related to the ensure user RPC error.

Guidance

  • Investigate the RPC error: ensure user: user great-sharp-tesla already exists unexpectedly: uid=1011 gid=1011 error to determine why the user creation is failing.
  • Check the user and group IDs (uid and gid) to ensure they are correctly configured and not causing conflicts.
  • Verify that the Claude Code process has the necessary permissions to create users and manage workspaces.
  • Consider checking the system logs for any additional error messages that may provide more insight into the issue.

Example

No code snippet is provided as the issue does not contain sufficient information to create a specific example.

Notes

The issue may be related to a regression in the Claude Code version 2.1.61, and investigating the changes made in this version may help identify the root cause.

Recommendation

Apply workaround: Investigate and fix the user creation issue, as it is likely the root cause of the problem. This approach is recommended because the error message specifically mentions a user creation issue, and resolving this may fix the problem.

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] Cowork RPC error: "user already exists unexpectedly" → crashes with exit code 1 after reaching 100% workspace setup — macOS Apple M5 [1 comments, 2 participants]