Latest beta, database corruption possibly due to

sanderbartsantema2's Avatar


04 Jun, 2020 11:39 AM

I got this database error after using the delte card history add-on, now Anki gives the following on startup:

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 475, in loadCollection File "aqt/", line 510, in loadCollection File "anki/", line 55, in __init_ File "anki/", line 268, in reopen File "anki/", line 415, in open_collection File "anki/", line 248, in _run_command anki.rsbackend.StringError: JSONError { info: "duplicate field dyn at line 1 column 529" }

The weird thing is, I loaded a backup and Anki still wasn't able to open my database. I hope it's able to do so using an older beta, otherwise I still make backups of my collection using the crowdanki addon which uses git so I should be able to roll it back and provide more detailed information of what exactly went into the database which prevents anki opening the database. I would however need info what to look for.

  1. 1 Posted by sanderbartsante... on 04 Jun, 2020 11:41 AM

    sanderbartsantema2's Avatar

    I would be willing to share my collection, I don't think it contains any personal information but I'm not comfortable sharing it publicly nonetheless. If you'd want it Damien I can send it to you privately, just tell me how to.

  2. Support Staff 2 Posted by Damien Elmes on 04 Jun, 2020 11:49 AM

    Damien Elmes's Avatar

    I was able to open your AnkiWeb collection in 2.1.25 and then it opened fine in the latest version. After fixing the issue, please update to alpha2, and let me know if it happens again.

  3. 3 Posted by sanderbartsante... on 04 Jun, 2020 11:57 AM

    sanderbartsantema2's Avatar

    Do you mean stable 2.1.25 or a beta? I couldn't find 2.1.25 here and the latest stable is 2.1.26

  4. Support Staff 4 Posted by Damien Elmes on 04 Jun, 2020 11:58 AM

    Damien Elmes's Avatar

    .26 should behave the same

  5. 5 Posted by sanderbartsante... on 04 Jun, 2020 12:04 PM

    sanderbartsantema2's Avatar

    Thanks a ton Damien! This worked indeed. Do you have any idea if it's possibly if this was caused by the plugin?

  6. Support Staff 6 Posted by Damien Elmes on 05 Jun, 2020 09:08 AM

    Damien Elmes's Avatar

    Shouldn't be - more likely a bug in alpha 1. If it pops up again in alpha 2 please let me know.

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