Thank you for your donation!


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


Thread Closed 
Problem: Library update in progress message
#1
Hello!
I don't know how to create a new topic, I'll ask here.
I installed the new version 9.3.5, updated the library. I copied new albums to SDСARD, I want to update only this folder(Update this folder), but I get a message that "Library update is already in progress".

In version 8, "Refresh" from the main menu helped, in version 9 it doesn't help. I have to update the entire database, and that takes a long time.

In this case, the spinner does not spin, and the "mpc" command does NOT issue "Updating DB"
Rebooting doesn't help either
#2
Reboot and then post the entire contents of the startup log so people have some idea of your configuration.

The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from any of the Config screens. The startup log will be at the end of System info output.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#3
Code:
20250602 143815 worker: --
20250602 143816 worker: -- Start moOde 9 series
20250602 143816 worker: --
20250602 143816 worker: Daemonize:     complete
20250602 143822 worker: Linux startup: complete
20250602 143822 worker: Boot config:   ok
20250602 143822 worker: Boot folder:   ok
20250602 143822 worker: Radio table:   ok
20250602 143823 worker: PHP session:   cleaned
20250602 143823 worker: PHP session:   loaded
20250602 143825 worker: Package locks: applied
20250602 143826 worker: File check:    complete
20250602 143826 worker: Log to RAM:    on
20250602 143826 worker: Tmp to RAM:    on
20250602 143826 worker: Debug logging: off
20250602 143826 worker: --
20250602 143826 worker: -- System
20250602 143826 worker: --
20250602 143827 worker: Host name:     moode
20250602 143827 worker: RPi model:     Pi-4B 1.2 2GB
20250602 143827 worker: moOde release: 9.3.5 2025-05-25
20250602 143827 worker: RaspiOS:       12.11 Bookworm 64-bit
20250602 143827 worker: Linux Kernel:  6.12.25 64-bit
20250602 143827 worker: MPD version:   0.24.4
20250602 143827 worker: User id:       alex
20250602 143827 worker: Home folder:   /home/alex
20250602 143827 worker: Time zone:     Europe/Moscow
20250602 143827 worker: Kbd layout:    us
20250602 143827 worker: HDMI ports(s): on
20250602 143827 worker: HDMI-CEC:      off
20250602 143827 worker: Sys LED0:      on
20250602 143827 worker: Sys LED1:      on
20250602 143827 worker: Reduce power:  n/a
20250602 143827 worker: Fan control:   n/a
20250602 143827 worker: CPU governor:  ondemand
20250602 143827 worker: --
20250602 143827 worker: -- Network
20250602 143827 worker: --
20250602 143827 worker: Eth0
20250602 143827 worker: Ethernet: adapter exists
20250602 143827 worker: Ethernet: timeout off
20250602 143827 worker: Ethernet: address not assigned
20250602 143827 worker: Wlan0
20250602 143827 worker: Wireless: adapter exists
20250602 143827 worker: Wireless: country RU
20250602 143827 worker: Wireless: SSID    REDMI9
20250602 143827 worker: Wireless: other   None
20250602 143827 worker: Wireless: timeout up to 90 secs
20250602 143827 worker: Wireless: connect to REDMI9
20250602 143827 worker: Wireless: method  dhcp
20250602 143828 worker: Wireless: address 192.168.43.160
20250602 143828 worker: Wireless: netmask 255.255.255.0
20250602 143828 worker: Wireless: gateway 192.168.43.1
20250602 143828 worker: Wireless: pri DNS 192.168.43.1
20250602 143828 worker: Wireless: domain  none found
20250602 143828 worker: mDNS
20250602 143828 worker: Discover: IPv4 and IPv6
20250602 143828 worker: --
20250602 143828 worker: -- File sharing
20250602 143828 worker: --
20250602 143828 worker: SMB file sharing:  on
20250602 143828 worker: SMB password:      set
20250602 143828 worker: NFS file sharing:  off
20250602 143828 worker: DLNA file sharing: off
20250602 143828 worker: --
20250602 143828 worker: -- Special configs
20250602 143828 worker: --
20250602 143828 worker: Plexamp:          not installed
20250602 143828 worker: RoonBridge:       not installed
20250602 143828 worker: Allo Boss 2:      not detected, OLED script ok
20250602 143828 worker: Allo Piano 2.1:   not detected
20250602 143828 worker: IQaudIO DigiAMP+: not detected
20250602 143828 worker: RPi DigiAMP+:     not detected
20250602 143828 worker: Bluetooth:        session vars ok
20250602 143828 worker: --
20250602 143828 worker: -- ALSA debug
20250602 143828 worker: --
20250602 143828 worker: Cards:  0:vc4hdmi0        1:vc4hdmi1        2:DAC             3:empty          
20250602 143828 worker:         4:empty           5:empty           6:empty           7:empty          
20250602 143828 worker: Mixers: 0:(PCM)           1:none            2:(Digital)       3:none            
20250602 143828 worker:         4:none            5:none            6:none            7:none            
20250602 143828 worker: --
20250602 143828 worker: -- Audio configuration
20250602 143828 worker: --
20250602 143828 worker: Audio device:  2:Audiophonics ES9028/9038 DAC
20250602 143829 worker: ALSA card:     has not been reassigned
20250602 143829 worker: MPD config:    update not needed
20250602 143829 worker: ALSA output:   I2S
20250602 143829 worker: ALSA mode:     Direct (hw)
20250602 143829 worker: ALSA mixer:    Digital
20250602 143829 worker: ALSA volume:   100% (0.00dB)
20250602 143829 worker: ALSA maxvol:   100%
20250602 143829 worker: ALSA loopback: off
20250602 143829 worker: MPD mixer      Software
20250602 143829 worker: Integ audio:   vc4-kms-v3d
20250602 143829 worker: Audio formats: S16_LE, S32_LE
20250602 143829 worker: CamillaDSP:    off
20250602 143829 worker: CDSP volume:   0dB
20250602 143829 worker: CDSP volrange: 60dB
20250602 143829 worker: --
20250602 143829 worker: -- MPD startup
20250602 143829 worker: --
20250602 143830 worker: MPD service:        started
20250602 143830 worker: MPD port 6600:      accepting connections
20250602 143830 worker: MPD ALSA Default:   on
20250602 143830 worker: MPD ALSA Bluetooth: off
20250602 143830 worker: MPD HTTP Server:    off
20250602 143830 worker: MPD volume:         0
20250602 143830 worker: Saved MPD vol:      -1
20250602 143830 worker: Saved SRC vol:      0
20250602 143830 worker: MPD crossfade:      off
20250602 143830 worker: MPD ignore CUE:     no
20250602 143830 worker: MPD CDSP volsync:   off
20250602 143830 worker: --
20250602 143830 worker: -- Music sources
20250602 143830 worker: --
20250602 143830 worker: USB drive:      2Tb_Music (exfat)
20250602 143831 worker: USB drive:      MUSIC_Alex (ntfs)
20250602 143831 worker: NVMe drives:    none
20250602 143831 worker: SATA drives:    none
20250602 143831 worker: NAS sources:    none
20250602 143831 worker: --
20250602 143831 worker: -- Feature availability
20250602 143831 worker: --
20250602 143831 worker: Input select:    available, Source: MPD, Output: Audiophonics ES9028/9038 DAC
20250602 143831 worker: Bluetooth:       available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20250602 143831 worker: AirPlay:         available
20250602 143831 worker: Spotify Connect: available
20250602 143831 worker: Deezer Connect:  n/a
20250602 143831 worker: Squeezelite:     available
20250602 143831 worker: UPnP client:     available
20250602 143831 worker: Plexamp:         not installed, ALSA maxvol: 100%
20250602 143831 worker: RoonBridge:      not installed
20250602 143831 worker: Multiroom:       available
20250602 143831 worker: GPIO buttons:    available
20250602 143831 worker: Stream recorder: n/a
20250602 143831 worker: --
20250602 143831 worker: -- Security
20250602 143831 worker: --
20250602 143831 worker: Web SSH server:    on
20250602 143831 worker: XSS detection:     off
20250602 143831 worker: HTTPS mode:        available
20250602 143831 worker: --
20250602 143831 worker: -- Peripherals
20250602 143831 worker: --
20250602 143832 worker: Local display:   on
20250602 143832 worker: Chromium ver:    126.0.6478.164-rpt1
20250602 143832 worker: Chromium cfg:    directory ok
20250602 143832 worker: Screen blank     off
20250602 143832 worker: On-screen kbd:   on
20250602 143832 worker: Disable GPU:     off
20250602 143832 worker: HDMI orient:     landscape
20250602 143832 worker: HDMI 4K 60Hz:    off
20250602 143832 worker: DSI scn type:    none
20250602 143832 worker: DSI port:        1
20250602 143832 worker: DSI brightness:  255
20250602 143832 worker: DSI rotate:      0
20250602 143832 worker: Rotary encoder:  off
20250602 143832 worker: Triggerhappy:    off
20250602 143832 worker: LCD updater:     off
20250602 143832 worker: --
20250602 143832 worker: -- Miscellaneous
20250602 143832 worker: --
20250602 143832 worker: Software update:   Automatic check off
20250602 143832 worker: Auto-CoverView:    on
20250602 143832 worker: CoverView timeout: 60
20250602 143832 worker: Auto-shuffle:      off
20250602 143832 worker: Auto-play:         on, via playid 11
20250602 143832 worker: Maintenance task:  360 mins
20250602 143832 worker: Current view:      reset to Playback
20250602 143832 worker: Active flags:      all false
20250602 143832 worker: Reset flags:       skipped
20250602 143832 worker: Session check:     ok
20250602 143832 worker: --
20250602 143832 worker: -- Startup complete
20250602 143832 worker: --
20250602 143832 worker: Mount monitor:    started
20250602 143832 worker: Radio monitor:    off
20250602 143832 worker: Watchdog monitor: started
20250602 143832 worker: Responsiveness:   Default
20250602 143832 worker: Ready
#4
I don't see anything suspicious in the log. Its not obvious to me what might be causing your issue but maybe someone will be able to reproduce it and provide some insights.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#5
Apparently the update process did not report its completion. How does the system know that the library update is complete?
#6
@alexarz

In your log I see

Code:
20250602 143830 worker: USB drive:      2Tb_Music (exfat)
20250602 143831 worker: USB drive:      MUSIC_Alex (ntfs)

It's possible your problem originates with the contents of these USB drives. Do you see any suspicious messages in the mpd log? (it's contained in /var/log/mpd/log).

What happens if you disconnect these drives and again try updating the library? 

If the operation now completes satisfactorily, I'd try connecting only one USB drive at a time and again updating the library. In each case, it can be useful to monitor the mpd log as the update takes place ('tail -f /var/log/mpd/log'). If necessary, you can increase mpd's logging level to something greater than the default "Notice" (I usually choose "Verbose" if I'm having trouble. Don't forget to reset to default when done debugging.)

Regards,
Kent
#7
I had a similar problem several times.
I closed the UI browser page and reopened it.
This solved the problem for me and I was able to update the library properly.

#8
The "Update library in progress" message is shown in these two scenarios:
1. you update the library, and before it finishes (for whatever reason) you invoke it again.
2. the process does not end correctly (so the UI does not get informed about it).

In case of (1) it eventually ends correctly, and you can invoke it again
In case of 2, a UI refresh (F5 / Ctrl-F5) fixes it, as it resets the update-library-in-progress flag.
#9
Thanks to everyone for the advice.
Disconnected all USB drives, updated the library, everything worked as it should.
Connected one 1 TB drive, updated the library, the process completed normally, but for some time the system was heavily loaded, although the "mpc" command did NOT issue "Updating the DB" and prep -c thumb-gen.php issued 0.
Then everything froze, had to restart everything.
But, in the end, everything worked as it should.
Connected a second 2 TB drive, the same thing happened as in the case of the first drive, also turned off the power after the freeze.
And for the second day, the top command shows a load average greater than 4. Again, the system is heavily loaded with something, and updating a separate folder does not work.
There is nothing in the logs except update, remove and Discarding ID3 tags because more suitable tags were found

mediainfo - what kind of process is this?
It takes up a lot of resources
And also kswapd0

I refreshed the page in the browser, restarted the browser, cleared the cache - it doesn’t help.

In Thumbnail Generator - Done:2334 folders scanned, 2322 thumbs created, 12 alredy in cache

This morning I turned it on - after one hour of work the average load is 10-11, and playback is not enabled.
Main processes - chromium-browse, kswapd0 and mediainfo
#10
(06-04-2025, 05:35 AM)alexarz Wrote: Thanks to everyone for the advice.
Disconnected all USB drives, updated the library, everything worked as it should.
Connected one 1 TB drive, updated the library, the process completed normally, but for some time the system was heavily loaded, although the "mpc" command did NOT issue "Updating the DB" and prep -c thumb-gen.php issued 0.
Then everything froze, had to restart everything.
But, in the end, everything worked as it should.
Connected a second 2 TB drive, the same thing happened as in the case of the first drive, also turned off the power after the freeze.
And for the second day, the top command shows a load average greater than 4. Again, the system is heavily loaded with something, and updating a separate folder does not work.
There is nothing in the logs except update, remove and Discarding ID3 tags because more suitable tags were found

mediainfo - what kind of process is this?
It takes up a lot of resources
And also kswapd0

I refreshed the page in the browser, restarted the browser, cleared the cache - it doesn’t help.

In Thumbnail Generator - Done:2334 folders scanned, 2322 thumbs created, 12 alredy in cache

This morning I turned it on - after one hour of work the average load is 10-11, and playback is not enabled.
Main processes - chromium-browse, kswapd0 and mediainfo

If those TB drives are mechanical, I think you better use a powered USB hub... they may draw a lot of current.


Forum Jump: