|
|
Thread Tools | Search this Thread |
05-06-2024, 08:37 AM | #1 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Apr 2009
Device: none
|
Any way to recover from "apsw.BusyError: BusyError: database is locked"?
I googled this issue, and looks like I made a mistake by starting my library on a NAS. I spent half my weekend setting things up and fixing the tags in my books, and now after a reboot I can't open my library.
The error I get is below and I would appreciate any help you can provide. I would hate to have to start over, especially because I was aggressively deleting things after adding them to Calibre. Code:
calibre, version 7.10.0 ERROR: Failed to repair library: Restoring database failed, click "Show details" to see details Traceback (most recent call last): File "calibre/db/restore.py", line 156, in run File "calibre/db/restore.py", line 284, in create_cc_metadata File "calibre/db/restore.py", line 56, in __init__ File "calibre/db/backend.py", line 485, in __init__ File "calibre/db/backend.py", line 1443, in initialize_database File "src/cursor.c", line 240, in resetcursor apsw.BusyError: BusyError: database is locked |
05-06-2024, 09:50 AM | #2 |
Grand Sorcerer
Posts: 12,032
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Reboot both the NAS and your computer. If you are using Windows, reboot the computer in safe mode with networking. Then without starting calibre, copy the library from the NAS to a local disk. Reboot in normal mode if needed, then use calibre to open the local library. Immediately run calibre's "check library" to see what damage you are facing.
If calibre can't open the local library then try to rebuild it, as you apparently already tried to do with the NAS copy. |
05-06-2024, 03:16 PM | #3 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Apr 2009
Device: none
|
I was able to copy the library locally, and it seems to be intact. Thank you for you help.
I am going to set up calibre on my NAS right away. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Database is locked" - can't use network folders | robertseetzen | Library Management | 15 | 11-30-2022 03:17 PM |
Recover "Modified" column values after adding new coluns in library | John Maverick | Library Management | 11 | 07-27-2022 06:34 PM |
Calibre 4.1 BusyError: database is locked | Tanjamuse | Calibre | 3 | 10-10-2019 01:53 PM |
How to fix "Extra Titles" in Database in " Check Library - Problems Found | millan | Library Management | 33 | 07-16-2015 08:12 AM |
SONY pocket edition: "Device locked" + "charge battery" obstacles? | hermes | Devices | 3 | 06-02-2011 04:32 AM |