How to set custom library location for navidrome

when i try to edit it show permission denied:
bash: /mnt/dietpi_userdata/navidrome/navidrome.toml: Permission denied

Please guide me how to edit the navidrom.toml to customise my library.
Iam not much into python progamming .can i edit from windows and save it .
Please guide

Try to user root user or try it with sudo.

sudo nano /mnt/dietpi_userdata/navidrome/navidrome.toml

There is an entry MusicFolder = '/mnt/dietpi_userdata/Music' you can edit to change the path.
Don’t forget to restart the navidrome service afterwards: sudo systemctl restart navidrome.service.

If you edit this file on a windows PC the permissions will probably get messed up, default are these:
-rw-r--r-- 1 navidrome root.
You can set them with:

sudo chown navidrome:root /mnt/dietpi_userdata/navidrome/navidrome.toml && sudo chmod 644 /mnt/dietpi_userdata/navidrome/navidrome.toml

sudo nano /mnt/dietpi_userdata/navidrome/navidrome.toml
Was able to edit the navidrom.toml file and was saved. But still library was not loading.

"MusicFolder = '/mnt/ 0E3ECED63ECEB64/' "
Have added my drive on the navidrome Music Folder path.

ALso pelase inform if Navidrome can play diretly from the hdmi of the dietpi
Currently when i tak the ipaddress:4533 on ly PC its playing audio on my pc instead of play on the Allo USB Bridge hdmi where Dietpi is installed and Navidrome server is installed.

What else did you do, did you restart navidrome? Did you trigger a media scan afterwards inside the web panel?

I think you misunderstood the concept of navidrome. It’s a streaming software, if you run it on you Raspberry Pi and you access navidrome from another PC, let’s call it PC 1, then the sound will be played on PC 1.
If you want to play music on the Raspberry Pi and control it remotely via a browser, Navidrome is not the right app for you.
To play it via a device connected on the Pi you would need to access navidrome from the RPi itself.

Thanks for your help.
Folder is accessible now.
Can you help me on the below :“To play it via a device connected on the Pi you would need to access navidrome from the RPi itself”
How to access navidrome from rpi itself and play

Start a browser and access the navidrome web page 127.0.0.1:4533 / localhost:4533.

If you run your RPi headless, you would need to use a CLI client like
https://github.com/tryffel/jellycli#readme
or
https://github.com/wildeyedskies/stmp#readme

localhost:4533 is working
Should I install GitHub - tryffel/jellycli: Jellyfin terminal client in Dietpi?
Is CLI client already available in Dietpi if so which one should I install?

when i tried to install jellifin from dietpi follwoing error:
[FAILED] File does not exist or cannot be written to by current user │
│ │
│ Please verify the existence of the file $3 │
│ /etc/jellyfin/network.xml │
│ │
│ Retry with proper permissions or apply the setting manually: │
│ 8097

If you have a desktop environment installed and you can access http://localhost:4533 then you don’t need a CLI tool, you can use it through the browser and it should output through your RPi.
You can also check with dietpi-configAudio options the audio output the system is using.
Depending on your desktop environment you can probably also change the output device through some config menu.
What desktop environment do you use? LXDE?

@praveensg E-Mail answers do currently not reach the forum, since we do not host an own webserver :wink::

Iam using windows and able to get the interface of using http://localhost:4533

dietpi-configAudio options its showing rpi hdmi.

please note already i have installed LMS on the same rpi. will it be an issue.?

Navidrome has a jukebox mode, using mpv as audio player backend: Jukebox mode | Navidrome

apt install mpv

And set Jukebox.Enabled = true in the navidrome.toml. That should do it already, while above links gives more details about optional configuration, which should however not be required.

DataFolder = '/mnt/dietpi_userdata/navidrome/data'
MusicFolder = '/mnt/0E3ECED63ECEB64D/ENGLISH SELECTIONS'
ImageCacheSize = '100MiB'
Jukebox.Enabled = true
MPVPath = "/path/to/mpv"

LogLevel = 'warn'
SessionTimeout = '24h'
AuthRequestLimit = '5'
AuthWindowLength = '20s'
ScanSchedule = '@every 1h'
EnableLogRedacting = 'true'
Scanner.Extractor = 'taglib'

CoverJpegQuality = '75'
CoverArtPriority = 'embedded'

Still no players shown on navidrome.
Jukebox is enabled also.
how can i fix the jukebox issue

You need to change this to the actual path of mpv.
You can get the path with which mpv.

I would actually not set MPVPath at all. The path is obtained automatically if you do not set it. Try to remove that line.

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