Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot sync with anki 2.1.23 #63

Closed
smartlitchi opened this issue Apr 5, 2020 · 10 comments
Closed

Cannot sync with anki 2.1.23 #63

smartlitchi opened this issue Apr 5, 2020 · 10 comments

Comments

@smartlitchi
Copy link

anki 2.1.23 being in archlinux' community-testing repo, I tried to upgrade to it from 2.1.15. Everything is fine except I get an error message when opening it to sync with anki-sync-server.

Your client is using unsupported sync protocol (10, supported version: 9)

I saw that anki-sync-server only supports anki up to 2.1.16. Is there a way to get newer versions to be included ?

@mrozigor
Copy link

mrozigor commented Apr 6, 2020

I locally, on my server, changed file ankisyncd/sync_app.py:86 from if v > SYNC_VER: to if v > 10. I didn't check it for now, but it seems to work correctly (with my other changes from PR).

@mrozigor
Copy link

mrozigor commented Apr 6, 2020

I think that it can be serious problem with Anki 2.1.24, due to some changes in database, connected with config. When it will work locally, then I try to update my PR with proper changes on anki-sync-server.

@galantra
Copy link

galantra commented May 1, 2020

Possible workaround: Use a supported version of Anki for syncing, switch back to the recent version of Anki for everything else.

@smartlitchi
Copy link
Author

So I updated anki to v2.1.23 and followed @mrozigor instructions. Everything works now. An error message : AnkiWeb ID or password is incorrect; please try again get triggered each time I sync but it doesn't seem to affect the process.

@smartlitchi
Copy link
Author

Actually, I checked and while syncing cards seems to work, it can't sync medias. So the issue is still there.

@mrozigor
Copy link

mrozigor commented May 3, 2020

Did you try to apply changes from #60 as well as above change with SYNC_VER?

@mrozigor
Copy link

mrozigor commented May 3, 2020

Didn't realize that you make those changes. Did you also add proper entries in addon __init__.py file:

(...)
addr = "http://IP:PORT/"
anki.sync.SYNC_BASE = "%s" + addr
aqt.mediasync.SYNC_BASE = "%s" + addr
(...)

?

@smartlitchi
Copy link
Author

That fixed it, thank you !

@mrozigor
Copy link

mrozigor commented Jul 9, 2020

Which commit? Just before major code refactor in Anki? Do you have maybe more info about error?

@bartowski-l
Copy link

@mrozigor thank you mrozigor! i have fix the problem. i reference the #60. just before major code. i put your code to the program. and it can be work .so i fix it. thank you so much to share the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants