claude-code - 💡(How to fix) Fix [BUG] Failed to create bridge sockets after 5 attempts in Cowork VM [2 comments, 3 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#49488Fetched 2026-04-17 08:39:44
View on GitHub
Comments
2
Participants
3
Timeline
8
Reactions
0
Timeline (top)
labeled ×4commented ×2closed ×1unlabeled ×1

Error Message

From ~/Library/Logs/Claude/cowork_vm_node.log:

[warn] [vm-stderr] Error: Failed to create bridge sockets after 5 attempts [info] [Process] Exited, code=1, signal=null, duration=~1700ms, oom=false [info] [Process] Cleaned up, remaining active=0

This error repeats on every attempt to start a task. The VM itself boots fine (network connects, SDK installs), but the Claude Code process crashes every time it tries to create bridge sockets.

Code Example

From ~/Library/Logs/Claude/cowork_vm_node.log:

[warn] [vm-stderr] Error: Failed to create bridge sockets after 5 attempts
[info] [Process] Exited, code=1, signal=null, duration=~1700ms, oom=false
[info] [Process] Cleaned up, remaining active=0

This error repeats on every attempt to start a task. 
The VM itself boots fine (network connects, SDK installs), 
but the Claude Code process crashes every time it tries to create bridge sockets.
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?

Bug:

Error from ~/Library/Logs/Claude/cowork_vm_node.log:

Error: Failed to create bridge sockets after 5 attempts Process exited, code=1 macOS version: 15.7.4 (24G517) Claude version: 2.1.111 Tried: restart app, check for updates, full Mac reboot — issue persists.

What Should Happen?

Cowork tasks should start and run normally. When a new task is created, the Claude Code process inside the Cowork VM should initialize successfully and respond to messages without crashing.

Error Messages/Logs

From ~/Library/Logs/Claude/cowork_vm_node.log:

[warn] [vm-stderr] Error: Failed to create bridge sockets after 5 attempts
[info] [Process] Exited, code=1, signal=null, duration=~1700ms, oom=false
[info] [Process] Cleaned up, remaining active=0

This error repeats on every attempt to start a task. 
The VM itself boots fine (network connects, SDK installs), 
but the Claude Code process crashes every time it tries to create bridge sockets.

Steps to Reproduce

  1. Open Claude desktop app (Cowork mode)
  2. Create a new task or open any existing task
  3. Send any message
  4. The process immediately crashes with "Claude Code process exited with code 1"

Tried the following without success:

  • Restarted the Claude app (Cmd+Q and reopen)
  • Checked for updates
  • Full Mac reboot

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.111 (macOS 15.7.4)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely related to the Claude Code process failing to create bridge sockets, and a potential workaround could be to investigate and adjust the socket creation mechanism or dependencies.

Guidance

  • Investigate the cowork_vm_node.log file for any patterns or clues that might indicate why the bridge sockets cannot be created after 5 attempts.
  • Check the system configuration and dependencies required for socket creation, such as permissions, firewall settings, or other network-related configurations.
  • Consider testing the application on a different macOS version or environment to isolate if the issue is specific to version 15.7.4.
  • Review the changes made in the Claude Code version 2.1.111 to see if there were any updates related to socket creation or network communication that could be causing the issue.

Example

No specific code snippet can be provided without more information on the implementation details of the Claude Code process and its socket creation mechanism.

Notes

The issue seems to be a regression, as it worked in a previous version, but the last working version is not specified. This information could be crucial in identifying the root cause.

Recommendation

Apply workaround: Given the lack of information on the last working version and the specifics of the socket creation issue, applying a workaround such as adjusting system configurations or testing on a different environment might be the most feasible next step.

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