claude-code - 💡(How to fix) Fix [BUG] : RPC error -1: ensure user: useradd failed: exit status 12 [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#46982Fetched 2026-04-13 05:44:37
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×5commented ×1

Error Message

에러 전문: RPC error -1: ensure user: useradd failed: exit status 12

Error Messages/Logs

에러 전문: RPC error -1: ensure user: useradd failed: exit status 12

Code Example

에러 전문: RPC error -1: ensure user: useradd failed: exit status 12
OS: Windows + WSL2
Claude Code 버전: claude --version 결과
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?

에러 전문: RPC error -1: ensure user: useradd failed: exit status 12 OS: Windows + WSL2 Claude Code 버전: claude --version 결과

What Should Happen?

claude cowork should run

Error Messages/Logs

에러 전문: RPC error -1: ensure user: useradd failed: exit status 12
OS: Windows + WSL2
Claude Code 버전: claude --version 결과

Steps to Reproduce

claude cowork에서 skill 실행

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.104

Claude Code Version

2.1.104

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely due to a compatibility problem with the useradd command in WSL2, and a workaround may involve configuring the WSL2 environment or updating the Claude Code version.

Guidance

  • The error message "useradd failed: exit status 12" suggests a problem with user management in the WSL2 environment, which may be related to the useradd command not being compatible with WSL2.
  • To verify the issue, try running the useradd command manually in the WSL2 terminal to see if it produces the same error.
  • Check the WSL2 documentation to see if there are any known issues or workarounds for using useradd in WSL2.
  • Consider updating the Claude Code version to a newer release, as the issue may have been fixed in a later version.

Example

No code snippet is provided as the issue is related to a system command and not a code-specific problem.

Notes

The reported issue seems to be inconsistent, as the OS is listed as both Windows + WSL2 and macOS, which may indicate a reporting error or a more complex issue.

Recommendation

Apply workaround: The issue is likely related to the WSL2 environment, and applying a workaround such as configuring the WSL2 environment or using an alternative user management method may resolve the issue.

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