Bugzilla – Bug 331844
Broken f-spot db prevents photo import
Last modified: 2007-10-24 14:33:42 UTC
I plugged-in my Canon Digital Rebel XTi (400D) and the import photo dialog appeared. When selecting the "Import Photo" button, nothing appeared to happen (i.e., f-spot never opened). Under further investigation, I tried to start f-spot from a command-line. It wouldn't start because a bunch of other f-spot processes were already running (I tried the importing multiple times). After "killall f-spot", I started it again from the command-line and got an error: Unhandled Exception: Mono.Data.SqliteClient.SqliteSyntaxException: file is encrypted or is not a database lewing let me know that I should install sqlite2 and run: f-spot-sqlite-upgrade After doing that, f-spot loads. And, when plugging my camera in, I am now able to run the importer (via ptp) successfully. I'm not sure how a non-techie user would ever figure out how to do this.
Looks like upgrading photos.db from SLED 10 SP1 -> openSUSE 10.3 works fine. Out of curiosity, I tried the following: 1. Opened f-spot on a clean SLED 10 SP1 machine 2. Imported a couple photos 3. Copied ~/Photos/ to a clean openSUSE 10.3 machine 4. Copied ~/.gnome2/f-spot/photos.db to openSUSE 10.3 5. Launched f-spot on openSUSE 10.3 from a terminal window and got this output: boyd@bht-opensuse-vm:~> f-spot Initializing Mono.Addins Starting new FSpot server Updating F-Spot Database Updated database from version 3 to 3.1 Updated database from version 3.1 to 4 Will add a roll_id field to photos! Will rename imports to rolls! Cleaning weird descriptions, fixes bug #324425. Updated database from version 4 to 5 Updated database from version 5 to 6 Database updates completed successfully.
*** This bug has been marked as a duplicate of bug 327122 ***