Skip to content

FUSE clipboard mount fails on restart: stale mount point not cleaned up #46

@lamco-office

Description

@lamco-office

Summary

When the server restarts after a crash or unclean shutdown, the FUSE clipboard filesystem mount fails with:

Failed to mount FUSE clipboard filesystem: FileIoError("Failed to create FUSE mount point: File exists (os error 17)")

The server falls back to staging mode, which works but loses the zero-copy file transfer benefit.

Source

Observed during fleet testing on KDE Plasma 6.3.6 (aibox VM). The mount point at /tmp/lamco-rdp-clipboard-* persists after the server exits without cleanup.

Expected behavior

On startup, the FUSE mount code should:

  1. Check if the mount point directory already exists
  2. If it does, attempt fusermount -u to unmount any stale FUSE mount
  3. Remove the stale directory
  4. Proceed with fresh mount creation

Current behavior

The code calls std::fs::create_dir() which fails with EEXIST if a previous mount point was not cleaned up. No recovery is attempted.

Impact

File clipboard falls back to staging mode (downloads files upfront instead of on-demand FUSE access). Functional but suboptimal. Users who restart the server frequently will always hit this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-mediumShould fix but not urgentbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions