Navidrome Deployment: Trouble with using Volumes, Error while scanning media

candideHOBBY

9 months ago

Hello! I'm working on deploying a Navidrome instance. The deployment is successful, but the app isn't able to recognize the music folder in my volume, which I set up using the file browser template

Here's the error log:

time="2024-08-26T04:57:13Z" level=error msg="Error stating dir" error="stat ./dir/music: no such file or directory" path=./dir/music
time="2024-08-26T04:57:13Z" level=error msg="Error importing MediaFolder" error="stat ./dir/music: no such file or directory" folder=./dir/music
time="2024-08-26T04:57:13Z" level=error msg="Errors while scanning media. Please check the logs"

I used the file browser to create the following folders (see screenshots):

dir
|- music
|- data

Then, I mounted my volume to the navidrome deploy and set the mount path to /app/dir (per the Volume docs).

Finally, I set my env variables to (based on Navidrome docs):

./dir/data for the data

./dir/music for the music

Then redeployed.

Project ID: f8d31eae-8eb2-4697-a3e2-dde44f422441

0 Replies

9 months ago

Treat your volume as it's own folder. When mounting to a service, the volume becomes the /dir folder. Because of this, your current setup is actually /app/dir/dir/music.


9 months ago

To fix this, move your music and data down a folder to be at the root of the volume, which is actually the /data folder


candideHOBBY

9 months ago

@Adam I tried moving /data and /music to the root of the volume using the File Browser, then re-mounted it to the Navidrome deployment and kept the same env files, but it didn't work…


Navidrome Deployment: Trouble with using Volumes, Error while scanning media - Railway Help Station