I have been using Anki for a long time (mostly on AnkiDroid, but also sometimes on the PC/Linux version), but have been experiencing some DbErrors recently. Some have been fixed by applying the patches in another post about factors, but now I’m stuck with another error:
anki.errors.DBError: DbError { info: "InvalidColumnType(3, \"mod\", Real)", kind: Other }
I also suspect there is a 2038-related bug with dates when I put some cards more than 12 years from now (because yes after some time you reach that kind of level of pushing back on cards you really know by heart), then corruption of the DB looks almost inevitable.
In the meantime, is there any way of restoring the DB as the affected decks are no longer usable at this point?
You should be able to post links to other posts, even as a new user. If it’s not working – you can `put it between backticks` (or click “Preformatted text” in the menu bar).
Thanks, I’ll keep that in mind. None of the other threads mention the “mod, Real” that I’m getting so it is probably something different. In any case, the “check database” keeps failing and no matter how much I check/sync/restart I still have the same error, unfortunately.
I guess I’ll try the manual export to file → import back to sqlite. My collection is quite big - many decks each containing many cards (32Mb anki2 file)… so I don’t expect this to be a walk in the park but I may just be too prudent/pessimistic. I’ll come back here to report when I’m done with that. In any case, thanks for the help so far!
Thanks, that fixed it! I then proceeded with the DB check which succeeded (reporting 5 fixed errors - but at least it didn’t crash). The whole collection seems to work perfectly fine now, thanks a lot!
NB: I haven’t used any plugin for a long time - and anyway I’m mostly using AnkiDroid.