AudioMuse-AI icon indicating copy to clipboard operation
AudioMuse-AI copied to clipboard

[BUG] Regression of Lyrion "Recent albums" logic?

Open bakker opened this issue 1 year ago • 11 comments

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?

bakker avatar Oct 26 '25 18:10 bakker

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.

NeptuneHub avatar Oct 26 '25 20:10 NeptuneHub

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.

NeptuneHub avatar Oct 26 '25 21:10 NeptuneHub

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.

bakker avatar Oct 27 '25 05:10 bakker

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

Image

20251028_154103_worker.log 20251028_154137_app.log 20251028_docker-compose.yml

bakker avatar Oct 28 '25 15:10 bakker

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 !

NeptuneHub avatar Oct 28 '25 18:10 NeptuneHub

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.

NeptuneHub avatar Oct 28 '25 19:10 NeptuneHub

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".

20251028_212105_worker.log 20251028_212101_app.log

20251028_213928_app.log 20251028_213932_worker.log

bakker avatar Oct 28 '25 21:10 bakker

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".

Image

bakker avatar Oct 29 '25 07:10 bakker

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.

NeptuneHub avatar Oct 29 '25 08:10 NeptuneHub

That would indeed probably solve the issue for the future. Closing this one now. Thanks for your swift support!

bakker avatar Oct 29 '25 09:10 bakker

Thank for your support in troubleshooting and hope you enjoy AudioMuse-AI :)

NeptuneHub avatar Oct 29 '25 09:10 NeptuneHub