Skip to content

[bug] Renamed movie files leave visible, unplayable cards despite missing files and removed library memberships #2818

Closed

Description

@heyitsbarish

What happened

Renaming a movie file and/or its containing folder while troubleshooting metadata matching left three stale movie cards alongside the correct movie.

The stale cards remain visible in the web, iOS, and tvOS apps after full administrative library scans, metadata refreshes, and a server restart.

Attempting Edit → Refresh Metadata on a stale card returns:

cannot determine scan scope because this item has no indexed files

Read-only database inspection shows that each stale item has one missing file record, no present files, and no library memberships. The correct movie has both playable editions attached.

These observations occurred within the default 24-hour missing-file retention window. Persistence beyond that window has not yet been tested. The issue being reported is that retained records remain visible as broken cards.

Steps to reproduce

  1. Add and scan a movie into a movie library.
  2. Rename its media file and/or containing folder while troubleshooting a metadata match.
  3. Run a full scan from Admin → Libraries → Scan.
  4. Repeat the rename and scan.
  5. Manually match the final version to the correct movie.
  6. Browse the library in the web, iOS, or tvOS app.
  7. Open an old card and select Edit → Refresh Metadata.

In the observed case, successive filename changes included an {edition-...} tag and an {imdb-...} tag. The final, correctly matched movie contains two playable editions.

The exact minimal combination of filename changes, folder changes, and matching actions required to reproduce this has not been isolated.

Expected behavior

After a successful full library scan, items with no present files and no library memberships should not appear as ordinary playable library cards.

If records are retained internally during a missing-file grace period, they should remain hidden until their files return.

If an unavailable item can still be opened, the UI should explain its state rather than offer a metadata refresh that cannot succeed.

Silo version / commit

1555 · f75cdf3

Deployment

Docker Compose

Area

Libraries, scanning, and metadata

Clients affected

  • Web UI
  • Android
  • iOS/tvOS/macOS
  • Jellyfin-compat client (Infuse, Findroid, ...)
  • Other/not client-specific

Client app and device

SIlo 1.1.0 (67) on iPhone 17 Pro Max, iOS 27.0.1, Silo Web (build 1555 · f75cdf3), Silo 1.1.0 (67) on Apple TV 4K 3rd-gen (model A2843 128GB) tvOS 27.0 (24J361)

Media and playback details

  • Media type: movie
  • Container: MKV
  • Correct item: two playable editions, theatrical and director's cut
  • Stale items: three cards referencing old paths after renames
  • Playback works through the correct item but not through the stale cards
  • No playback/transcoding failure is being reported for the correct item

Diagnostics report reference

No response

Relevant logs

Refreshing metadata on a stale item returns:

cannot determine scan scope because this item has no indexed files

Full movie-library scan completion was logged:

level=INFO msg="scan queue: progress" phase=completed message="Scan completed"
level=INFO msg="library ingest: completed" mode=library matched_files=0 retried_items=2 still_unmatched_warnings=2

(These are shortened excerpts. Nonessential identifiers, timestamps, and timing fields have been omitted.)

Technical notes

Read-only database inspection produced the following findings. Record labels are anonymized.

Record Status Indexed files Present files Library memberships
Stale local item A ambiguous 1 0 0
Stale local item B ambiguous 1 0 0
Stale IMDb item C unmatched 1 0 0
Correct TMDB item matched 2 2 1

For each stale item:

  • Its retained media_files row references an old path.
  • missing_since is populated.
  • No present file references the item.
  • No media_item_libraries row references the item.

For the correct item:

  • Both playable media files reference it.
  • Both files have missing_since IS NULL.
  • It retains one library membership.

This suggests missing-file detection and membership removal occurred, but a listing or fallback path may still expose retained ambiguous/unmatched records. That is a hypothesis, not a confirmed root cause.

Source inspection identified a default 24-hour missing-file retention period. The deployed retention setting was not independently queried, and behavior after expiration has not yet been tested.

Separate PostgreSQL crashes involving fdatasync and missing-file errors were discovered during investigation. PostgreSQL was migrated to a Docker named volume and the database restored successfully. The stale cards remained after another full scan. A successful full scan was also logged before the recorded crashes; a causal relationship has not been established.

AI harness

OpenAI Codex desktop app.

AI tool(s)

AI-assisted source inspection, shell-based local file searches, official documentation browsing, and review of user-supplied logs. Diagnostic commands were supplied by the assistant and executed by the reporter.

AI model(s)

GPT-6.1 Sol

AI involvement

AI-assisted

Independent or adversarial review

AI assisted with investigating scanner behavior, interpreting logs and read-only database results, and drafting/sanitizing this report.

The reporter independently observed the issue in the affected clients and executed the diagnostic commands.

No Silo source-code patch or direct catalog-record deletion was performed.

No independent developer review, adversarial review, or clean-environment reproduction has been performed.

The reporter confirmed the symptoms across three clients. The proposed technical explanation remains unverified.

Confirmations

  • I searched open and recently closed issues and pull requests, and this is not already reported
  • I reproduced this myself on a real deployment
  • Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added
    priority: P2
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions