02-08-2019, 02:51 PM
(02-08-2019, 12:21 PM)Paulbj Wrote: After much further tweaking of lots of things including returning the original the original SD card to the shop as it was, improbably enough, faulty! I now have the NAS mounted correctly. I have created one at a time, a NAS mount using the Samba then one using NFS and both show the sought after green tick!
That's good news. I've had so few uSD card failures that I forget to suggest it can happen.
Quote:However, if I go into the music browser immediately after mounting the NAS, I can see NAS item listed but there is no music available underneath it, if I click on it.
It takes time for the Music Player Daemon (MPD) which is at the core of moOde to build its database from the information it finds in the files on the NAS. Did you notice the rotating arrows appear in the Music tab when you mounted the NAS? Tim uses that symbolic device to show MPD is busy. My particular moOde/NAS combo takes about 5 minutes to complete the scan.
The information in the Music tab, including in the Browse view, is generated from the MPD database and not directly from the filesystem, so you can't browse the NAS folder "immediately".
Quote:After a few minutes, the NAS item in the music browser disappears and nothing I can think of will bring it back!
I have had a look in the /mnt/NAS folder and the NAS is listed there along all the sub-folders that should be there and the sub-sub-folders etc. I can drill right down through the sub-folders to the music files at the lowest levels BUT none of that shows up on the music browser!
I'm not sure what's happening here but I have a suspicion that MPD is not able to scan the NAS contents. Have a look at the log file /var/log/mpd/log. You should see a long list of entries of the form
Code:
Feb 08 09:07 : update: added NAS/OMV-SMB/World/Ravi Shankar/In London/03 Ravi Shankar - Raga Ramkali.flac
Feb 08 09:07 : update: added NAS/OMV-SMB/World/Ravi Shankar/In London/01 Ravi Shankar - Raga Hamsadhwani.flac
Feb 08 09:07 : update: added NAS/OMV-SMB/World/Ravi Shankar/In London/02 Ravi Shankar - Dhun Kafi.flac
...
If there is none, then MPD didn't add any tracks to its database. I suspect it subsequently deleted the NAS folder in the Music/Browse tab because from MPD's perspective it contains no musical content. (Probably should double check with @Tim Curtis about my hypothesized sequence of events.)
Why MPD may fail to scan files containing music tracks is another discussion. You'll see it crop up in other threads on this forum and elsewhere.
Regards,
Kent