After update navidrome does not respect config file

What app is this about, and its version: navidrome 0.58.5~ynh1
What YunoHost version are you running: 12.1.35
What type of hardware are you using: Old laptop or computer

Describe your issue

After the last update of today the music library defined in /var/lib/navidrome/navidrome.toml is not loaded and no music is shown.
In the configuration from the web access is shown the “default” library in /home/yunohost.multimedia/share/Music.
I could add the real library but the collection has gone.

Share relevant logs or error messages

Nothing relevant

Trying to use the new version I found that also the login via android app is blocked because an error of user/pass

2 Likes

I have the same behavior on the setup I manage, playlists disappeared, config set back to default and (as I didn’t change the default library path) music got loaded from scratch and lost play counts, recently added time and favorites. Play count and recently added date and time are big info for the setup in my case.

If I restore the backup done before install, would that recover those data while waiting for a better update method? Or steps to reapply custom config/db?

A band-aid fix is to:

  1. Make app backup, just in case
  2. Stop Navidrome service sudo systemctl stop navidrome
  3. Copy old database into the new location sudo cp /var/lib/navidrome/navidrome.db* /home/yunohost.app/navidrome/
  4. Overwrite conflicting files
  5. Start navidrome sudo systemctl start navidrome
  6. For a good measure clear cookies and log in again
3 Likes

Trying this “receipt” I have the error in journalctl you can read in hastebin and the navidrome page gives me the “502 Bad Gateway” error.

error="attempt to write a readonly database

It looks like a permission error. Check ownership and permissions

1 Like

the file /var/www/navidrome/navidrome.db should be owned by navidrome:navidrome. Is it not? Permissions should be something like 600 (u+rw).

1 Like

Sorry, it was too late for me to read the log files!
@orhtej2
Thanks a lot!

Yay! That worked like a charm! Thank you @orhtej2 and all the others! :blush:
I think this can be marked as an answer to the this support thread :smiley:

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