Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Issues with seeing complete music library on NAS (9.3.0)
#1
Hello!

It looks like there's some issue with seeing all the music FLAC files on the NAS, which has never been an issue with previous versions. I firstly did in in-place update which cleared the playlist, so I restored my backup. That didn't enable the playlists to return, even though I could see them listed. 

When I looked in the NAS folder via Moode, I could only see a few albums showing, when there should be many more of them on there. 

I re-added the NFS file share after doing a scan, still the same thing. 

I then did a fresh install and went through all those steps again. Still no dice.

What I found was, that the library scan seemingly never ends. The spinner will keep going round, even though the scan will usually finish in about 10 minutes. 

I then checked the MPD log file and can see things don't appear too well. I don't think it is coping too well with the size of the music library, perhaps? 

Mar 24 10:31:52 : update: added NAS/Music/Nordgroove - 2016 Kepper Of The Samples [24Bit - 48Khz.Flac] (Downtempo)/06 Sakura.flac
Mar 24 10:31:52 : ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible!
Mar 24 10:31:52 : ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Mar 24 10:31:52 : ffmpeg: Unsupported libavcodec SampleFormat value: name   depth (?)
Mar 24 10:50:13 : exception: No such directory
Mar 24 10:50:20 : exception: No such directory.   ****** This error was flooding the log file! *******

I've reverted back to 9.2.6 for now as a fresh install and everything is working ok again, all files can be seen ok and I can use my playlists again. All is well again. 

I wonder if anyone else is experiencing this?
Reply
#2
Did you regenerate the music database as instructed by the release notes?
----------------
Robert
Reply
#3
Hi!

Yes I did, several times in fact. Both after the in-place update and also with the fresh install on a different SD card too.
Reply
#4
The error below in the MPD log is very odd. I can't find much information about what might cause it.

Mar 24 10:50:20 : exception: No such directory. ****** This error was flooding the log file! *******

If you monitor the MPD database update as it happens can you determine where it was at just prior to those errors?

Code:
# Clear the log
truncate /var/log/mpd/log --size 0

# Begin monitoring it
tail -f /var/log/mpd/log

# Menu > Configure > Library
REGENERATE Music database
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
@Always_In_The_Moode

Some rando observations:


1. Even if it's not directly related to your problem at hand, it's useful to provide the startup log to help us understand your system. Knowing things like what RPi model and sice of memory, etc., give us context.

2. You alluded to "the size of the library" but didn't mention how big it is: number of tracks in particular.

3. In addition to the error message Tim highlighted, I see some curious behavior that was logged nearly 20 minutes prior

Code:
Mar 24 10:31:52 : update: added NAS/Music/Nordgroove - 2016 Kepper Of The Samples [24Bit - 48Khz.Flac] (Downtempo)/06 Sakura.flac
Mar 24 10:31:52 : ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible!
Mar 24 10:31:52 : ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Mar 24 10:31:52 : ffmpeg: Unsupported libavcodec SampleFormat value: name   depth (?)

MPD successfully added track 6 of Kepper of the Samples and then for some reason choked on the next track it was scanning. (A major annoyance with MPD is that it doesn't report the track it's currently scanning. This next track could be in a different album and directory). There's no reason MPD would invoke ffmpeg to analyze a proper FLAC file so something is amiss.

Since you reported you had no trouble mounting and scanning the same share on your moOde 9.2.6 player, you could search through its MPD log to see what file came after "Kepper...". I have to assume something about it caused MPD 0.24 to invoke ffmpeg. (Both moOde 9.2.6 and moOde 9.3.0 include the same version of ffmpeg.)

This may be unrelated to your issue, but, as my doctor would say, it's remarkable.


Obviously, we're stilling groping for an real answer.

Regards,
Kent
Reply
#6
Hello,

Thank you so much for your very helpful tips and pointers. Sadly I didn't have enough time to try and dig deeper and share more information since my post, but I did find time this morning to try again. I flashed a new image and also followed Tim's instructions to update MPD to v0.24.2.

Since doing that, I uploaded the backup, rebuilt the library and now everything seems to be working again!

It could well be a bug with MPD 0.24 as previous versions worked fine.

Anyone else with similar issues should try to upgrade to MPD v0.24.2 and try rebuilding the library again. See if it works. Maybe post your updates here just to confirm this is a solid fix!

Set up info: RPi 4b, 2Gb RAM, connected to 12TB NAS.
Reply


Forum Jump: