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

Abierto
#1,716 1 comentario 0 reacciones 0 asignados Ver en GitHub

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

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

Abrir en Codespaces

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LMS-Community/slimserver

Todos los issues de LMS-Community/slimserver

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.