-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: SequelizeUniqueConstraintError during library scan and force re-scan #1932
Comments
I have found the cause for the issue I believe, when looking at the old metadata for one of my audiobooks it has the same author listed twice for the same book:
It seems if metadata is read from tags and they mention the same author twice then duplicate authors are added which the unique constraints in the database do not like. |
Ah yeah, makes sense. I'll fix this for the next patch |
For errors like this, it'd be great if the system logged the book (title or path) it choked on for easier debugging. Really glad this is fixed and hope to see it released soon! |
Yeah I keep meaning to put together a better error system, it'll save time debugging in the long run. |
Fixed in v2.4.0 |
Describe the issue
During library scan audiobookshelf crashes and the following exception is shown in the log.
The directory with the book contains a desc.txt and reader.txt.
I do not have duplicates of this book.
I cannot find the book or the author when searching after audiobookshelf has restarted.
Other books seem to be scanned and handled fine.
Steps to reproduce the issue
Not sure how to generally reproduce it but for me:
Audiobookshelf version
2.3.2
How are you running audiobookshelf?
Docker
The text was updated successfully, but these errors were encountered: