-
Notifications
You must be signed in to change notification settings - Fork 350
Description
It has taken me a while to figure out what was happening and confirm my suspicion that it is also related to Album Rescan. I was having intermittent issue with Search and I am not sure I captured all the scenarios, but I think enough to reproduce and investigate.
Describe the bug
After an Album Rescan, full text search on words from Artist Name (see note below), Album Name, and Track Title fail with DBD::SQLite::db do failed: UNIQUE constraint failed:. In the attached log, I included searches using both Material and Default as they generate slight different error messages. It starts with a Album Rescan of a Ray Brown, Liver at Scullers followed later by a Rescan of U2, The Unforgettable Fire. The results of search vary, but consistently if the word exists in Artist Name, Album Name, or Track Title, then that section of the search provides no results.
Running a New & Change scan (even if there is nothing to scan) corrects the problem I am assuming because the FTS index is rebuilt.
*Artist Name specifics
Live at Scullers is tagged as follows:
ALBUM: Live at Scullers
ALBUMARTIST: [ Ray Brown Trio, Ray Brown ]
ARTIST: [ Ray Brown, Benny Green, Gregory Hutchinson ]
Searches on "Ray" or "Brown" result no Artists and the errors, but search for Trio, Benny, Green, Gregory, and Hutchinson all work as expected.
I tested with the U2 album which is simply tagged U2 for both ARTIST and ALBUMARTIST to differentiate if the issue was just occuring with the second more than one Album Artist or just the first Artist name which I guess is what is happening???
To Reproduce
Steps to reproduce the behavior:
- Rescan an Album
- Search on words from first Artist, Album name and Track Title.
- See error
Expected behavior
Search results that include all sections as expected
System Information (please complete the following information):
- Ubuntu x86_64
- Both Material and Default
- Chrome
- Version: 9.1.0 - 1769167449 @ Sat Jan 24 03:15:14 UTC 2026
- The test in the log results includes @darrell-k patched
schema.pmbut I saw this problem and error messages also before adding that patch, but had not nailed down the details yet.