Navidrome not booting

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname --all
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

Expected behaviour

Actual behaviour

Extra details

After installtion of the application it was working and after some time the application is not working.
Please find attached the status using command status given in the docs

What is the output of

journalctl -u navidrome

?

PFA

you should be able to copy everything from SSH terminal (putty) directly. No need to do screen prints.

Anyway something happen to your config file, as you can see on one of the lines within your log.

Did you add or changed anything within the toml file?

root@DietPi:~# journalctl -u navidrome
Jun 24 14:47:53 DietPi systemd[1]: Started navidrome.service - navidrome (DietPi
).
Jun 24 14:47:54 DietPi navidrome[3992]: FATAL: Navidrome could not open config f
ile:  While parsing config: toml: expected character =
Jun 24 14:47:54 DietPi systemd[1]: navidrome.service: Ma
in process exited, code=exited, status=1/FAILURE
Jun 24 14:47:54 DietPi systemd[1]: navidrome
.service: Failed with result 'exit-code'.
Jun 24 14:47:54 DietPi systemd[1]: navidrome.service: Scheduled restart job, res
tart counter is at 1.
Jun 24 14:47:54 DietPi systemd[1]: Stopped navidrome.service - navidrome (DietPi
).
Jun 24 14:47:54 DietPi systemd[1]: Started navidrome.service - navidrome (DietPi
).
Jun 24 14:47:54 DietPi navidrome[4003]: FATAL: Navidrome could not open config f
ile:  While parsing config: toml: expected character =
Jun 24 14:47:54 DietPi systemd[1]: navidrome.service: Ma
in process exited, code=exited, status=1/FAILURE
Jun 24 14:47:54 DietPi systemd[1]: navidrome
.service: Failed with result 'exit-code'.
Jun 24 14:47:54 DietPi systemd[1]: navidrome.service: Scheduled restart job, res
tart counter is at 2.
Jun 24 14:47:54 DietPi systemd[1]: Stopped navidrome.service - navidrome (DietPi
--More--

Yes i edited the music folder path and also added the client id and secret id fir spotify.
But after that also navidrome server was working for while

Can you share your config file please

cat /mnt/dietpi_userdata/navidrome/config.toml
root@DietPi:~# cat /mnt/dietpi_userdata/navidrome/config.toml
cat: /mnt/dietpi_userdata/navidrome/config.toml: No such file or directory
root@DietPi:~#

But it showing in when i acces through winscp.

my bad, the file is called “navidrome.toml” and not config.toml

Please try

cat /mnt/dietpi_userdata/navidrome/navidrome.toml
root@DietPi:~# cat /mnt/dietpi_userdata/navidrome/navidrome.toml

DataFolder = '/mnt/dietpi_userdata/navidrome/data'
MusicFolder = '/mnt/0E3ECED63ECEB64D'
ImageCacheSize = '100MiB'
LogLevel = 'warn'
SessionTimeout = '24h'
AuthRequestLimit = '5'
AuthWindowLength = '20s'
ScanSchedule = '@every 1h'
EnableLogRedacting = 'true'
Scanner.Extractor = 'taglib'

CoverJpegQuality = '75'
CoverArtPriority = 'embedded'

Looks fine to me.
Did you edit this file from a windows machine?

Spotify,ID =
Spotify.Secret =
can i add to this config file to get spotify access

yes editted using winscp.
Dint know how to edit using putty

I think this has maybe fucked the file up, since windows use different char encoding then Linux. It can also lead to permission issues since Windows and Linux handle file permissions different.

You can edit it in your SSH session with nano, like

nano /mnt/dietpi_userdata/navidrome/navidrome.toml

can you check following

cat -A /mnt/dietpi_userdata/navidrome/navidrome.toml

Maybe we will see some hidden character

and permissions

ls -la /mnt/dietpi_userdata/navidrome/

Thanks fortunately its workingnow. i Just logged in used the following path and just updated. I feel it was rights issue as you correctly diagnosied.
ALso please advise how ot add spotify to navidrome if you have idea

You mean how to get artist images and info from spotify?

https://www.navidrome.org/docs/usage/external-integrations/#spotify

https://github.com/navidrome/navidrome/releases/download/navidrome_0.52.5_linux_amd64.tar.gz
--2024-06-26 07:19:11--  https://github.com/navidrome/navidrome/releases/download/navidrome_0.52.5_linux_amd64.tar.gz
Resolving github.com (github.com)... 20.207.73.82
Connecting to github.com (github.com)|20.207.73.82|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-06-26 07:19:12 ERROR 404: Not Found.
root@DietPi:~# wget  https://github.com/navidrome/releases/download/navidrome_0.52.5_linux_amd64.tar.gz
--2024-06-26 07:19:38--  https://github.com/navidrome/releases/download/navidrome_0.52.5_linux_amd64.tar.gz
Resolving github.com (github.com)... 20.207.73.82
Connecting to github.com (github.com)|20.207.73.82|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-06-26 07:19:38 ERROR 404: Not Found.
root@DietPi:~# wget  https://github.com/navidrome/releases/download/navidrome_0.52.5_linux_amd64.tar.gz
--2024-06-26 07:23:27--  https://github.com/navidrome/releases/download/navidrome_0.52.5_linux_amd64.tar.gz
Resolving github.com (github.com)... 20.207.73.82
Connecting to github.com (github.com)|20.207.73.82|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-06-26 07:23:27 ERROR 404: Not Found.

getting folowing error when trying to download.
ANy problem in my command given…
Please guide

Yes, you are using an incorrect URL for the file you try to download

For amd64 architecture it would be
https://github.com/navidrome/navidrome/releases/download/v0.52.5/navidrome_0.52.5_linux_amd64.tar.gz

But why you do no use dietpi-software for installation?

Thanks for you link, But does the dietpi-software comes with subsonic integration files.
I tired installing Navidrome directly from Dietpie-software but was not be add the symfonium app .
Their support informed it does not have subsonic files.
can we add Navidrome using the WebDav available apps.
Please correct me if iam wrong, as iam not so techinical guy