View Single Post
Old 03-30-2013, 10:15 PM   #1
neilio
Junior Member
neilio began at the beginning.
 
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
Anyone have any idea what I might try to get this working?
neilio is offline   Reply With Quote