ankicommunity / ankicommunity-sync-server

A personal Anki sync server (so you can sync against your own server rather than AnkiWeb)
GNU Affero General Public License v3.0
870 stars 80 forks source link

Anki keeps remind me to Check Database #129

Closed isudfv closed 2 years ago

isudfv commented 2 years ago

I mainly add cards to my deck with Anki and memorize them with Ankidroid.

But once a while Anki complains "please use the Check Database function, then sync again. If problems persist, please force a full sync in the preferences screen".

And I've fullly synced a million times. What caused the problem?

dobefore commented 2 years ago

Could you lell me te anki version ?

isudfv commented 2 years ago

Anki Version ⁨2.1.49 (dc80804a)⁩ Ankidroid 2.9.1 And anki-sync-server is latest release

dobefore commented 2 years ago

I havent encountered your problem on Anki 2.1.50(beta). Can you trproduce this from scratch? As detailed as prssible

isudfv commented 2 years ago

it seems sync on Ankidroid caused this problem. Once there's a sync from Ankidroid, the "check database" error pops up. Adding a card on Anki also causes the problem even though there's nothing from Ankidroid. But everything on Ankidroid is fine.

dobefore commented 2 years ago

If possible,Could you record every step you take in detail with 1....2....3.... ? With new created user and empty anki clients.

isudfv commented 2 years ago
  1. create user test
  2. login with test on Ankidroid and Anki
  3. sync on Ankidroid(upload everything from Ankidroid to server)
  4. add my previous deck exported from Ankidroid(there is a V2 scheduler problem when exporting, I thought that's it, but the error persist after switching to v1)
  5. sync and everything is fine with user test
isudfv commented 2 years ago

I tried delete my user and start over.

  1. delete isudfv with anki-sync-server
  2. delete isudfv in src/collections/
  3. add isudfv
  4. sync from ankidroid
  5. download from web on Anki
  6. everything is fine so far
  7. modify something on ankidroid and sync
  8. "check database"
dobefore commented 2 years ago

Ankidroid(there is a V2 scheduler problem when exporting, I thought that's it, but the error persist after switching to v1)

How about updating ankidroid version above 2.9.5 and retrying?

isudfv commented 2 years ago

just tried. nothing wrong so far. the problem seems to be solved