Database Corrupted

My Anki doesn’t work and keep showing the database corrupt extended _code 11. I have tried all other options to resolve the issue but still I can’t fix it. Even when I am trying to Backing up it’s loading and never finish. My Shelf exam is around the corner and I really need your help.

Cross posted (probably): Reddit - The heart of the internet

Does Anki start and present you with the Deck collection (i.e. the front page)?
Have you tried Tools, Check Database?

Yes, It does show the front page but when I click to do the cards it shows the same errors.
I checked Tools and database it says the Database is corrupted. I have tried to revert the backup up keep loading and I had to Force Anki to quit.

Not sure if you understood this correctly, you’re being asked to select Tools > Check database. Do you still face the problem after it?

yes, I still have problem. It says “collection file is corrupt. Please restore from automatic back up”

If you’re past the point where Check Database can help – your other options are:

  • Restore from a backup (which I know you’re already trying) – Are you trying the same backup file each time and it’s failing? Or after trying one that fails, are you stepping back to the one before that the next time you try?
  • Create a new profile and import the backup COLPKG file into there instead. (You can find your backups folder in your current profile.) Start with importing the most recent one (before the corruption) – but if that doesn’t work, delete that profile, and create another new profile to try importing the next one before that.
    • If you can find one that works and you’re happy with it (run Check Database to be sure) – congrats, this is your new profile!
    • You’ll need to move the collection.media folder over from your old profile, and set up syncing. Then you can delete your old profile.
  • If you haven’t synced since this corruption was noted, go to Preferences > Syncing – force the next sync to be a one-way sync, and download from AnkiWeb. [You’ll lose anything you’ve done here since your last sync.]
    • If you have synced this device, but haven’t synced your other device, force the one-way sync from there and upload to AnkiWeb. Then you can receive that sync on this device.

You can try the above in any order, but if nothing will work, you can try to repair your database – Managing Files - Anki Manual .

3 Likes

Thank you SO much! It works perfectly now

For the good of the next user to find this thread – do you want to say what got it working?

2 Likes

The only way it worked was the following, I have tried all other options.

  • If you have synced this device, but haven’t synced your other device, force the one-way sync from there and upload to AnkiWeb. Then you can receive that sync on this device.
2 Likes