Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-12-2018, 05:55 AM   #1
Zepa77
Junior Member
Zepa77 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2018
Location: France
Device: Kindle
CantOpenError: unable to open database file

Hi,

I've downloaded Kindle 1.17.44170, then downloaded my books, But when i drag them over to Calibre, I get the following error message. I am singularly nontechnical, so have no idea what to do about it. I assume I've done something wrong in the download, but can't figure out what.

calibre, version 3.19.0
ERROR: Errors while adding: Failed to add any books, click "Show details" for more information


----------------------------------------------------------------------
Failed to add the book: Devil Water
C:\Users\zepa7\AppData\Local\Temp\calibre_vkfgjj\p rehzx_add_books\0\B00IRIFYF8_EBOK.azw3
With error:
Traceback (most recent call last):
File "site-packages\calibre\gui2\add.py", line 399, in add_book
File "site-packages\calibre\db\legacy.py", line 224, in create_book_entry
File "site-packages\calibre\db\cache.py", line 63, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1566, in create_book_entry
File "site-packages\calibre\db\cache.py", line 1287, in set_metadata
File "site-packages\calibre\db\cache.py", line 1113, in update_path
File "site-packages\calibre\db\backend.py", line 1574, in update_path
File "site-packages\calibre\db\tables.py", line 135, in set_path
File "site-packages\calibre\db\backend.py", line 845, in execute
File "c:\t\t\apsw-j6gj96\apsw-3.13.0-r1\src\cursor.c", line 236, in resetcursor
CantOpenError: CantOpenError: unable to open database file
Zepa77 is offline   Reply With Quote
Advert
Old 03-12-2018, 05:59 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 53,672
Karma: 201874708
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage, Yotaphone 2
It looks to me more like a calibre installation problem. But I don't know what.
pdurrant is offline   Reply With Quote
Old 03-12-2018, 06:14 AM   #3
Zepa77
Junior Member
Zepa77 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2018
Location: France
Device: Kindle
It was a recent installation (few days ago) on a new 'clean' machine - does a re-install sound like a good idea?
Zepa77 is offline   Reply With Quote
Old 03-12-2018, 08:24 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 32,918
Karma: 10034422
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error is typically caused by an antivirus program blocking calibre from accessing its database. Either disable it or exclude the calibre library folder from its scans.
kovidgoyal is offline   Reply With Quote
Old 03-12-2018, 08:24 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,575
Karma: 13662888
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Zepa77 View Post
I've downloaded Kindle 1.17.44170, then downloaded my books, But when i drag them over to Calibre, I get the following error message. I am singularly nontechnical, so have no idea what to do about it. I assume I've done something wrong in the download, but can't figure out what.
...~~~...
CantOpenError: CantOpenError: unable to open database file
Kovid has always said the following about this error.

Quote:
Originally Posted by kovidgoyal View Post
Something, most likely an antivirus program is blocking calibre from opening the metadata.db file in its library folder.
One user solved it by the following:

Quote:
Originally Posted by rfcdvc45 View Post
Thanks to all of you who helped me on this one. Yes, it was in fact something blocking the Calibre files, and yes, it was in fact Defender! Turns out it was a new feature in Defender that shipped with the latest Fall Creators Update v1709. The feature, which I had forgotten, and which I had enabled is called 'Controlled Folder Access.' It is supposed to help guard against potential ransomware attacks. Anyway, when I realized that this was the blocking agent, I created an exception for Calibre. Once unblocked, I created a new Calibre Library, copied back the book folders into it. And finally I had to use the 'Restore Database' tool in Calibre. Now all's well again.

You guys at MobileRead rock! Couldn't have done it without your help.
DoctorOhh is offline   Reply With Quote
Old 03-12-2018, 10:58 AM   #6
Zepa77
Junior Member
Zepa77 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2018
Location: France
Device: Kindle
Hi All,

It was MacAfee (which came with the PC and which my partner did immediately tell me to remove..... I shall listen to her in future --- maybe :-) )

Thank you all very much; I don't think I have ever had such fast responses from a forum, especially one I only joined today! Brilliant.
Zepa77 is offline   Reply With Quote
Old 03-12-2018, 12:12 PM   #7
Zepa77
Junior Member
Zepa77 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2018
Location: France
Device: Kindle
Sigh.

Now I am just confused. Having added a few books successfully, I downloaded the remainder of my Amazon books, at which point they again started to get the same error message. The anti-virus is off, so I'm wondering what i did to 'break' calibre again and if I need to do the 'restore database' referred to by DoctorOhh above. However, can't find that. Apologies for being a pain, but this is bugging the heck out of me....
Zepa77 is offline   Reply With Quote
Old 03-12-2018, 12:28 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 4,492
Karma: 21301182
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by Zepa77 View Post
Sigh.

Now I am just confused. Having added a few books successfully, I downloaded the remainder of my Amazon books, at which point they again started to get the same error message. The anti-virus is off, so I'm wondering what i did to 'break' calibre again and if I need to do the 'restore database' referred to by DoctorOhh above. However, can't find that. Apologies for being a pain, but this is bugging the heck out of me....
You might want to check the Dealing with Kindle for PC/Mac 1.19 and KFX in calibre sticky.
DNSB is offline   Reply With Quote
Old 03-12-2018, 01:24 PM   #9
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 53,672
Karma: 201874708
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage, Yotaphone 2
Quote:
Originally Posted by Zepa77 View Post
Sigh.

Now I am just confused. Having added a few books successfully, I downloaded the remainder of my Amazon books, at which point they again started to get the same error message. The anti-virus is off, so I'm wondering what i did to 'break' calibre again and if I need to do the 'restore database' referred to by DoctorOhh above. However, can't find that. Apologies for being a pain, but this is bugging the heck out of me....
Are you certain it's really the same error?

Are you certain your Anti-virus hasn't turned itself back on?
pdurrant is offline   Reply With Quote
Old 03-12-2018, 05:11 PM   #10
Zepa77
Junior Member
Zepa77 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2018
Location: France
Device: Kindle
Quote:
Originally Posted by DNSB View Post
That is the thread I started with, and it seemed to be going fine until..... (and so far as I can tell both Defender and McAfee are turned off).

calibre, version 3.19.0
ERROR: Errors while adding: Failed to add any books, click "Show details" for more information


----------------------------------------------------------------------
Failed to add the book: A Time of Hope (Part Five of The People of this Parish Saga)
C:\Users\zepa7\AppData\Local\Temp\calibre_4hijxg\5 6rraj_add_books\0\B00CDT5E3O_EBOK.mobi
With error:
Traceback (most recent call last):
File "site-packages\calibre\gui2\add.py", line 399, in add_book
File "site-packages\calibre\db\legacy.py", line 224, in create_book_entry
File "site-packages\calibre\db\cache.py", line 63, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1566, in create_book_entry
File "site-packages\calibre\db\cache.py", line 1287, in set_metadata
File "site-packages\calibre\db\cache.py", line 1113, in update_path
File "site-packages\calibre\db\backend.py", line 1574, in update_path
File "site-packages\calibre\db\tables.py", line 135, in set_path
File "site-packages\calibre\db\backend.py", line 845, in execute
File "c:\t\t\apsw-j6gj96\apsw-3.13.0-r1\src\cursor.c", line 236, in resetcursor
CantOpenError: CantOpenError: unable to open database file
Zepa77 is offline   Reply With Quote
Old 03-12-2018, 05:21 PM   #11
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 10,154
Karma: 9778562
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Zepa77 - to get rid of McAfee entirely you may need to download and run a 'utility' from McAfee. I don't know whether that still applies, but it did the last time I needed to get rid of it from someone's system. Search the Web for "Remove McAfee".

BR
BetterRed is offline   Reply With Quote
Old 03-12-2018, 09:02 PM   #12
rwmcafee
Enthusiast
rwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it is
 
Posts: 47
Karma: 2024
Join Date: Apr 2011
Device: none
And don't worry. It won't remove me.
rwmcafee is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 2.7 Unable to open Database file Gordo29 Devices 22 11-04-2016 11:10 PM
Help!!!! CantOpenError: unable to open database file cbbs70a Library Management 2 06-11-2015 11:11 AM
unable to open database file mihal.v Calibre 3 08-16-2014 09:44 AM
Unable to open database file wladdy Library Management 6 08-28-2012 05:04 AM
Unable to open database file JulieR Calibre 2 04-24-2009 04:40 AM


All times are GMT -4. The time now is 03:58 PM.


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