Skip to content

AltMount reports download as completed to Sonarr, but symlink does not exist #612

@evulhotdog

Description

@evulhotdog

AltMount reported a download as completed and exposed it to Sonarr through the SABnzbd-compatible history API before the file was actually readable. Sonarr then attempted to import the file and failed because the path no longer existed or was no longer accessible through the AltMount mount.

Sonarr queue showed:

  • Downloaded - Waiting to Import
  • Unexpected error processing file

And:
Could not find file '/mnt/remote/altmount/complete/tv/foo.bar.mkv'
When clicking the import button.

However in Altmount, the item showed as completed in the queue as if it was ready to go.

AltMount logs show:

  1. AltMount processed the NZB and created metadata for the virtual file:
    Created metadata for RAR extracted file
    virtual_path=/complete/tv/foo.../bar....mkv
    size=2613095172
  2. AltMount marked the queue item as successfully processed and triggered Sonarr:
    Successfully processed queue item
    Triggered RefreshMonitoredDownloads
  3. Immediately after, reading the file failed:
    [createUsenetReader] No segments to download
    available_bytes=1879048192
    expected_file_size=2613095172
  4. AltMount then detected corruption:
    Streaming failure detected, triggering immediate ARR repair
    File corrupted
    error="missmatched segments for file size"
  5. Later, AltMount removed the item from its view:
    File no longer tracked by ARR during re-trigger, removing from AltMount
  6. From inside the Sonarr container, the exact path did not exist:
    /mnt/remote/altmount/complete/tv/foo.../bar....mkv

AltMount should not expose a download as Completed to Sonarr until the virtual file is confirmed readable/importable.
If the file fails segment validation, health validation, or read validation, AltMount should either:

  • keep it out of SABnzbd completed history, or
  • report it as failed/warning, not completed, or
  • hide it consistently from fuse/webdav and ARR clients in unison.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions