Ticket #4264 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

Intermittent Database Exception

Reported by: jt421 Owned by: kovidgoyal
Priority: minor Milestone:
Component: Default Version: trunk
Keywords: SQL Cc:

Description

Recently, I upgraded my computer from Vista to Windows 7 and brought my library with me. Since then, I have been having intermittent, but frequent issues trying to make metadata changes and add books.

Specifically, when making a change ~50% of the time I get an Unhandled exception and the change fails. If I am editing a book individually, Calibre stays on the edit screen and I can try again. This usually works after trying 2-3 times. If I am doing a bulk change, or importing multiple books, the change/import fails and only some portion of the books gets the change. (See below for an example of the error message)

I have looked through the forum and bug tracker, and I have eliminated some of the easy answers (spaces in path, clean reinstall, Advanced->Check database integrity, anti-virus/backup software, etc.).

Since the problem occurs most frequently when I am doing multiple changes quickly, either via bulk change or typing fast, it looks like a database access problem.

Even with the database integrity check could it be a corrupted database? Can I rebuild the database without loosing all of my information?

Any help would be MUCH appreciated!


The error:

ERROR: ERROR: Unhandled exception: <b>Database Exception?</b>:unable to open database file Remote Traceback? (most recent call last): File "site-packages\calibre\library\sqlite.py", line 142, in run Operational Error?: unable to open database file

Traceback (most recent call last): File "site-packages\calibre\gui2\dialogs\metadata_bulk.py", line 106, in sync File "site-packages\calibre\library\database2.py", line 1216, in set_publisher File "site-packages\calibre\library\sqlite.py", line 171, in run Database Exception?: unable to open database file Remote Traceback? (most recent call last): File "site-packages\calibre\library\sqlite.py", line 142, in run Operational Error?: unable to open database file

Change History

comment:1 Changed 8 months ago by kovidgoyal

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in branch trunk. The fix will be in the next release.

Note: See TracTickets for help on using tickets.