Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-05-2016, 08:27 PM   #1
rrfairley
Junior Member
rrfairley began at the beginning.
 
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
rrfairley is offline   Reply With Quote
Old 02-05-2016, 09:03 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
theducks is offline   Reply With Quote
Advert
Old 02-07-2016, 10:14 PM   #3
rrfairley
Junior Member
rrfairley began at the beginning.
 
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
rrfairley is offline   Reply With Quote
Old 02-13-2016, 02:37 PM   #4
rrfairley
Junior Member
rrfairley began at the beginning.
 
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.
rrfairley is offline   Reply With Quote
Old 02-14-2016, 01:51 AM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.)
eschwartz is offline   Reply With Quote
Advert
Old 07-11-2017, 04:46 AM   #6
mccreigh
Junior Member
mccreigh began at the beginning.
 
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
mccreigh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:11 AM.


MobileRead.com is a privately owned, operated and funded community.