|
|
#1 |
|
Member
![]() ![]() Posts: 22
Karma: 198
Join Date: Nov 2024
Device: Pocketbook Inkpad Color 3
|
Calibre v9 DB changes break calibre-web
Calibre v9 has made changes to its DB schema resulting in a broken calibre-web.
Calibre-web shows me an empty library, and when I click on e.g. 'About', it gives an error message about DB errors which include the fact that book.isbn is missing from the DB. DB changes were not documented in the website changelog, it would have been helpful to have those mentioned there. Now, I am guessing the only robust way to fix this is to wait for calibre-web's developer to update their software, but I'm just posting this here as I updated Calibre today and couldn't find anything online about this issue. I ended up downgrading Calibre back to 8.x, and restoring a backup of its database to get my calibre-web back. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,062
Karma: 29579868
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre's database schema is not a stable API. The only stable way to access the calibre database is via the calibre python APIs or the calibre server JSON APIs. Changes to the database schema are internal changes. Internal changes are not documented in the changelog. And just for the record three unused columns from the books table have been deleted. These columns were *never* used for anything and were just cluttering the schema. I have no idea what calibre web was using those columns for but yes, it needs to be changed.
|
|
|
|
|
|
#3 |
|
Member
![]() ![]() Posts: 22
Karma: 198
Join Date: Nov 2024
Device: Pocketbook Inkpad Color 3
|
Thank you so much for replying and explaining this Kovid!
I guess calibre-web accesses the database directly rather than use an API. I'll post on their github to hopefully get some traction their end. Thank you for all the work you put in! |
|
|
|
|
|
#4 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,283
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If you do find out what calibre-web was doing that caused it to break, please post here. And I hope calibre-web is not doing any writing of anything to the database. |
|
|
|
|
|
|
#5 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 552
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
I don't know Calibre-Web at all, but it is worth noting that the "correct" solution of using the Caliber API is not available in many real-life use cases.
Programs that use the Calibre data, such as Calibre Sync (and probably Calibre Web) typically do not access the actual machine Calibre is running on, but instead access the library on drobox or similar cloud storage. So they can only access the database file directly if they want the database info. They could a different strategy when accessing dropbox--one can build a simplified database from the directory structure information available in dropbox and use it to access the book thumbnails and covers and the actual books. (I do this because I don't like playing with db files.) I don't think this is workable for general use because tracing the directory structure is rather time-comsuming. |
|
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,062
Karma: 29579868
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Regardless, that does not mean the calibre database schema suddenly becomes stable API just because some programs choose to use it that way. Look at the file schema_upgrades.py in the calibre source code. You will see the schema has been changed over twenty times in the past decade+
|
|
|
|
|
|
#7 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 552
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
@kovidgoyal:
Apologies. I wasn't suggesting that you shouldn't make changes as you wish, particularly since Calibre warns against using various cloud services for the library. I was trying to explain why the APIs don't work for some "hacks". As I mentioned, for many purposes, analyzing the directory structure on the cloud-based memory is possible and doesn't suffer from the problems of a varying database structure. I've always thought that one of Calibre's best features is that the basic library can be "reconstructed" from the file structure--in the distant past I've actually had to use that feature! Again, thank you for creating and maintaining Calibre. |
|
|
|
|
|
#8 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 46112
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One, Aura H2O
|
I found a quick fix....here...
https://davidroessli.com/logs/2026/0...re-web-server/ This works in my case (Calibre-Web on Synology NAS DS 220+ - Container Manager). I synchronize my Calibre Database from my HardDisk to my NAS. Any time I synchronize it, I have to run the script using ssh to get the issue fixed. It's a temporary solution until Calibre-Web gets updated accordingly. |
|
|
|
|
|
#9 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,283
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=371848 |
|
|
|
|
|
|
#10 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 46112
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One, Aura H2O
|
|
|
|
|
|
|
#11 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 46112
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One, Aura H2O
|
Calibre-Web Automated is not an option for me. I don't like the dark look (cannot be changed anymore in the latest version) and the performance is weak in comparison to the original CW. I will keep on using the script to keep the original CW running.
|
|
|
|
|
|
#12 |
|
Weirdo
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,052
Karma: 12502580
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, reMarkable PaperPro
|
Use the nightly build of Calibre-web and you're also good.
|
|
|
|
|
|
#13 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,283
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#14 | |
|
Weirdo
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,052
Karma: 12502580
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, reMarkable PaperPro
|
Quote:
https://github.com/janeczku/calibre-...ent-3828194314 |
|
|
|
|
|
|
#15 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 46112
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One, Aura H2O
|
How can I set in "Container Manager" that I get the nigthlies instead of the latest versions? That's not clear for me.
UPDATE....found it my self....! I can confirm that the latest nightly 5a1f3d8e is working fine with Calibre 9.x. Last edited by Dirk-71; 02-06-2026 at 04:46 PM. Reason: Solved! |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best setup for desktop Calibre & hosted Calibre-web? | Retromantic | Library Management | 1 | 07-20-2025 12:51 PM |
| Books added via Calibre-Web not showing up in regular Calibre until restart | cactusboy | Library Management | 4 | 10-04-2023 11:53 AM |
| Did Calibre 5.0.1 break Calibre Companion? | jps1850 | Calibre | 0 | 09-29-2020 10:22 AM |
| View Shelves created from Calibre-web in calibre desktop | Rajesh75 | Library Management | 0 | 09-09-2020 09:47 AM |
| Calibre store: using a web browser instead of calibre's dialog | chaley | Calibre | 6 | 05-19-2011 06:08 PM |