[navidrome] Revenir version antérieure (<0.43.0~ynh1)

Bonjour,

Mon serveur YunoHost

Matériel: Olimex A20 Lime 2
Version de YunoHost: YunoHost 4.2.5.2 (stable)
J’ai accès à mon serveur : En SSH | Par la webadmin |
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Si oui, expliquer:
NAVIDROME : 0.43.0~ynh1

Description du problème

J’ai mis à jour l’ensemble du système et des applications hier.
Idiot que je suis j’ai également viré mes backup…

En lançant navidrome ce soir, je remarque :

  • que les vignettes des albums (80%) ne sont plus prises en charge
  • le lecteur ne démarre plus

J’aimerais revenir à la version antérieure par conséquent

Y aurait il une ligne de commande magique pour downgrader cette application uniquement ?

D’avance merci

Il n’y a pas de moyen sur de downgrade les applis YunoHost, mais tu peux toujours essayer

wget https://codeload.github.com/YunoHost-Apps/navidrome_ynh/legacy.tar.gz/a91c3188ad59ebd9fb4de01f38b1bec84105941e
tar -xzf a91c3188ad59ebd9fb4de01f38b1bec84105941e
sudo yunohost app upgrade navidrome -F -f YunoHost-Apps-navidrome_ynh-a91c318

Guère mieux, toujours la même situation
Je vais desinstaller et réinstaller…
Suis je le seul à avoir des soucis avec cet update ?

En tout cas merci quand même :wink:

Ai desinstallé / réinstallé. Modifié mon MusicFolder mais il ne trouve aucun album… Très bizarre…

Je ne sais plus trop quoi lui raconter…

Bonjour la communauté,
@crustyourmind je n’ai eu aucun soucis lors de cette mise à jour, je te propose de jeter un œil sue ce sujet

Et particulièrement ce post

et celui-ci

Tiens nous au courant pour la suite

Tout d’abord un grand merci pour l’aide

Je pense que ça avance

Le fichier de conf comprend bien sûr le chemin vers le répertoire MusicFolder

Ce répertoire est dans une brique Web_app afin de pouvoir l’alimenter par sftp

ls -l /var/www/my_webapp/
total 12
-rw-r--r--   1 my_webapp www-data   80 Jan 17 13:25 db_access.txt
drwxr-xr-x   4 my_webapp www-data 4096 Apr 22 13:02 www
drwxr-xr-x 100 my_webapp www-data 4096 May  6 09:54 zik

Donc propriétaire my_webapp et groupe www-data

QUand je lance

 sudo -u navidrome /opt/yunohost/navidrome/navidrome -c /var/lib/navidrome/navidrome.toml scan -f 
 _   _             _     _
| \ | |           (_)   | |
|  \| | __ ___   ___  __| |_ __ ___  _ __ ___   ___
| . ` |/ _` \ \ / / |/ _` | '__/ _ \| '_ ` _ \ / _ \
| |\  | (_| |\ V /| | (_| | | | (_) | | | | | |  __/
\_| \_/\__,_| \_/ |_|\__,_|_|  \___/|_| |_| |_|\___|
                          Version: 0.43.0 (d9f26826)

WARN[0000] ScanInterval is DEPRECATED. Please use ScanSchedule. See docs at https://navidrome.org/docs/usage/configuration-options/ 
WARN[0000] Setting ScanSchedule                          schedule="@every 1m30s"
INFO[0000] Configuring Media Folder                      name="Music Library" path=/var/www/my_webapp/zik
INFO[0000] Creating Image cache                          maxSize="100 MB" path=/var/lib/navidrome/cache/images
INFO[0000] Finished initializing cache                   cache=Image elapsedTime=3.6ms maxSize=100MB
ERRO[0000] Error stating dir                             error="stat /var/www/my_webapp/zik: permission denied" path=/var/www/my_webapp/zik
ERRO[0000] Error loading directory tree                  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] There were errors reading directories from filesystem  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] Scan was interrupted by error. See errors above  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] Error importing MediaFolder                   error="stat /var/www/my_webapp/zik: permission denied" folder=/var/www/my_webapp/zik
ERRO[0000] Errors while scanning media. Please check the logs 
INFO[0000] Finished full rescan                         

On voit une erreur de permission.
Ce que je ne comprends pas c’est que j’ai la même erreur si je mets les droits navidrome:navidrome (ce qui ne m’arrangerai pas car je ne pourrais plus l’incrémenter via le user de la brique mywebapp)

Sinon via sudo le stat passe

sudo stat /var/www/my_webapp/zik
  File: /var/www/my_webapp/zik
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 801h/2049d	Inode: 6294862     Links: 100
Access: (0755/drwxr-xr-x)  Uid: (  996/my_webapp)   Gid: (   33/www-data)
Access: 2021-02-05 19:35:28.700520495 +0000
Modify: 2021-05-06 09:54:08.738847622 +0000
Change: 2021-05-29 10:56:53.610402523 +0000
 Birth: -




cat /var/lib/navidrome/navidrome.toml | grep [m-M]usic
# Base URL (only the path part) to configure Navidrome behind a proxy (ex: /music)
# How frequently to scan for changes in your music library. Set it to 0 to disable scans
# Folder where your music library is stored. Can be read-only
#MusicFolder = "/home/yunohost.multimedia/share/Music"
MusicFolder="/var/www/my_webapp/zik"
# Enable the option in the UI to download music/albums/artists/playlists from the server

Bon à ce point je donc de nouveau bloqué …
Ce qui est étonnant c’est que ça marcher nickel avant la dernière mise à jour qui a upgradé le système yunohost ainsi que l’app navidrome)

Peut être un lien symbolique entre ce répertoire et le répertoire par défaut de stockage de navidrome serait préférable ?

Peut-être que tu devrais donner les droits de cette façon
chown www-data:navidrome /vers/le/répertoire/MusicFolder/

Puis faire un systemctl restart navidrome pour pour en charge ces nouveaux droits

Pas mieux, toujours la même erreur

 sudo -u navidrome /opt/yunohost/navidrome/navidrome -c /var/lib/navidrome/navidrome.toml scan -f 
 _   _             _     _
| \ | |           (_)   | |
|  \| | __ ___   ___  __| |_ __ ___  _ __ ___   ___
| . ` |/ _` \ \ / / |/ _` | '__/ _ \| '_ ` _ \ / _ \
| |\  | (_| |\ V /| | (_| | | | (_) | | | | | |  __/
\_| \_/\__,_| \_/ |_|\__,_|_|  \___/|_| |_| |_|\___|
                          Version: 0.43.0 (d9f26826)

WARN[0000] ScanInterval is DEPRECATED. Please use ScanSchedule. See docs at https://navidrome.org/docs/usage/configuration-options/ 
WARN[0000] Setting ScanSchedule                          schedule="@every 1m30s"
INFO[0000] Creating Image cache                          maxSize="100 MB" path=/var/lib/navidrome/cache/images
INFO[0000] Configuring Media Folder                      name="Music Library" path=/var/www/my_webapp/zik
INFO[0000] Finished initializing cache                   cache=Image elapsedTime=2.1ms maxSize=100MB
ERRO[0000] Error stating dir                             error="stat /var/www/my_webapp/zik: permission denied" path=/var/www/my_webapp/zik
ERRO[0000] Error loading directory tree                  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] There were errors reading directories from filesystem  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] Scan was interrupted by error. See errors above  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] Error importing MediaFolder                   error="stat /var/www/my_webapp/zik: permission denied" folder=/var/www/my_webapp/zik
ERRO[0000] Errors while scanning media. Please check the logs 
INFO[0000] Finished full rescan   


root@crust:/var/www/my_webapp# ls -l zik/
total 392
drwxr-xr-x  3 www-data navidrome 4096 Feb  7 19:43 'Active Slaughter'
drwxr-xr-x  2 www-data navidrome 4096 Feb  7 19:43 'a faction of mercy (lp tape)'
drwxr-xr-x  3 www-data navidrome 4096 Feb 17 12:41  AKUMA
drwxr-xr-x  4 www-data navidrome 4096 Feb  7 13:36 'Alien Sex Fiend'

Fais un chmod -R +rw /var/www/my_webapp/zik sinon je ne vois pas d’où peut venir tes problèmes de permissions

C’est à ni rien comprendre, même avec des perms 777 ça buggue

# chmod -R 777 zik/

Vérfication

# ls -l zik
total 392
drwxrwxrwx  3 my_webapp www-data 4096 Feb  7 19:43 'Active Slaughter'
drwxrwxrwx  2 my_webapp www-data 4096 Feb  7 19:43 'a faction of mercy (lp tape)'
drwxrwxrwx  3 my_webapp www-data 4096 Feb 17 12:41  AKUMA
drwxrwxrwx  4 my_webapp www-data 4096 Feb  7 13:36 'Alien Sex Fiend'

ça plante

# sudo -u navidrome /opt/yunohost/navidrome/navidrome -c /var/lib/navidrome/navidrome.toml scan -f 
 _   _             _     _
| \ | |           (_)   | |
|  \| | __ ___   ___  __| |_ __ ___  _ __ ___   ___
| . ` |/ _` \ \ / / |/ _` | '__/ _ \| '_ ` _ \ / _ \
| |\  | (_| |\ V /| | (_| | | | (_) | | | | | |  __/
\_| \_/\__,_| \_/ |_|\__,_|_|  \___/|_| |_| |_|\___|
                          Version: 0.43.0 (d9f26826)

WARN[0000] ScanInterval is DEPRECATED. Please use ScanSchedule. See docs at https://navidrome.org/docs/usage/configuration-options/ 
WARN[0000] Setting ScanSchedule                          schedule="@every 1m30s"
INFO[0000] Creating Image cache                          maxSize="100 MB" path=/var/lib/navidrome/cache/images
INFO[0000] Configuring Media Folder                      name="Music Library" path=/var/www/my_webapp/zik
INFO[0000] Finished initializing cache                   cache=Image elapsedTime=2.1ms maxSize=100MB
ERRO[0000] Error stating dir                             error="stat /var/www/my_webapp/zik: permission denied" path=/var/www/my_webapp/zik
ERRO[0000] Error loading directory tree                  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] There were errors reading directories from filesystem  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] Scan was interrupted by error. See errors above  error="stat /var/www/my_webapp/zik: permission denied"
ERRO[0000] Error importing MediaFolder                   error="stat /var/www/my_webapp/zik: permission denied" folder=/var/www/my_webapp/zik
ERRO[0000] Errors while scanning media. Please check the logs 
INFO[0000] Finished full rescan                         

Là je sèche complétement…

j’ai résolu une partie du soucis en collant l’user navidrome dans le groupe www-data

usermod -a -G www-data navidrome

Et la le scan fonctionne :wink: Un grand merci pour vos idées qui ont permis de faire réfléchir à la problématique et de trouver la solution

Par contre je n’ai plus les vignettes des albums…
COmment les régénérer ?

1 Like

Pour les vignettes des pochettes si je passe la valeur

# Size of image (art work) cache. Set to 0 to disable cache
ImageCacheSize = "100MB"

à 0MB, les vignettes reviennent (cache desactivé), si je laisse la valeur par défaut, plus de vignettes…

Bon je sais d’où ça vient, mais pas comment régler le soucis…

Toute idée est la bienvenue :wink:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.