[BUG] Regression of Lyrion "Recent albums" logic?
Hello, I seem to have the same issue again that I was having in https://github.com/NeptuneHub/AudioMuse-AI/issues/91. Has there been a regression in the logic for determining the number of albums to scan?
Thanks for the feedback. So the regression is that with Lyrion only 100 album are analyzed even if you put 0 as Number of Recent Albums: ? Can you confirm?
Thanks.
I spin up the last 0.7.4-beta image release today, with a clean database pointing to Lyrion, and it seems proceeding correctly showing this in the front-end:
Status Message: Launched: 117. Completed: 17/117. Active: 100. Skipped: 33/3408.
Did I missunderstood which regression you're dealing with? can you provide more description, version of AudioMuse/Lyrion and maybe logs?
Thanks.
Hello, That's indeed the issue I'm seeing, it only launches 100, pointing to an empty database. Good to know it's not happening at your end, I'll spin up a completely new environment to test again.
OK, I installed a completely fresh machine and still have this behaviour. Logs and docker-compose.yml attached. Contrary to what's indicated in the beginning of both logs, the DB is accessible, there are now 1097 records in the score and embedding tables, 1 record in map_projection_data
20251028_154103_worker.log 20251028_154137_app.log 20251028_docker-compose.yml
I prepared a new :devel image that I ask you to re-download for both Flask and Worker container and run the analysis with Number of Recent Albums: 0.
I just added more log, so it shouldn't fix the issue, but I hope it give me more information. Because for now in the log I only see that the analysis see only 100 album and it analyze them without raising error. So without having an error I don't know where is the problem.
Thansk !
I just add some additional error handling and raised the timeout and the retry of the call: I look that this changed from the version that work, and I don't want that some call that go in timeout have everything blocking. Updated :devel image will be ready in 20 minutes. Please if you can test and let me know. thanks.
4 log files from the latest :devel image. The oldest 2 are "as is", nothing changed in the environment except pulling the new image: this gives me no additional scanned files at all. The second set, I've first added a new album to Lyrion and scanned for new/changed files, and that album gets picked up.
I will now trigger a "Clear and rescan" in Lyrion. In theory, that will make the entire collection "new".
The complete clear and rescan of the Lyrion database indeed solved the issue at hand. I don't really understand why this would be the case, unless you only request music Lyrion considers "New".
AudioMuse-AI Analysis, with ALL the media server call the list of album sorted by new, this because you an potentially ask for scan only the last 100 added and save a couple of minute in "checking all".
In lyrion the call was made with sort:new parameter wit the intent of only sort for order. From what you're describing, instead, seems that in same cases it is not only ordering but also cut away the old track.
I wasn't able to reproduct the issue but in any case I added a fallback that in case the ordered list is smaller than the not ordered one, work directly with the not ordered. This when you ask to scan all the album, so shouldn't do big different.
The fallback fix is now in :devel hope that with this is solved. If this happen again, please let me know.
That would indeed probably solve the issue for the future. Closing this one now. Thanks for your swift support!
Thank for your support in troubleshooting and hope you enjoy AudioMuse-AI :)