claude-code - 💡(How to fix) Fix [BUG] Virtiofs [3 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#55112Fetched 2026-05-01 05:45:57
View on GitHub
Comments
3
Participants
3
Timeline
9
Reactions
0
Timeline (top)
labeled ×4commented ×3closed ×1unlabeled ×1

Error Message

Something went wrong VM Try sending your message again. If it keeps happening, share feedback so we can investigate.

Details RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents/Claude/Scheduled/rev-rec-triage-daily as .scheduled/rev-rec-triage-daily: source path does not exist and could not be created: /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents/Claude/Scheduled/rev-rec-triage-daily: mkdir /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents: file exists You can restart the conversation from an earlier message.

Root Cause

Root cause: CoWork discovers tasks via ~/Documents/Claude/Scheduled/ (the symlink path) and passes that path directly to virtiofs for mounting. When virtiofs tries to build the mount, it hits mkdir .../Users/Fraser.Wilsher/Documents and fails because Documents is a symlink, not a real directory. If CoWork used realpath() first, it would use /Users/Fraser.Wilsher/Library/CloudStorage/OneDrive-NiCELtd(2)/Documents/Claude/Scheduled/rev-rec-triage-daily — and virtiofs would succeed.

Code Example

Something went wrong
VM
Try sending your message again. If it keeps happening, share feedback so we can investigate.

Details
RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents/Claude/Scheduled/rev-rec-triage-daily as .scheduled/rev-rec-triage-daily: source path does not exist and could not be created: /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents/Claude/Scheduled/rev-rec-triage-daily: mkdir /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents: file exists
You can restart the conversation from an earlier message.
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: failed to mount ...Documents/Claude/Scheduled/rev-rec-triage-daily... mkdir .../Users/Fraser.Wilsher/Documents: file exists

Mention: ~/Documents is a symlink → /Users/Fraser.Wilsher/Library/CloudStorage/OneDrive-NiCELtd(2)/Documents. Request: CoWork should call realpath() on task paths before passing them to virtiofs.

Root cause: CoWork discovers tasks via ~/Documents/Claude/Scheduled/ (the symlink path) and passes that path directly to virtiofs for mounting. When virtiofs tries to build the mount, it hits mkdir .../Users/Fraser.Wilsher/Documents and fails because Documents is a symlink, not a real directory. If CoWork used realpath() first, it would use /Users/Fraser.Wilsher/Library/CloudStorage/OneDrive-NiCELtd(2)/Documents/Claude/Scheduled/rev-rec-triage-daily — and virtiofs would succeed.

~/Documents is a symlink → /Users/Fraser.Wilsher/Library/CloudStorage/OneDrive-NiCELtd(2)/Documents Full error: mkdir /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents: file exists Fix needed: CoWork should call realpath() on task paths before passing to virtiofs

What Should Happen?

Claude Cowork should function

Error Messages/Logs

Something went wrong
VM
Try sending your message again. If it keeps happening, share feedback so we can investigate.

Details
RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents/Claude/Scheduled/rev-rec-triage-daily as .scheduled/rev-rec-triage-daily: source path does not exist and could not be created: /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents/Claude/Scheduled/rev-rec-triage-daily: mkdir /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents: file exists
You can restart the conversation from an earlier message.

Steps to Reproduce

Try and / run a new or existing Cowork Task

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1.0.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The most likely fix is to modify CoWork to call realpath() on task paths before passing them to virtiofs to resolve the symlink issue.

Guidance

  • The error occurs because CoWork passes a symlink path to virtiofs, which fails to mount the directory.
  • To verify the issue, check if the task path is a symlink and if realpath() resolves it correctly.
  • Modify CoWork to call realpath() on task paths before passing them to virtiofs to resolve the symlink.
  • Test the modified CoWork with a new or existing task to ensure the issue is resolved.

Example

No code snippet is provided as the issue does not contain sufficient code context.

Notes

The fix assumes that realpath() is available and functional on the platform. Additionally, the issue may be specific to macOS or the Anthropic API.

Recommendation

Apply workaround: Modify CoWork to call realpath() on task paths before passing them to virtiofs, as this is a targeted fix for the identified 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] Virtiofs [3 comments, 3 participants]