Thank you for your donation!


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


Problem: Library Regeneration Issue
#11
That number of files should be no problem but no matter how many files the best way to troubleshoot this type of issue is to follow the steps below.

1. Reboot

2. Clear the MPD log

Code:
sudo truncate /var/log/mpd/log --size 0

3. Regenrate the Music database
Menu > Configure > Library
a. REGENERATE music database
b. Stay on the page until the busy spinner clears

4. Examine the MPD log in real time for a few minutes
Each line should say "updating" or "adding"

Code:
# View log in real time
tail -f /var/log/mpd/log
Ctrl-c to exit

# View entire log
moodeutl --mpdlog
--or--
cat /var/log/mpd/log

5. After the busy spinner clears (step 3b)
Examine the moode log and verify the statistics for the "regen_library" job

Code:
moodeutl -l

It should look like below ending with Job regen_library done
Code:
20250724 064327 worker: Job regen_library
20250724 064327 worker: Clear Library tag cache
20250724 064327 mpdindex: Start
20250724 064327 mpdindex: Cmd (rescan)
20250724 064327 worker: Clear thumbnail cache
20250724 064327 thumb-gen: Start
20250724 064327 thumb-gen: Scan opt: Default+
20250724 064327 thumb-gen: Priority: Embedded cover
20250724 064327 thumb-gen: Res,Qual: 600px,60
20250724 064327 thumb-gen: Px ratio: 1
20250724 064327 thumb-gen: Th width: 600
20250724 064327 thumb-gen: Thm qual: 60
20250724 064327 thumb-gen: Scanning: NAS, NVME, OSDISK, SATA, SDCARD
20250724 064420 thumb-gen: Done: 410 folders scanned, 410 thumbs created, 0 already in cache.
20250724 064647 mpdindex: Done: indexed 320 artists, 409 albums, 4555 songs
20250724 064647 worker: Job regen_library done

On the server side, signs of trouble in Library database regen include the following:

1. Permission errors in the MPD log. This indicates the file or album directory could not be accessed.
2. "Job regen_library done" never appears in the moode log. This indicates MPD database rescan (or update) never completed because MPD hung or crashed.
3. If MPD crashed there would be an additional message in the moode log from the "watchdog" daemon. It would say something like "MPD restarted".

On the client side look for Browser errors that indicate one of the WebUI Java scripts has crashed
1. Return from the Library Config screen to the main Playback or Library screen 
2. Open the Browser Javascript console
3. Look for errors indicating a script has crashed.
The error would say something like "undefined function" or "undefined variable" and it would list the line number and the file name where the error occurred.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#12
Great response, @Tim Curtis

It deserves to be a sticky that isn’t buried in a thread.

Regards,
Kent
Reply
#13
(07-24-2025, 01:34 AM)buckapound Wrote:
(07-23-2025, 11:43 PM)ils1974 Wrote:
(07-23-2025, 09:58 PM)buckapound Wrote:
(07-23-2025, 09:42 PM)Tim Curtis Wrote: So your existing files + added files on the "1.4 TB of FLAC files" is 50K files?

1.39 TB. I can't see the total number of files, but based on one folder, the math comes to just shy of 30k files.

To count your files: 
find  your-file-location -name *.flac | wc -l

I don't know what you mean by this.
If you want to count your flac files on your drive, you can execute the commands I mentioned from a SSH terminal, or via the built-in "Web SSH" terminal under Menu - Configure - System
Reply
#14
(07-24-2025, 06:16 PM)ils1974 Wrote:
(07-24-2025, 01:34 AM)buckapound Wrote:
(07-23-2025, 11:43 PM)ils1974 Wrote:
(07-23-2025, 09:58 PM)buckapound Wrote:
(07-23-2025, 09:42 PM)Tim Curtis Wrote: So your existing files + added files on the "1.4 TB of FLAC files" is 50K files?

1.39 TB. I can't see the total number of files, but based on one folder, the math comes to just shy of 30k files.

To count your files: 
find  your-file-location -name *.flac | wc -l

I don't know what you mean by this.
If you want to count your flac files on your drive, you can execute the commands I mentioned from a SSH terminal, or via the built-in "Web SSH" terminal under Menu - Configure - System
Thanks ils1974, I didn't know what that was. I'm not much of a computer mechanic.
Tim, thanks for the detailed instructions. However, I'm not getting very far. I can't get it to accept any text when it asks for password. Thoughts, anyone?
Also having trouble getting the sudo... line typed before SSH times out. I can't paste anything in that interface. How do you guys enter longer stuff like the second piece Tim's asking me to enter?
Reply
#15
(07-26-2025, 08:12 PM)buckapound Wrote:
(07-24-2025, 06:16 PM)ils1974 Wrote:
(07-24-2025, 01:34 AM)buckapound Wrote:
(07-23-2025, 11:43 PM)ils1974 Wrote:
(07-23-2025, 09:58 PM)buckapound Wrote: 1.39 TB. I can't see the total number of files, but based on one folder, the math comes to just shy of 30k files.

To count your files: 
find  your-file-location -name *.flac | wc -l

I don't know what you mean by this.
If you want to count your flac files on your drive, you can execute the commands I mentioned from a SSH terminal, or via the built-in "Web SSH" terminal under Menu - Configure - System
Thanks ils1974, I didn't know what that was. I'm not much of a computer mechanic.
Tim, thanks for the detailed instructions. However, I'm not getting very far. I can't get it to accept any text when it asks for password. Thoughts, anyone?
Also having trouble getting the sudo... line typed before SSH times out. I can't paste anything in that interface. How do you guys enter longer stuff like the second piece Tim's asking me to enter?

Hi,
If you are still having an issue with the SSH screen etc., would you like a step-by-step guide? No offence intended if this is something you have sorted.
Re-reading you posts it seems like you had an issue with the SSH login, something that crippled me in the past. A possible route around it seems drastic, but is not usually difficult, which is to completely reinstall Moode from the Raspberry Pi imager. This includes an option to define your SSH password even before loading Moode, and is a good place at which to do it. 
Anyway, let us know how you got on.
Rpi5 (Moode Audio) -> Wiim Ultra -> Fosi V3 Mono (pair) -> Revel F206 + REL T5x
Reply


Forum Jump: