![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2016
Device: Android tablet and PC
|
Error when adding books to calibre
I had to re-install install calibre on my computer after my computer crashed and had to re-install Windows 10. The calibre library was preserved on an offsite NAS. However, since re-installing calibre on my computer, I keep getting an error message when I try to add a book to the library (and I can't even view books from the prior library.) Prior to the re-installation everything worked smoothly. I haven't changed any of the default calibre settings. I tried starting a fresh library and adding books from the old library, I get the same error code:
calibre, version 2.50.1 ERROR: Errors while adding: Failed to add any books, click "Show details" for more information ---------------------------------------------------------------------- Failed to add the book: Modern Buddhism 1: Sutra //nas_romeo/Books/Geshe Kelsang Gyatso/Modern Buddhism 1_ Sutra (8)/Modern Buddhism 1_ Sutra - Geshe Kelsang Gyatso.epub With error: Traceback (most recent call last): File "site-packages\calibre\gui2\add.py", line 369, in add_book File "site-packages\calibre\db\legacy.py", line 214, in create_book_entry File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock File "site-packages\calibre\db\cache.py", line 1519, in create_book_entry File "site-packages\calibre\db\cache.py", line 1248, in set_metadata File "site-packages\calibre\db\cache.py", line 1075, in update_path File "site-packages\calibre\db\backend.py", line 1530, in update_path File "site-packages\calibre\db\tables.py", line 130, in set_path File "site-packages\calibre\db\backend.py", line 808, in execute File "c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c", line 231, in resetcursor CantOpenError: CantOpenError: unable to open database file |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
It appears you are trying to add DIRECTLY from a NAS
Make a Local TEMPORARY copy and use that to add If your NAS HAS a copy of the Library Folder, Copy to a local folder with Calibre not running just point calibre to that Local (COPY) Folder |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2016
Device: Android tablet and PC
|
I tried to go directly from a local folder as suggested, same errors:
---------------------------------------------------------------------- Failed to add the book: Modern Buddhism 1: Sutra C:/Users/Romeo/Downloads/Modern Buddhism 1_ Sutra - Geshe Kelsang Gyatso.epub With error: Traceback (most recent call last): File "site-packages\calibre\gui2\add.py", line 369, in add_book File "site-packages\calibre\db\legacy.py", line 214, in create_book_entry File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock File "site-packages\calibre\db\cache.py", line 1519, in create_book_entry File "site-packages\calibre\db\cache.py", line 1248, in set_metadata File "site-packages\calibre\db\cache.py", line 1075, in update_path File "site-packages\calibre\db\backend.py", line 1530, in update_path File "site-packages\calibre\db\tables.py", line 130, in set_path File "site-packages\calibre\db\backend.py", line 808, in execute File "c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c", line 231, in resetcursor CantOpenError: CantOpenError: unable to open database file |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2016
Device: Android tablet and PC
|
So, I got the database working - the database file cannot be on the network, it has to be on the local system. The actual book files can be added from the network.
Is this something that could be updated in the future? I keep most of my files on my NAS for back up reasons, having to keep my library on the local system is a bit less functional. |
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
No: http://manual.calibre-ebook.com/faq....rked-drive-nas
(Do note that calibre v3.0 will hopefully be able to operate read-write from the Content Server -- so you may be able to get away with running calibre on the NAS.) |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2017
Device: iPhone
|
Recently I had this problem too. I now suspect it has to do with file locking, by SQLite via Samba. If I execute the following on my Samba server
sudo smbstatus | grep metadata.db when I'm having the problem, even hours after the last Calibre process has exited on my Windows machine I see that my machine is holding an EXCLUSIVE+BATCH lock on Calibre's metadata.db file located on my Samba server machine. Still investigating why ... Last edited by mccreigh; 07-11-2017 at 09:10 AM. Reason: Earlier misdiagnosis |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error adding new books to Calibre | enguerrand | Devices | 10 | 01-23-2014 11:07 PM |
Error adding books to Calibre | dfernandez | Library Management | 0 | 09-12-2012 05:08 PM |
Adding books Error | tdwish | Conversion | 4 | 01-22-2012 06:37 AM |
Adding Books to Calibre error | Ginnia | Library Management | 4 | 06-07-2011 04:13 AM |
error adding books | Beau | Calibre | 5 | 11-02-2010 12:03 PM |