Skip to content

Comments

fix(health,importer): skip rclone VFS notifications for FUSE/none mounts#320

Merged
javi11 merged 1 commit intomainfrom
fix/rclone-vfs-notifications-fuse-mount
Feb 24, 2026
Merged

fix(health,importer): skip rclone VFS notifications for FUSE/none mounts#320
javi11 merged 1 commit intomainfrom
fix/rclone-vfs-notifications-fuse-mount

Conversation

@javi11
Copy link
Owner

@javi11 javi11 commented Feb 24, 2026

Summary

  • Add mount type guard in notifyRcloneVFS (internal/health/checker.go) to return early when mount_type is not rclone or rclone_external
  • Add the same guard in NotifyVFS and RefreshMountPathIfNeeded (internal/importer/postprocessor/vfs_notifier.go)
  • Hoist cfg := hc.configGetter() call in notifyRcloneVFS to avoid a redundant second call inside the goroutine

Problem

When using mount_type: fuse, the app still attempted to notify rclone VFS after health checks, producing repeated errors:

Failed to notify rclone VFS about file status change
file=complete/sonarr/... event=file_healthy err="provider altmount not mounted"

The rclone client was non-nil from a prior configuration (or initial wiring) but no rclone provider was registered, causing every RC call to fail.

Test plan

  • Start with mount_type: fuse — no "Failed to notify rclone VFS" errors in logs
  • Start with mount_type: rclone — VFS refresh calls still happen (no regression)
  • Start with mount_type: rclone_external — VFS refresh calls still happen
  • Switch from rclone → fuse via config reload — notifications stop without errors

🤖 Generated with Claude Code

Guard rclone VFS notification calls with a mount type check so that
notifyRcloneVFS, NotifyVFS, and RefreshMountPathIfNeeded return early
when mount_type is fuse or none. Previously, a stale non-nil rclone
client could trigger RC calls that fail with "provider altmount not
mounted" noise when running the internal FUSE mount.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@javi11 javi11 merged commit 9b840cc into main Feb 24, 2026
1 check passed
@javi11 javi11 deleted the fix/rclone-vfs-notifications-fuse-mount branch February 24, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant