![]() |
[PROBLEM] Library doesn't update. - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] Library doesn't update. (/showthread.php?tid=3305) |
Library doesn't update. - Zinck84 - 12-29-2020 Hi, first of all I would like to thank you all for all the work in Moode, it is awesome. Now with the issue. I use two raspberrys 3B witch the latest moode and a NAS to store my files. Since a couple of updates I have experienced a problem trying to update the library. Whe I try to update it the Library update in progress message. There is no update running as far as I know, and it doesn't matter if I reboot the system, it always shows the same message. Trying to update a single file will show the same result. The only why it works is to completly regenerate the library each time I add an album or make some change in the folders, but I have a fairly large collection and takes a lot of time. I have tried different browsers and they always show the same results. Is there a way to force the updates by ssh or any other way than a complete regen of the library? Thanks for your time. RE: Library doesn't update. - Tim Curtis - 12-29-2020 The Library update process is recorded in the Moode log. Below is what it typically looks like. Code: 20201229 094842 worker: Job update_library You can examine the Moode log using the command below. Code: moodeutl -l RE: Library doesn't update. - Zinck84 - 12-29-2020 (12-29-2020, 02:53 PM)Tim Curtis Wrote: The Library update process is recorded in the Moode log. Below is what it typically looks like.Thanks for the reply. I was going to post that I have been able to update the library after restarting MPD. But I have not been able to do it again, the Library update in progress message is back all the time. This is the log: 20201229 141201 readMpdResponse(): error: response $str[0]=(ACK [5@0] {} unknown command "undefined") 20201229 141415 waitWorker(): Start (sys-config, w_active=0) 20201229 141415 waitWorker(): End (sys-config, w_active=0) 20201229 141736 waitWorker(): Start (sys-config, w_active=1) 20201229 141736 worker: Job clearplayhistory 20201229 141737 waitWorker(): Wait (1) 20201229 141737 waitWorker(): End (sys-config, w_active=0) 20201229 141740 waitWorker(): Start (sys-config, w_active=1) 20201229 141741 waitWorker(): Wait (1) 20201229 141742 worker: Job clearsyslogs 20201229 141742 waitWorker(): Wait (2) 20201229 141742 waitWorker(): End (sys-config, w_active=0) 20201229 141747 waitWorker(): Start (sys-config, w_active=1) 20201229 141748 worker: Job compactdb 20201229 141748 waitWorker(): Wait (1) 20201229 141748 waitWorker(): End (sys-config, w_active=0) 20201229 141757 watchdog: Info: Reducing PHP fpm worker pool 20201229 141832 waitWorker(): Start (snd-config, w_active=0) 20201229 141832 waitWorker(): End (snd-config, w_active=0) 20201229 141902 waitWorker(): Start (snd-config, w_active=1) 20201229 141903 waitWorker(): Wait (1) 20201229 141903 worker: Job upnpsvc 20201229 141904 waitWorker(): Wait (2) 20201229 141904 waitWorker(): End (snd-config, w_active=0) 20201229 141925 waitWorker(): Start (mpd-config, w_active=0) 20201229 141925 waitWorker(): End (mpd-config, w_active=0) 20201229 142047 readMpdResponse(): error: fgets failure () 20201229 142115 waitWorker(): Start (snd-config, w_active=0) 20201229 142115 waitWorker(): End (snd-config, w_active=0) 20201229 142115 waitWorker(): Start (snd-config, w_active=0) 20201229 142115 waitWorker(): End (snd-config, w_active=0) 20201229 142140 waitWorker(): Start (snd-config, w_active=1) 20201229 142141 waitWorker(): Wait (1) 20201229 142141 worker: Job upnpsvc 20201229 142142 waitWorker(): Wait (2) 20201229 142142 waitWorker(): End (snd-config, w_active=0) 20201229 142150 waitWorker(): Start (snd-config, w_active=1) 20201229 142151 waitWorker(): Wait (1) 20201229 142151 worker: Job mpdrestart 20201229 142152 waitWorker(): Wait (2) 20201229 142152 waitWorker(): End (snd-config, w_active=0) 20201229 142203 worker: Job update_library 20201229 142203 mpdindex: Start 20201229 142203 thmcache: Start 20201229 142204 thmcache: Priority: Embedded cover 20201229 142204 thmcache: Res,Qual: Auto 20201229 142204 thmcache: Px ratio: 1 20201229 142204 thmcache: Th width: 100 20201229 142204 thmcache: Thm qual: 75 20201229 142204 thmcache: Scanning: NAS, SDCARD, UPNP 20201229 142601 thmcache: Done: 8534 folders scanned, 15 thumbs created, 8519 al ready in cache. 20201229 142945 waitWorker(): Start (sys-config, w_active=0) 20201229 142945 waitWorker(): End (sys-config, w_active=0) 20201229 143747 mpdindex: Done: indexed 8297 artists, 8188 albums, 190034 songs 20201229 143747 worker: Job update_library done 20201229 144017 waitWorker(): Start (sys-config, w_active=0) 20201229 144017 waitWorker(): End (sys-config, w_active=0) 20201229 182642 waitWorker(): Start (sys-config, w_active=0) 20201229 182642 waitWorker(): End (sys-config, w_active=0) 20201229 182707 waitWorker(): Start (sys-config, w_active=0) 20201229 182707 waitWorker(): End (sys-config, w_active=0) RE: Library doesn't update. - Tim Curtis - 12-29-2020 Prolly hitting some resource limit with such a large number of songs. I would turn debug logging off then reboot and then post System info (in a code box for readability). RE: Library doesn't update. - Zinck84 - 12-29-2020 (12-29-2020, 06:24 PM)Tim Curtis Wrote: Prolly hitting some resource limit with such a large number of songs. Here it is: Code: 20201229 221444 worker: -- Start I tried to add an album to try the update, it also failed. If the problem is the number of songs, probable not much can be done then. Anyway, some times it works so I'll cross my fingers. Thanks a lot. RE: Library doesn't update. - Tim Curtis - 12-29-2020 Menu, Configure, System Menu, System info That will show the current disk and MPD resource allocations. RE: Library doesn't update. - TheOldPresbyope - 12-29-2020 Don’t forget to expand the file system. RE: Library doesn't update. - Zinck84 - 12-29-2020 (12-29-2020, 10:14 PM)Tim Curtis Wrote: Menu, Configure, System First off all, excuseme if I'm a little slow with all this, english is not my native language and I don't know much linux. Thanks for your time. I have looked in the system info and the only thing I thik affecst resources if in the image. Also, using df -h in the terminal it shows me this results: Code: Filesystem Size Used Avail Use% Mounted on As I said, I'm no expert so excuse me if this is the wrong info. But shouldn't the aviable memory be enough to list the files in the library? Thanks again for your help. RE: Library doesn't update. - Zinck84 - 12-30-2020 I tried expanding the file system too, so now there like 3GB free in the root. The update worked once. But I tried again after a while to be sure and then it didn't... Taking a look and the log after restarting the MPD I noticed that there are no changes in it when I press update. Code: 20201230 114643 mpdindex: Start It seems like it doesn't recieve the order at all. Using mpc update in the terminal by it works, so I will do it that way. Don't know if mark this as solved, though. ![]() Thanks again for your help, have a nice new year. RE: Library doesn't update. - TheOldPresbyope - 12-30-2020 @Zinck84 I wouldn't mark it solved yet. We still don't know why the update job doesn't reliably start for you. In particular, I don't believe we have enough information to just dismiss your issue as being a consequence of your library being so big. I have a much more modest NAS, at the moment just 5800 songs. Whether or not I first restart mpd (and I don't understand why you are doing that) I see the "worker: Job update_Library" line appear in the moOde log each time I click "Update library" in the moOdeUI. This is followed by the usual output until "worker: Job update_library done". I'm trying to think where to plant some software probes to help resolve this. If I bump the MPD Log level to Verbose (bottom of the MPD Config panel) I get an avalanche of messages in the MPD log (/var/log/mpd/log), depending on what else is going on, but among them I reliably see something like Code: Dec 30 14:18 : client: [12] process command "update" I assume you see the same when you run "mpc update" from the command line. Likewise, you should see the same when you "Update library" from the moOdeUI. And please don't worry about English vs whatever. I'd love to be able to carry on a technical conversation in some other language as well as you are in English. Regards, Kent |