Thank you for your donation!


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


Problem: can't update library
#39
(04-26-2025, 09:59 PM)Tim Curtis Wrote:
(04-26-2025, 08:46 PM)zbilic Wrote: Hello,
Just realised that library DB (/var/lib/mpd/database) is a gzip archive.

I have compared it with the old one from 8.3.9.

In the new one, there is only "directory: RADIO" with the Radio station list and "directory: SDCARD"

In the old one, there is a complete list with all directories (e.g. directory: NAS, ...)

The progress spinner never stops, even after a reboot.

Is there a limit to how large a database can be, i.e. how many rows?

The old one has 61198 rows.

I have added more files to the SAMBA share.

Is it possible to stop it, reset DB, start again, initiate an update and debug it?

Thanks in advance.

Did u read the thread at the link I previously posted?

Try examining the MPD log
cat /var/log/mpd/log


Tnx for the link and support.

I missed your replay because I was writing a post at the same time.

Yes, I tried the steps from the link.

The "/var/log/mpd/log" is empty, even when I execute REGNERATE from the GUI.

At the same time I checked the output of the moodutil -l


Code:
root@moode:~# ls -l  /var/log/mpd/
total 4
-rw-r--r-- 1 root root   0 Apr 27 15:16 log
-rw-r--r-- 1 root root 112 Apr 26 22:55 log.1.gz

root@moode:/tmp# moodeutl -l
...

20250427 154417 worker: -- Startup complete
20250427 154417 worker: --
20250427 154417 worker: Mount monitor:    started
20250427 154418 worker: Radio monitor:    off
20250427 154418 worker: Watchdog monitor: started
20250427 154418 worker: Responsiveness:   Boosted
20250427 154418 worker: Ready
20250427 155811 worker: Job cuefiles_ignore
20250427 155830 worker: Job regen_library
20250427 155830 worker: Clear Library tag cache
20250427 155830 worker: Start MPD database regen
20250427 155831 worker: Clear thumbnail cache
20250427 155831 thumb-gen: Start
20250427 155831 thumb-gen: Scan opt: Default
20250427 155831 thumb-gen: Priority: Embedded cover
20250427 155831 thumb-gen: Res,Qual: 600px,60
20250427 155831 thumb-gen: Px ratio: 1
20250427 155831 thumb-gen: Th width: 600
20250427 155831 thumb-gen: Thm qual: 60
20250427 155831 thumb-gen: Scanning: NAS, NVME, SATA, SDCARD
20250427 155854 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Adele - 30 (2021) [24 Bit Hi-Res] FLAC [PMEDIA] ⭐️/12. Love Is A Game.flac
20250427 155920 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Billy Ocean - Greatest Hits 1989 [FLAC]/13. Billy Ocean - Mystery Lady.flac
20250427 155940 thumb-gen: Error: Not a valid FLAC bitstream: NAS/Router/Bruce Springsteen - Greatest Hits (1995) [FLAC]/18.-This Hard Land.flac
20250427 160024 thumb-gen: Error: Not a valid FLAC bitstream: NAS/Router/Incognito-Amplified_Soul-Special_Edition-2CD-FLAC-2014-NBFLAC/209-incognito-zaius.flac
20250427 160044 thumb-gen: Error: File does not contain ID3v2 tag: NAS/Router/K-S/Swing Jazz - Big Band - Glenn Miller - In the Mood.mp3
20250427 160111 thumb-gen: Error: Not a valid FLAC bitstream: NAS/Router/Mangroove - Svijet za nas (2009)[FLAC]/09 - Nebo se nasmijesilo.flac
20250427 160128 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Pink floyd - 1973 ~ 2003 - The dark ide of the moon [EMI records remaster SACD] dsf/10. Pink floyd - Eclipse.dsf
20250427 160131 thumb-gen: Error: Not a valid FLAC bitstream: NAS/Router/Quincy Jones - Back On The Block (1989)/14 - The Secret Garden (feat. El Debarge, James Ingram, Al B. Sure!, Barry White).flac
20250427 160144 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Skunk Anansie - An Acoustic Skunk Anansie - Live in London [2013]/An Acoustic Skunk Anansie - Live in London.mp4
20250427 160149 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Stereo MC's - Connected (1992)/12 - The End.flac
20250427 160215 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Vaya Con Dios - The Best Of (1996)[FLAC]/16 - Evening Of Love.flac
20250427 160218 thumb-gen: Error: File does not contain ID3v2 tag: NAS/Router/YAMMAT - Kompilacija [RakiaBeat Ent.] 2010[Mp3]/16 DAS WEGAS-Svijet u meni (original mix).mp3
20250427 160221 thumb-gen: Done: 340 folders scanned, 340 thumbs created, 0 already in cache.


root@moode:~# date "+%Y%m%d %H%M%S";  ls -l  /var/log/mpd/log
20250427 162219
-rw-r--r-- 1 root root 0 Apr 27 15:16 /var/log/mpd/log


I tried to stop the daemon and run it in the terminal, it end it with the same result.

Code:
    root@moode:/tmp# mpd --stderr --no-daemon --verbose
    config_file: loading file "/etc/mpd.conf"
    2025-04-27T17:21:16 soxr: soxr converter "high"
    2025-04-27T17:21:16 vorbis: Xiph.Org libVorbis 1.3.7
    2025-04-27T17:21:16 opus: libopus 1.3.1
    2025-04-27T17:21:16 adplug: adplug 2.3.3
    2025-04-27T17:21:16 simple_db: reading DB
    2025-04-27T17:21:16 curl: version 7.88.1
    2025-04-27T17:21:16 curl: with GnuTLS/3.7.9
    2025-04-27T17:21:16 state_file: Loading state file /var/lib/mpd/state
    2025-04-27T17:21:16 event: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
    2025-04-27T17:21:16 client: [127.0.0.1:58760] client connected
    2025-04-27T17:21:16 client: [127.0.0.1:58760] process command "status"
    2025-04-27T17:21:16 client: [127.0.0.1:58760] command returned 0
    2025-04-27T17:21:16 client: [127.0.0.1:58760] process command "currentsong"
    2025-04-27T17:21:16 client: [127.0.0.1:58760] command returned 0
    2025-04-27T17:21:16 client: [127.0.0.1:58760] process command "close"
    2025-04-27T17:21:16 client: [127.0.0.1:58760] command returned 4
    2025-04-27T17:21:16 client: [127.0.0.1:58760] disconnected
    2025-04-27T17:21:17 client: [127.0.0.1:58768] client connected
    2025-04-27T17:21:17 client: [127.0.0.1:58768] process command "status"
    2025-04-27T17:21:17 client: [127.0.0.1:58768] command returned 0
    2025-04-27T17:21:17 client: [127.0.0.1:58768] process command "idle"
    2025-04-27T17:21:17 client: [127.0.0.1:58768] command returned 1
    2025-04-27T17:21:47 client: [127.0.0.1:55982] client connected
    2025-04-27T17:21:47 client: [127.0.0.1:55982] process command list
    2025-04-27T17:21:47 client: process command "update \"\""
    2025-04-27T17:21:47 update: spawned thread for update job id 1
    2025-04-27T17:21:47 update: starting
    2025-04-27T17:21:47 client: command returned 0
    2025-04-27T17:21:47 client: [127.0.0.1:55982] process command list returned 0
    2025-04-27T17:21:47 client: [127.0.0.1:58768] process command "status"
    2025-04-27T17:21:47 client: [127.0.0.1:58768] command returned 0
    2025-04-27T17:21:47 client: [127.0.0.1:55982] process command list
    2025-04-27T17:21:47 client: process command "status"
    2025-04-27T17:21:47 client: command returned 0
    2025-04-27T17:21:47 client: process command "currentsong"
    2025-04-27T17:21:47 client: command returned 0
    2025-04-27T17:21:47 client: [127.0.0.1:55982] process command list returned 0
    2025-04-27T17:21:47 client: [127.0.0.1:58768] process command "currentsong"
    2025-04-27T17:21:47 client: [127.0.0.1:58768] command returned 0
    2025-04-27T17:21:47 client: [127.0.0.1:55982] disconnected
    2025-04-27T17:21:47 client: [127.0.0.1:58768] process command "close"
    2025-04-27T17:21:47 client: [127.0.0.1:58768] command returned 4
    2025-04-27T17:21:47 client: [127.0.0.1:58768] disconnected
    2025-04-27T17:21:47 update: reading NAS/Router/A-J/Dino_Dvornik_-_Zasto_mi_radis_to.mp3
    2025-04-27T17:21:48 client: [127.0.0.1:55994] client connected
    2025-04-27T17:21:48 client: [127.0.0.1:55994] process command "status"
    2025-04-27T17:21:48 client: [127.0.0.1:55994] command returned 0
    2025-04-27T17:21:48 client: [127.0.0.1:55994] process command "idle"
    2025-04-27T17:21:48 client: [127.0.0.1:55994] command returned 1


Also, tried to REGENERATE library via GUI and mpc update command - no difference.

I'm unsure what it means, but commad mpc list DB reported this message.

Code:
root@moode:~# mpc list /var/lib/mpd/database
Unknown tag "/var/lib/mpd/database"; supported tags are: Artist, Album, AlbumArtist, Title, Track, Name, Genre, Date, Composer, Performer, Comment, Disc, MUSICBRAINZ_ARTISTID, MUSICBRAINZ_ALBUMID, MUSICBRAINZ_ALBUMARTISTID, MUSICBRAINZ_TRACKID, MUSICBRAINZ_RELEASETRACKID, OriginalDate, ArtistSort, AlbumArtistSort, AlbumSort, Label, MUSICBRAINZ_WORKID, Grouping, Work, Conductor, ComposerSort, Ensemble, Movement, MovementNumber, Location


Compared to 8.3.9 DB tag that differs is: tag: Mood

I even tried a fresh install of the image, and only with the SAMBa configuration (no other adjustments) - the result is almost the same.

Only the test file is visible in the Library.

Code:
root@moode:/tmp# ls -l  /var/log/mpd/log
-rw-r--r-- 1 root root 0 Apr 27 22:08 /var/log/mpd/log

root@moode:/tmp# tail -f  /var/log/mpd/log



root@moode:/tmp# moodeutl -l
20250416 140230 worker: --
20250416 140230 worker: -- Start moOde 9 series
20250416 140230 worker: --
20250416 140230 worker: Daemonize:     complete
20250416 140230 worker: Linux startup: complete
20250416 140230 worker: Boot config:   ok
20250416 140230 worker: Boot folder:   ok
20250416 140230 worker: Radio table:   ok
20250416 140233 worker: PHP session:   cleaned
20250416 140233 worker: PHP session:   loaded
20250416 140242 worker: Package locks: applied
20250416 140244 worker: File check:    complete
20250416 140244 worker: Log to RAM:    on
20250416 140244 worker: Tmp to RAM:    on
20250416 140244 worker: Debug logging: off
20250416 140244 worker: --
20250416 140244 worker: -- System
20250416 140244 worker: --
20250427 205838 worker: Host name:     moode
20250427 205838 worker: RPi model:     Pi-4B 1.4 2GB
20250427 205838 worker: moOde release: 9.3.2 2025-04-16
20250427 205838 worker: RaspiOS:       12.10 Bookworm 64-bit
20250427 205838 worker: Linux Kernel:  6.12.20 64-bit
20250427 205838 worker: MPD version:   0.24.3
20250427 205838 worker: User id:       pi
20250427 205838 worker: Home folder:   /home/pi
20250427 205838 worker: Time zone:     Europe/Zagreb
20250427 205838 worker: Kbd layout:    hr
20250427 205838 worker: HDMI ports(s): on
20250427 205838 worker: HDMI-CEC:      off
20250427 205838 worker: Sys LED0:      on
20250427 205838 worker: Sys LED1:      on
20250427 205838 worker: Reduce power:  n/a
20250427 205838 worker: Fan control:   n/a
20250427 205838 worker: CPU governor:  ondemand
...
20250427 220854 worker: Job regen_library
20250427 220854 worker: Clear Library tag cache
20250427 220854 worker: Start MPD database regen
20250427 220854 worker: Clear thumbnail cache
20250427 220854 thumb-gen: Start
20250427 220854 thumb-gen: Scan opt: Default
20250427 220854 thumb-gen: Priority: Embedded cover
20250427 220854 thumb-gen: Res,Qual: 600px,60
20250427 220854 thumb-gen: Px ratio: 1
20250427 220854 thumb-gen: Th width: 600
20250427 220854 thumb-gen: Thm qual: 60
20250427 220854 thumb-gen: Scanning: NAS, NVME, SATA, SDCARD
20250427 220929 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Adele - 30 (2021) [24 Bit Hi-Res] FLAC [PMEDIA] ⭐️/12. Love Is A Game.flac
20250427 221006 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Billy Ocean - Greatest Hits 1989 [FLAC]/13. Billy Ocean - Mystery Lady.flac
20250427 221033 thumb-gen: Error: Not a valid FLAC bitstream: NAS/Router/Bruce Springsteen - Greatest Hits (1995) [FLAC]/18.-This Hard Land.flac
20250427 221137 thumb-gen: Error: Not a valid FLAC bitstream: NAS/Router/Incognito-Amplified_Soul-Special_Edition-2CD-FLAC-2014-NBFLAC/209-incognito-zaius.flac
20250427 221154 thumb-gen: Error: File does not contain ID3v2 tag: NAS/Router/K-S/Swing Jazz - Big Band - Glenn Miller - In the Mood.mp3
20250427 221225 thumb-gen: Error: Not a valid FLAC bitstream: NAS/Router/Mangroove - Svijet za nas (2009)[FLAC]/09 - Nebo se nasmijesilo.flac
20250427 221243 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Pink floyd - 1973 ~ 2003 - The dark ide of the moon [EMI records remaster SACD] dsf/10. Pink floyd - Eclipse.dsf
20250427 221251 thumb-gen: Error: Not a valid FLAC bitstream: NAS/Router/Quincy Jones - Back On The Block (1989)/14 - The Secret Garden (feat. El Debarge, James Ingram, Al B. Sure!, Barry White).flac
20250427 221309 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Skunk Anansie - An Acoustic Skunk Anansie - Live in London [2013]/An Acoustic Skunk Anansie - Live in London.mp4
20250427 221314 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Stereo MC's - Connected (1992)/12 - The End.flac
20250427 221352 thumb-gen: Error: imagecreatefromstring() failed: NAS/Router/Vaya Con Dios - The Best Of (1996)[FLAC]/16 - Evening Of Love.flac
20250427 221355 thumb-gen: Error: File does not contain ID3v2 tag: NAS/Router/YAMMAT - Kompilacija [RakiaBeat Ent.] 2010[Mp3]/16 DAS WEGAS-Svijet u meni (original mix).mp3
20250427 221357 thumb-gen: Done: 340 folders scanned, 340 thumbs created, 0 already in cache.

Regards
Reply


Messages In This Thread
can't update library - by Bert_K - 09-29-2024, 04:36 PM
RE: can't update library - by steve4star - 09-29-2024, 04:42 PM
RE: can't update library - by Bert_K - 09-29-2024, 05:27 PM
RE: can't update library - by Tim Curtis - 09-30-2024, 12:59 PM
RE: can't update library - by Nutul - 09-29-2024, 07:42 PM
RE: can't update library - by Bert_K - 09-29-2024, 09:24 PM
RE: can't update library - by Tim Curtis - 09-29-2024, 09:33 PM
RE: can't update library - by jonners - 09-30-2024, 09:00 AM
RE: can't update library - by Bert_K - 10-03-2024, 01:52 PM
RE: can't update library - by patrik96 - 03-25-2025, 08:39 AM
RE: can't update library - by Tim Curtis - 03-25-2025, 09:44 AM
RE: can't update library - by patrik96 - 03-25-2025, 03:17 PM
RE: can't update library - by patrik96 - 03-25-2025, 06:57 PM
RE: can't update library - by patrik96 - 03-26-2025, 05:35 AM
RE: can't update library - by Tim Curtis - 03-26-2025, 10:40 AM
RE: can't update library - by nosferatu_cat - 03-25-2025, 04:06 PM
RE: can't update library - by Tim Curtis - 03-25-2025, 06:28 PM
RE: can't update library - by Tim Curtis - 03-26-2025, 10:38 AM
RE: can't update library - by Tim Curtis - 03-26-2025, 12:31 PM
RE: can't update library - by Caesar - 03-25-2025, 05:09 PM
RE: can't update library - by patrik96 - 03-25-2025, 05:32 PM
RE: can't update library - by SirArmySuit - 03-25-2025, 05:35 PM
RE: can't update library - by Tim Curtis - 03-25-2025, 06:21 PM
RE: can't update library - by ils1974 - 03-25-2025, 06:56 PM
RE: can't update library - by Tim Curtis - 03-25-2025, 09:51 PM
RE: can't update library - by ils1974 - 03-25-2025, 11:50 PM
RE: can't update library - by DRONE7 - 03-26-2025, 05:54 AM
RE: can't update library - by ils1974 - 03-26-2025, 05:57 AM
RE: can't update library - by LaoZi - 04-23-2025, 05:01 PM
RE: can't update library - by Tim Curtis - 04-23-2025, 07:14 PM
RE: can't update library - by LaoZi - 04-24-2025, 06:11 PM
RE: can't update library - by Tim Curtis - 04-24-2025, 08:50 PM
RE: can't update library - by TheOldPresbyope - 04-24-2025, 09:31 PM
RE: can't update library - by LaoZi - 04-25-2025, 10:27 AM
RE: can't update library - by zbilic - 04-26-2025, 06:25 PM
RE: can't update library - by Tim Curtis - 04-26-2025, 07:32 PM
RE: can't update library - by zbilic - 04-26-2025, 08:46 PM
RE: can't update library - by Tim Curtis - 04-26-2025, 09:59 PM
RE: can't update library - by zbilic - 04-27-2025, 08:17 PM
RE: can't update library - by Tim Curtis - 04-27-2025, 10:27 PM
RE: can't update library - by zbilic - 04-28-2025, 05:45 AM
RE: can't update library - by uteroid - 05-02-2025, 12:49 AM
RE: can't update library - by Tim Curtis - 05-02-2025, 12:58 AM
RE: can't update library - by uteroid - 05-02-2025, 01:11 AM
RE: can't update library - by Tim Curtis - 05-02-2025, 10:32 AM
RE: can't update library - by uteroid - 05-02-2025, 08:24 PM
RE: can't update library - by Tim Curtis - 05-02-2025, 10:04 PM
RE: can't update library - by uteroid - 05-02-2025, 11:06 PM
RE: can't update library - by Tim Curtis - 05-03-2025, 12:44 AM
RE: can't update library - by uteroid - 05-03-2025, 12:49 AM
RE: can't update library - by Tim Curtis - 05-03-2025, 01:26 AM
RE: can't update library - by uteroid - 05-03-2025, 06:43 PM
RE: can't update library - by zbilic - 05-04-2025, 04:32 PM
RE: can't update library - by Tim Curtis - 05-04-2025, 09:46 PM
RE: can't update library - by uteroid - 05-05-2025, 03:32 PM
RE: can't update library - by Tim Curtis - 05-05-2025, 04:01 PM
RE: can't update library - by uteroid - 05-05-2025, 04:27 PM
RE: can't update library - by zbilic - 05-06-2025, 11:43 AM
RE: can't update library - by uteroid - 05-08-2025, 02:16 PM
RE: can't update library - by uteroid - 05-08-2025, 04:31 PM
RE: can't update library - by Nutul - 05-08-2025, 07:20 PM
RE: can't update library - by Tim Curtis - 05-05-2025, 09:00 PM

Forum Jump: