claude-code - 💡(How to fix) Fix /setup-cowork fails with RPC error: sandbox user already exists with stale uid/gid [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#49343Fetched 2026-04-17 08:43:54
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

Error Message

Running /setup-cowork consistently fails with the following error: RPC error -1: ensure user: user brave-sleepy-ramanujan already exists unexpectedly: uid=1014 gid=1014 The follow-up message says "You can restart the conversation from an earlier message," but the error reproduces on every attempt, including after restarting the conversation and relaunching Claude Code. Cowork is completely unusable as a result — every Cowork command fails at this provisioning step. Error appears immediately Restart conversation + relaunch Claude Code — same error

Error Messages/Logs

Error appears immediately Restart conversation + relaunch Claude Code — same error Title: /setup-cowork fails with RPC error: sandbox user already exists with stale uid/gid Running /setup-cowork consistently fails with the following error: RPC error -1: ensure user: user brave-sleepy-ramanujan already exists unexpectedly: uid=1014 gid=1014 The follow-up message says "You can restart the conversation from an earlier message," but the error reproduces on every attempt, including after restarting the conversation and relaunching Claude Code. Cowork is completely unusable as a result — every Cowork command fails at this provisioning step. 2. Error appears immediately 3. Restart conversation + relaunch Claude Code — same error

Code Example

Sandbox user brave-sleepy-ramanujan (uid=1014, gid=1014) appears to be orphaned on Anthropic's side. Looks like server-side state that needs to be cleared before a new sandbox can be provisioned for this account.

---

RPC error -1: ensure user: user brave-sleepy-ramanujan already exists unexpectedly: uid=1014 gid=1014
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?

What happened: Running /setup-cowork consistently fails with the following error:

RPC error -1: ensure user: user brave-sleepy-ramanujan already exists unexpectedly: uid=1014 gid=1014 The follow-up message says "You can restart the conversation from an earlier message," but the error reproduces on every attempt, including after restarting the conversation and relaunching Claude Code. Cowork is completely unusable as a result — every Cowork command fails at this provisioning step.

Expected: /setup-cowork provisions a fresh sandbox and completes successfully.

Actual: Sandbox user brave-sleepy-ramanujan (uid=1014, gid=1014) appears to be orphaned on Anthropic's side. Looks like server-side state that needs to be cleared before a new sandbox can be provisioned for this account.

Environment:

OS: Windows 11 Home 10.0.26200 Shell: bash (Git Bash / MinGW) Claude Code version: (run claude --version in your normal terminal and paste it) Reproduction:

Invoke /setup-cowork Error appears immediately Restart conversation + relaunch Claude Code — same error Request: Please clear the orphaned sandbox user so provisioning can succeed.

What Should Happen?

/setup-cowork provisions a fresh sandbox and completes successfully.

Error Messages/Logs

Sandbox user brave-sleepy-ramanujan (uid=1014, gid=1014) appears to be orphaned on Anthropic's side. Looks like server-side state that needs to be cleared before a new sandbox can be provisioned for this account.

Steps to Reproduce

Invoke /setup-cowork Error appears immediately Restart conversation + relaunch Claude Code — same error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

NA

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

I can't submit it directly — gh isn't installed in this environment, so I have no way to authenticate and post to GitHub from here. But I can draft the issue for you to paste. Open https://github.com/anthropics/claude-code/issues/new and use this:


Title: /setup-cowork fails with RPC error: sandbox user already exists with stale uid/gid

Body:

What happened: Running /setup-cowork consistently fails with the following error:

RPC error -1: ensure user: user brave-sleepy-ramanujan already exists unexpectedly: uid=1014 gid=1014

The follow-up message says "You can restart the conversation from an earlier message," but the error reproduces on every attempt, including after restarting the conversation and relaunching Claude Code. Cowork is completely unusable as a result — every Cowork command fails at this provisioning step.

Expected: /setup-cowork provisions a fresh sandbox and completes successfully.

Actual: Sandbox user brave-sleepy-ramanujan (uid=1014, gid=1014) appears to be orphaned on Anthropic's side. Looks like server-side state that needs to be cleared before a new sandbox can be provisioned for this account.

Environment:

  • OS: Windows 11 Home 10.0.26200
  • Shell: bash (Git Bash / MinGW)
  • Claude Code version: (run claude --version in your normal terminal and paste it)

Reproduction:

  1. Invoke /setup-cowork
  2. Error appears immediately
  3. Restart conversation + relaunch Claude Code — same error

Request: Please clear the orphaned sandbox user so provisioning can succeed.


Before you submit, grab claude --version from your normal terminal (PowerShell or CMD — it's not on PATH in this sandboxed bash) and paste it into the Environment section. Want me to save this draft to a file so you can grab it later?

extent analysis

TL;DR

The most likely fix is to clear the orphaned sandbox user brave-sleepy-ramanujan with uid=1014 and gid=1014 on Anthropic's side to resolve the RPC error.

Guidance

  • The error message suggests a server-side state issue, indicating that the sandbox user needs to be cleared before a new sandbox can be provisioned.
  • To verify the issue, try invoking /setup-cowork and check if the error reproduces after restarting the conversation and relaunching Claude Code.
  • The user is unable to submit the issue directly due to the absence of gh in their environment, so assistance is required to post the issue on GitHub.
  • The issue is likely related to a regression, as it worked in a previous version, but the last working version is not specified.

Example

No code snippet is provided as the issue is related to a server-side state and RPC error.

Notes

The issue lacks information about the last working version of Claude Code, which could be helpful in identifying the cause of the regression.

Recommendation

Apply a workaround by requesting the Anthropic team to clear the orphaned sandbox user, as the error is likely caused by a server-side state 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