Artwork requests repeatedly access NFS source files despite enabled pre-cache
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
- Ambito
- backend, performance
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
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LMS-Community/slimserver
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 67/100
LMS-Community/slimserver#1742 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
LMS-Community/slimserver#1555 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
CPAN modules for Perl 5.44Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
LMS-Community/slimserver#1744 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Serve a static FLAC DASH manifest as a FLAC streamForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
LMS-Community/slimserver#1741 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
compatibility
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
LMS-Community/slimserver#1739 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di LMS-Community/slimserver
Issue simili
-
area:cpan-port area:performance bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fglock/PerlOnJava#2230 ·
I maintainer di solito rispondono entro 1 giorno
-
Make logo .svgApertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
larchanka/ppc-code-ai-agent#38 ·
I maintainer di solito rispondono entro 1 giorno
-
[doc] perlsub wrongly says that `"sub { ... }" creates a new subroutine each time it is executed'Apertadocumentation Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
I maintainer di solito rispondono entro 1 giorno
-
docs(api): /api/v3/external_sources spec is missing lc and section_titleForse già presa @subhwastaken l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
openfoodfacts/openfoodfacts-server#15626 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100