03-30-2013, 10:15 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2010
Device: Kindle, iPad
|
Mac version: corrupted database - restore fails
Was wondering if anyone could offer some advice or things to try to get my database working again. I recently switched machines and moved everything over using Carbon Copy Cloner.
Now when I try to launch Calibre I get the database corrupted error. When I try to run calibredb restore_database I get the following mysterious output: Code:
➜ MacOS ./calibredb restore_database -r Failed to parse options string: u"# \n\n### Begin group: DEFAULT\n \n# plugins\n# Installed plugins\nplugins = cPickle.loads('\\x80\\x02}q\\x01(U\\x0fInept PDF DeDRMUU/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/Inept PDF DeDRM.zipU\\x12Kindle CollectionsUX/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/Kindle Collections.zipq\\x02U\\x11eReader PDB 2 PMLUW/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/eReader PDB 2 PML.zipX\\r\\x00\\x00\\x00Quality CheckXS\\x00\\x00\\x00/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/Quality Check.zipU\\x12Ignoble Epub DeDRMUX/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/Ignoble Epub DeDRM.zipU\\x10Inept Epub DeDRMUV/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/Inept Epub DeDRM.zipU(K4PC, K4Mac, Kindle Mobi and Topaz DeDRMUn/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/K4PC, K4Mac, Kindle Mobi and Topaz DeDRM.zipX\\x0e\\x00\\x00\\x00Goodreads SyncXT\\x00\\x00\\x00/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/Goodreads Sync.zipX\\x0c\\x00\\x00\\x00View ManagerXR\\x00\\x00\\x00/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/View Manager.zipX\\t\\x00\\x00\\x00GoodreadsXO\\x00\\x00\\x00/Volumes/maude/Users/neilio/Library/Preferences/calibre/plugins/Goodreads.zipu.')\n \n# filetype mapping\n# Mapping for filetype plugins\nfiletype_mapping = cPickle.loads('\\x80\\x02}q\\x01.')\n \n# plugin customization\n# Local plugin customization\nplugin_customization = cPickle.loads('\\x80\\x02}q\\x01U(K4PC, K4Mac, Kindle Mobi and Topaz DeDRMX&\\x00\\x00\\x00B006A0A004224544,4GQWIY6*ET,RI8F83Q*WPs.')\n \n# disabled plugins\n# Disabled plugins\ndisabled_plugins = cPickle.loads('\\x80\\x02c__builtin__\\nset\\nq\\x01]\\x85Rq\\x02.')\n \n# enabled plugins\n# Enabled plugins\nenabled_plugins = cPickle.loads('\\x80\\x02c__builtin__\\nset\\nq\\x01]q\\x02U\\x16Apple device interfaceq\\x03a\\x85Rq\\x04.')\n \n\n\n" Traceback (most recent call last): File "site-packages/calibre/utils/config_base.py", line 192, in parse_string File "<string>", line 7, in <module> UnpicklingError: invalid load key, 'n'. Starting restoring preferences and column metadata ... 0% Cannot restore preferences. Backup file not found. ... 100% Restoring database failed with error: Traceback (most recent call last): File "site-packages/calibre/library/restore.py", line 116, in run File "site-packages/calibre/library/restore.py", line 279, in replace_db OSError: [Errno 2] No such file or directory |
03-30-2013, 10:20 PM | #2 |
creator of calibre
Posts: 44,415
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
delete the metadata.db file (back it up first). Then start calibre, calibre will create an empty metadata.db, then follow the instructions here: http://manual.calibre-ebook.com/faq....n-app-is-blank
Alternately, pass the --with-library option to calibredb restore_database since that erro ris coming from an inability to read the stored database path in a corrupted config file. Last edited by kovidgoyal; 03-30-2013 at 10:27 PM. |
Advert | |
|
03-30-2013, 10:31 PM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2010
Device: Kindle, iPad
|
Whoa. Fastest reply ever. And it worked!
Thanks. |
04-08-2013, 04:28 PM | #4 |
Groupie
Posts: 178
Karma: 134
Join Date: May 2010
Device: IREX DR1000
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Corrupted database | Qylie | Calibre | 8 | 08-28-2014 02:02 AM |
Restore Database fails - Exception: Something bad happened | bhoyt | Calibre | 10 | 12-07-2012 09:27 AM |
Corrupted database | garyft | Calibre | 3 | 05-13-2011 02:10 PM |
Calibre Mac & Windows (Corrupted Database) | ciscoswitch | Calibre | 4 | 09-08-2010 01:29 PM |