Anki unable to open my collection file help! My most recent backup was from two months ago apparently my Anki has been broken for a while and I don't want to lose everyhting

Hannah's Avatar


28 Oct, 2019 01:17 AM

Anki was unable to open your collection file. If problems persist after restarting your computer, please use the Open Backup button in the profile manager.

Debug info:
Traceback (most recent call last):
  File "aqt/", line 327, in loadCollection
  File "aqt/", line 351, in _loadCollection
  File "anki/", line 33, in Collection
  File "anki/", line 58, in _upgradeSchema
  File "anki/", line 65, in scalar
  File "anki/", line 32, in execute
sqlite3.DatabaseError: database disk image is malformed

  1. 1 Posted by Hannah on 28 Oct, 2019 01:18 AM

    Hannah's Avatar

    I also was given this prompt when I went into preferences
    Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
    Platform: Mac 10.14.6
    Flags: frz=True ao=False sv=?

    Caught exception:
      File "aqt/", line 859, in onPrefs
      File "aqt/", line 74, in open
    <class 'RuntimeError'>: super-class __init__() of type Preferences was never called

  2. Support Staff 2 Posted by Damien Elmes on 28 Oct, 2019 10:39 PM

    Damien Elmes's Avatar

    Were you syncing with AnkiWeb? If so, you may be able to recover your data from there.

    Backups are created each time you close Anki, so I can not think of a reason why you would be missing them unless you had customized the backup preferences. Did you try the Open Backup button?

Comments are closed, but you can start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac