airsonic-advanced / airsonic-advanced/airsonic-advanced

Folder moved within library root path / dublicate database entries

Abierto
#1,003 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
1.4k
Forks
159
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Once you moved a folder and you to a "full scan" afterwards the application creates database doublets, the old file still remains with the old path inside the database.

You will see two entries in the UI and trying to play the "old" file you'll receive a warning first and an exception second:
1) 2023-12-26 19:48:33.936 WARN --- o.airsonic.player.util.FileUtil : Could not get file modify date for /home/media/media_share/old_path
2) java.nio.file.NoSuchFileException: /home/media/media_share/old_path

Since I do not want to destroy my database using "clean-up database" would be the last option.
One possible reason: I updated the war file once from last stable (https://github.com/airsonic-advanced/airsonic-advanced/releases/tag/v10.6.0) to most recent (below) and I did not see and did not to do any DB migration or update script

* File system access is granted:
airsonic user is not the owner of the directory/files but a group member with granted full access
* The application it the latest (https://github.com/airsonic-advanced/airsonic-advanced/compare/11.0.0-SNAPSHOT.20220625052932...11.0.0-SNAPSHOT.20230217142243).
* The ubuntu linux is 20.04 is up to date
* Java is:
openjdk 17.0.9 2023-10-17
OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 17.0.9+9-Ubuntu-120.04, mixed mode, sharing)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.