Artwork requests repeatedly access NFS source files despite enabled pre-cache
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 56/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- perl
- Área
- backend, performance
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Perl
- Estrellas
- 1.8k
- Forks
- 389
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 10
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de LMS-Community/slimserver
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 67/100
LMS-Community/slimserver#1742 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
LMS-Community/slimserver#1555 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
CPAN modules for Perl 5.44Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
LMS-Community/slimserver#1744 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Serve a static FLAC DASH manifest as a FLAC streamPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
LMS-Community/slimserver#1741 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
compatibility
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
LMS-Community/slimserver#1739 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de LMS-Community/slimserver
Issues similares
-
area:cpan-port area:performance bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fglock/PerlOnJava#2230 ·
Los mantenedores suelen responder en 1 día
-
Make logo .svgAbiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
larchanka/ppc-code-ai-agent#38 ·
Los mantenedores suelen responder en 1 día
-
[doc] perlsub wrongly says that `"sub { ... }" creates a new subroutine each time it is executed'Abiertodocumentation Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día
-
docs(api): /api/v3/external_sources spec is missing lc and section_titlePosiblemente ocupada @subhwastaken la tomó hoy. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
openfoodfacts/openfoodfacts-server#15626 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100