![]() |
#1 |
Addict
![]() ![]() ![]() ![]() Posts: 223
Karma: 356
Join Date: Aug 2007
Device: Rocket; Hiebook; N700; Sony 505; Kindle DX ...
|
new database format
Hi Kovid,
I wrote you (and you answered me) about this before, but now I fear I'm missing something... I update calibre regularly with each new version - with Fedora install from http://calibre.kovidgoyal.net/download_fedora. Each time, at the 1st relaunch after the update, appears the window warning me about the new database format. If I now select as a location for the database the directory where it was previously stored, calibre crashes. The only option for me is, before selecting it, to rm * everything inside it. For me it isnt a big problem: I keep usually everything on the Reader, but it worries me for if I ever wanted to store something in that database... alessandro |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
what message does it crash with?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() Posts: 223
Karma: 356
Join Date: Aug 2007
Device: Rocket; Hiebook; N700; Sony 505; Kindle DX ...
|
in today's update (ver. 0.4.104):
Code:
Upgrading database from version: 1 Upgrading database from version: 2 Upgrading database from version: 3 Upgrading database from version: 4 Upgrading database from version: 5 Upgrading database from version: 6 Upgrading database from version: 7 Upgrading database from version: 8 Upgrading database from version: 9 Upgrading database from version: 10 Upgrading database from version: 11 Traceback (most recent call last): File "/usr/bin/calibre", line 8, in <module> load_entry_point('calibre==0.4.104', 'gui_scripts', 'calibre')() File "build/bdist.linux-i686/egg/calibre/gui2/main.py", line 1290, in main File "build/bdist.linux-i686/egg/calibre/gui2/main.py", line 237, in __init__ File "build/bdist.linux-i686/egg/calibre/library/database2.py", line 1163, in migrate_old File "build/bdist.linux-i686/egg/calibre/library/sqlite.py", line 106, in run sqlite3.IntegrityError: PRIMARY KEY must be unique after nuking the database directory content instead, I get this (strangely enough): Code:
Upgrading database to version 2... Upgrading database to version 3... Upgrading database to version 4... alessandro |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
does it still ask for the database location every time?
|
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() Posts: 223
Karma: 356
Join Date: Aug 2007
Device: Rocket; Hiebook; N700; Sony 505; Kindle DX ...
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Do you have the file library1.db somewhere on your computer?
|
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() Posts: 223
Karma: 356
Join Date: Aug 2007
Device: Rocket; Hiebook; N700; Sony 505; Kindle DX ...
|
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm, I'm at a loss in that case. Look for the file calibre.log and see if it contains anything useful
|
![]() |
![]() |
![]() |
#9 | |
Addict
![]() ![]() ![]() ![]() Posts: 223
Karma: 356
Join Date: Aug 2007
Device: Rocket; Hiebook; N700; Sony 505; Kindle DX ...
|
Quote:
Anyway, the correct behavior would be not to show anymore the "database migration window", once you go beyond version 0.4, right? Seems to me that somewhere the upgrade believes that I keep on using v. <0.4 ... alessandro |
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the database migration windows is shown only if the new format daabase doesn't exist and an old library1.db exists.
|
![]() |
![]() |
![]() |
#11 |
Addict
![]() ![]() ![]() ![]() Posts: 223
Karma: 356
Join Date: Aug 2007
Device: Rocket; Hiebook; N700; Sony 505; Kindle DX ...
|
I just noticed that - although I havent any old library1.db - I have, in my home, a metadata.db and a metadata.db-journal.
Tried to move them to /tmp, and that didnt solve anything. Erasing them, however, made me make some steps forward: at reinstall, it always asks for database migration, BUT doesnt crash anymore if I select a nonempty dir (or if I give it an escape) alessandro |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iPhone Convert epub format to kindle for iPhone format. Is it possible? | thecyberphotog | Apple Devices | 16 | 03-14-2013 01:04 AM |
What Database? | LadyLou | Calibre | 8 | 02-12-2010 06:32 AM |
Format of scribbles in the database | hanche | iRex | 2 | 12-12-2009 10:10 PM |
Kindle format to Sony PRS700 format | TinkerbellT | Kindle Formats | 9 | 06-23-2009 02:43 PM |
Master Format for multi-format eBook Generation? | cerement | Workshop | 43 | 04-01-2009 12:00 PM |