Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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
Old 03-30-2013, 10:20 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Advert
Old 03-30-2013, 10:31 PM   #3
neilio
Junior Member
neilio began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2010
Device: Kindle, iPad
Whoa. Fastest reply ever. And it worked!

Thanks.
neilio is offline   Reply With Quote
Old 04-08-2013, 04:28 PM   #4
Giuseppe Chillem
Groupie
Giuseppe Chillem doesn't litterGiuseppe Chillem doesn't litter
 
Giuseppe Chillem's Avatar
 
Posts: 178
Karma: 134
Join Date: May 2010
Device: IREX DR1000
Quote:
Originally Posted by neilio View Post
Whoa. Fastest reply ever. And it worked!

Thanks.
Kovid is a great guy....
Giuseppe Chillem is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 09:44 AM.


MobileRead.com is a privately owned, operated and funded community.