claude-code - 💡(How to fix) Fix [BUG] RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/clever-adoring-planck [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#48671Fetched 2026-04-16 06:54:09
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/clever-adoring-planck

Root Cause

This is a server-side infrastructure issue, not a local client problem. Exit status 12 from useradd means the system cannot create the user's home directory — points to disk quota, permissions, or resource exhaustion on Anthropic's container provisioning infrastructure.

Local troubleshooting already ruled out:

  • Claude Code reinstalled (now v2.1.109, native install via claude install)
  • Local directory permissions verified writable
  • claude doctor shows no local issues

Code Example

## Bug Description

Claude Cowork consistently fails to start new sessions with a server-side RPC error. Persisting for 36+ hours across multiple attempts and multiple container names.

## Error Message

RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/clever-adoring-planck

## Affected Containers (all same error)

- /sessions/tender-trusting-rubin
- /sessions/peaceful-vigilant-albattani
- /sessions/clever-adoring-planck

## Steps to Reproduce

1. Open Claude Desktop
2. Click to start a Cowork session
3. Error appears immediately — session never starts
4. Retry — different container name, same error every time

## Expected Behavior

Cowork spins up a sandbox session successfully.

## Actual Behavior

Server-side useradd fails with exit status 12 (cannot create home directory) on every attempt. The session never starts.

## Analysis

This is a server-side infrastructure issue, not a local client problem. Exit status 12 from useradd means the system cannot create the user's home directory — points to disk quota, permissions, or resource exhaustion on Anthropic's container provisioning infrastructure.

Local troubleshooting already ruled out:
- Claude Code reinstalled (now v2.1.109, native install via claude install)
- Local directory permissions verified writable
- claude doctor shows no local issues

## Environment

- OS: macOS (Apple Silicon)
- Claude Code version: 2.1.109
- Install method: Native (~/.local/bin/claude)
- Plan: Claude Max
- Duration: 36+ hours, still ongoing

### What Should Happen?

It should load and work!

### Error Messages/Logs
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?

Title: Cowork fails to start — useradd exit status 12: cannot create directory in /sessions/

Body:

## Bug Description

Claude Cowork consistently fails to start new sessions with a server-side RPC error. Persisting for 36+ hours across multiple attempts and multiple container names.

## Error Message

RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/clever-adoring-planck

## Affected Containers (all same error)

- /sessions/tender-trusting-rubin
- /sessions/peaceful-vigilant-albattani
- /sessions/clever-adoring-planck

## Steps to Reproduce

1. Open Claude Desktop
2. Click to start a Cowork session
3. Error appears immediately — session never starts
4. Retry — different container name, same error every time

## Expected Behavior

Cowork spins up a sandbox session successfully.

## Actual Behavior

Server-side useradd fails with exit status 12 (cannot create home directory) on every attempt. The session never starts.

## Analysis

This is a server-side infrastructure issue, not a local client problem. Exit status 12 from useradd means the system cannot create the user's home directory — points to disk quota, permissions, or resource exhaustion on Anthropic's container provisioning infrastructure.

Local troubleshooting already ruled out:
- Claude Code reinstalled (now v2.1.109, native install via claude install)
- Local directory permissions verified writable
- claude doctor shows no local issues

## Environment

- OS: macOS (Apple Silicon)
- Claude Code version: 2.1.109
- Install method: Native (~/.local/bin/claude)
- Plan: Claude Max
- Duration: 36+ hours, still ongoing

### What Should Happen?

It should load and work!

### Error Messages/Logs

```shell

Steps to Reproduce

Open Cowork and say Hi!

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Latest

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/clever-adoring-planck

extent analysis

TL;DR

The issue is likely due to a server-side infrastructure problem, specifically a disk quota, permissions, or resource exhaustion issue on Anthropic's container provisioning infrastructure, preventing the creation of a user's home directory.

Guidance

  • Verify that the issue persists across different container names to rule out any container-specific problems.
  • Check the Anthropic API documentation for any known issues or limitations related to container provisioning and user directory creation.
  • Consider reaching out to Anthropic support to investigate potential server-side infrastructure issues, such as disk quota or permissions problems.
  • If possible, try to reproduce the issue with a different Claude Code version to determine if it's a regression or an isolated problem.

Example

No code snippet is provided as the issue seems to be related to server-side infrastructure rather than client-side code.

Notes

The issue is reported to have persisted for 36+ hours, and the user has already tried local troubleshooting, including reinstalling Claude Code and verifying local directory permissions. The problem seems to be specific to the Anthropic API and container provisioning infrastructure.

Recommendation

Apply workaround: Reach out to Anthropic support to investigate and resolve the server-side infrastructure issue, as it's likely a problem with their container provisioning infrastructure rather than a client-side 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

claude-code - 💡(How to fix) Fix [BUG] RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/clever-adoring-planck [1 comments, 2 participants]