Artwork requests repeatedly access NFS source files despite enabled pre-cache

Aperta
#1,716 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
perl

Direzione di ricerca

Start by tracing how LMS handles the /music/<coverid>/cover_300x300_f request and how artwork precaching stores and serves generated images. Compare repeated requests with the first request while monitoring access to the NFS source files. The issue is resolved when subsequent requests for the same artwork use the local cache without reopening the original file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

LMS repeatedly opens original artwork sources when serving cached album artwork. With an NFS-mounted music library, opening LMSs Random releases/ "Zufällige Veröffentlichungen" dashboard section wakes sleeping HDDs.

To Reproduce

  • Run LMS with the music library mounted via NFS and enable artwork pre-caching.
  • In Material Skin, add Random releases to the dashboard.
  • Monitor access to the NFS music directory:
    sudo opensnoop-bpfcc | grep --line-buffered '/path/to/nfs'
  • Open or reload the Material Skin dashboard.
  • Observe that LMS repeatedly opens original Folder.jpg files or audio files containing embedded artwork.
  • Remove Random releases from the dashboard and reload it. No further NFS access occurs.

The behavior can also be reproduced by requesting the same artwork twice:
curl -o /dev/null
'http://127.0.0.1:9000/music//cover_300x300_f'
The original MP3 or artwork file is opened again for every identical request.

Expected behavior
After artwork has been pre-cached, or generated by the first request, subsequent requests for the same cover_300x300_f artwork should be served from the local artwork cache.

LMS should not repeatedly open the original Folder.jpg or audio file on the NFS share. These accesses wake the file server’s sleeping HDDs even though no music is being played and no library scan is running.

System Information:
OS on which LMS is running: Debian 13 Trixie
Kernel: 6.12.115+deb13.1-amd64
Hardware architecture: x86_64
LMS installation: Native Debian installation
Web skin used: Material Skin
Browser: Chromium, Firefox
LMS version: 9.1.1
Player(s) involved: Squeezelite on a Raspberry Pi 4, LyrPlay
Music storage: NFS 4.1, mounted read-only from a separate file server
LMS database and cache: Local storage on the LMS server
Additional information from Settings/Information: Not yet included. I can add the exact header information if required.

Additional context
Artwork pre-caching is enabled and Material Skin has correctly registered its artwork sizes:
precacheArtwork: 1
customArtSpecs:
150x150_f: Material Skin (List)
300x300_f: Material Skin (Grid)

However, requesting the same cover_300x300_f URL twice caused LMS to open the same MP3 four times per request.

Removing Random releases from the Material Skin dashboard completely prevents these NFS accesses.

Lingua principale
Perl
Stelle
1.8k
Fork
389
Merge medio
1g 4h
PR unite (30g)
10

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LMS-Community/slimserver

Tutte le issue di LMS-Community/slimserver

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.