claude-code - 💡(How to fix) Fix [Bug] RPC error: useradd failed when creating session directory in Cowork [3 comments, 4 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#45506Fetched 2026-04-09 08:03:50
View on GitHub
Comments
3
Participants
4
Timeline
9
Reactions
0
Timeline (top)
labeled ×5commented ×3cross-referenced ×1

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:40.187Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n at async Z (/$bunfs/root/src/entrypoints/cli.js:5857:11053)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:42.612Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n at async W (/$bunfs/root/src/entrypoints/cli.js:5857:10283)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:42.613Z"}]

Root Cause

Bug Description Hi Claude Support team, I'm reaching out because Cowork has been completely unusable for me since approximately April 5–6, 2026, across two separate accounts. Error message: RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/... Account details:

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:40.187Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5857:11053)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:42.612Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:5857:10283)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:42.613Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Hi Claude Support team, I'm reaching out because Cowork has been completely unusable for me since approximately April 5–6, 2026, across two separate accounts. Error message: RPC error: ensure user: useradd failed: exit status 12: useradd: cannot create directory /sessions/... Account details:

Account 1: Team plan Account 2: Max Pro plan Both accounts are affected simultaneously

Environment:

OS: macOS Region: Mexico Claude Desktop version: 1.1348.0 (efa3fd) — built 2026-04-08T15:06:08.000Z

What's happening: Every single Cowork task fails immediately with the error above — new tasks, scheduled tasks, existing tasks, and past tasks. Cowork is completely unusable on both accounts. What I've already tried (none resolved the issue):

Restarted the computer Reinstalled Claude Desktop Cleared cache (Help > Troubleshooting > Clear Cache and Restart) Reset app data (Help > Troubleshooting > Reset App Data)

Additional context: This appears to be a known infrastructure-side bug. I've also commented on the related GitHub issue #36465 (anthropics/claude-code), where other users report the same error going back several weeks, with recent activity from April 2–8, 2026. The issue is labeled bug / area:sandbox / platform:macOS by the Anthropic team. Given that two accounts on different plan tiers are affected, this does not appear to be a local configuration issue. I'm requesting an update on the status of this bug and an estimated resolution time. Thank you.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.97
  • Feedback ID: 8b7ac200-9ff9-47b6-8032-6eb87f0a86bc

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:40.187Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5857:11053)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:42.612Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XwH (/$bunfs/root/src/entrypoints/cli.js:1465:34314)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:5857:10283)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T00:19:42.613Z"}]

extent analysis

TL;DR

The issue is likely related to a known infrastructure-side bug, and waiting for an official fix or update from the Anthropic team may be the most viable solution.

Guidance

  • The error messages indicate a problem with the MCP server configuration, specifically missing environment variables, but this may be a symptom of the underlying infrastructure issue.
  • Given that the issue is labeled as a bug by the Anthropic team and affects multiple accounts, it's likely a server-side problem rather than a local configuration issue.
  • Checking the status of the related GitHub issue #36465 may provide updates on the estimated resolution time.
  • Consider reaching out to the Anthropic support team for further assistance or clarification on the issue.

Notes

The provided error messages and environment information suggest that the issue is not isolated to a specific account or configuration, but rather a broader problem affecting the Cowork service.

Recommendation

Apply workaround: Wait for an official fix or update from the Anthropic team, as the issue appears to be related to a known infrastructure-side bug.

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