claude-code - 💡(How to fix) Fix [Bug] RPC error: useradd failed with exit status 12 during Cowork session start [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#52379Fetched 2026-04-24 06:08:45
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

I’m consistently getting this error when trying to start a Cowork session: RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/...

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description I’m consistently getting this error when trying to start a Cowork session: RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/... I’ve already tried:

  • new chats
  • browser refresh / logout
  • different browser
  • retrying multiple times It fails every time, even on fresh sessions. Looks like the environment/container provisioning is failing on your side or tied to my account. Can you reset or clear my session environments?

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.63
  • Feedback ID: 49aaf0e4-b203-4fdd-940d-0efea0aa38fe

Errors

[]

extent analysis

TL;DR

The issue is likely due to a failed user creation process during session initialization, and resetting the session environments may resolve the problem.

Guidance

  • The error message "useradd failed: exit status 12" suggests a permission issue or directory creation failure, which could be related to the environment or container provisioning.
  • Try resetting the session environments as requested, and verify if the issue persists.
  • If the problem is account-specific, it may be worth investigating if other users are experiencing similar issues.
  • Check the environment and container provisioning configuration to ensure it has the necessary permissions to create directories and users.

Notes

The issue seems to be related to the environment or container provisioning, but without more information about the provisioning process or the specific error details, it's difficult to provide a more targeted solution.

Recommendation

Apply workaround: Reset the session environments as requested, as it may resolve the issue related to the failed user creation process during session initialization.

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] RPC error: useradd failed with exit status 12 during Cowork session start [1 comments, 2 participants]