09-09-2022, 06:32 AM
After upgrading from an old version of moodeaudio to the newest Version, I had difficulties connecting my NAS and playing the mp3-files.
I will tell you the problem and the solution, so that someone has the same problem he can hopefully fix it.
Configuration:
Raspberry Zero W with HifiberryDAC connected via Wifi
AVM! Fritzbox 3270 with 256GB USB-Stick
NAS functions activated and user/pw were set.
Both in the same network (direkt wifi-connect, as the Fritzbox is the main router/wifi with DHCP, etc.)
Create Music Source -> SMB Scan doesn't found anything except the own SMB-Shares of MoodeAudio.
So I added the path manually, as I searched the SMB-Share in Windows Explorer (where it was found automatically, like every other SMB-Share in my network) opened it, navigated to the music source-path and copied the path (\\fritz.box\FRITZ.NAS\...\YourPathToMusic) <-- the ... are the Name of the Device which is connected to the fritzbox.
Change the fritz.box to the IP-Adress (default is 192.168.178.1), remove the \\ and change all other \ to / . (so it should look like this: 192.168.178.1/FRITZ.NAS/.../YourPathToMusic )
Type in the correct user/pw which has access to the NAS, type in a Name of the Source (your own choice).
First try doens't seems to work, so I added vers=3, to the Mount-Flags. (older FritzBox Firmware doesn't support SMB > 1, but aber a update in the last year it seems to work with smb v3. At Fritzbox NAS-Configuration you could activate SMB v1 support, but it's not more necessary and only makes the system less secure.
Saving this configuration the green tick appeard in the Library Config Menu near the new source and I startet regenerating the Library and after that "Update Library" in Main-Menu. I'm not shure if its the same function at all... @Tim Curtis ??
After that all directorys under "YourPathToMusic" where shown in the Library, but no files. I startet a terminal, had a look at the logs and moodeutl -t. Started the Update Library again and only one file was found (the stereo test which is on the SD-Card in moodeaudio).
I tried a lot (user and file permissions, ...) and after some hours I found out, that there is a symptom with newer linux-kernels and samba, that sometimes "stale file handle", which denies every access to the files at the mounted devices (in my case the mp3 at the FritzBox NAS).
The solution is to add the parameter noserverino to the Mount-Flags. After that and one more Library-Update everything works fine.
So if you find all your directorys, but no soundfiles. Maybe this will be the solution.
Best Regards and much fun with your music.
MF
PS: To all linux- and samba-pros: can you explain why this happens and what the option really changes?
I will tell you the problem and the solution, so that someone has the same problem he can hopefully fix it.
Configuration:
Raspberry Zero W with HifiberryDAC connected via Wifi
AVM! Fritzbox 3270 with 256GB USB-Stick
NAS functions activated and user/pw were set.
Both in the same network (direkt wifi-connect, as the Fritzbox is the main router/wifi with DHCP, etc.)
Create Music Source -> SMB Scan doesn't found anything except the own SMB-Shares of MoodeAudio.
So I added the path manually, as I searched the SMB-Share in Windows Explorer (where it was found automatically, like every other SMB-Share in my network) opened it, navigated to the music source-path and copied the path (\\fritz.box\FRITZ.NAS\...\YourPathToMusic) <-- the ... are the Name of the Device which is connected to the fritzbox.
Change the fritz.box to the IP-Adress (default is 192.168.178.1), remove the \\ and change all other \ to / . (so it should look like this: 192.168.178.1/FRITZ.NAS/.../YourPathToMusic )
Type in the correct user/pw which has access to the NAS, type in a Name of the Source (your own choice).
First try doens't seems to work, so I added vers=3, to the Mount-Flags. (older FritzBox Firmware doesn't support SMB > 1, but aber a update in the last year it seems to work with smb v3. At Fritzbox NAS-Configuration you could activate SMB v1 support, but it's not more necessary and only makes the system less secure.
Saving this configuration the green tick appeard in the Library Config Menu near the new source and I startet regenerating the Library and after that "Update Library" in Main-Menu. I'm not shure if its the same function at all... @Tim Curtis ??
After that all directorys under "YourPathToMusic" where shown in the Library, but no files. I startet a terminal, had a look at the logs and moodeutl -t. Started the Update Library again and only one file was found (the stereo test which is on the SD-Card in moodeaudio).
I tried a lot (user and file permissions, ...) and after some hours I found out, that there is a symptom with newer linux-kernels and samba, that sometimes "stale file handle", which denies every access to the files at the mounted devices (in my case the mp3 at the FritzBox NAS).
The solution is to add the parameter noserverino to the Mount-Flags. After that and one more Library-Update everything works fine.
So if you find all your directorys, but no soundfiles. Maybe this will be the solution.
Best Regards and much fun with your music.
MF
PS: To all linux- and samba-pros: can you explain why this happens and what the option really changes?