-
Notifications
You must be signed in to change notification settings - Fork 81
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
Your client is using unsupported sync protocol (10, supported version: 9) with latest version of Anki #13
Comments
Hi, thanks for raising this issue. I've had a look at this issue. TL;DR;Currently Anki 2.1.22 is not officially supported by Anki Sync Server as stated in the README. That being said, there have been users who've patched it to make it work.
NOTE: You will still get an error |
More information for Official FixThe problem as you stated is that the sync_app.py#L90 is blocking the sync. It is doing this because the sync version (SYN_VER) in the Anki Sync Server is 9 while the one used by your client is 10. To fix this, we'd need to update the anki submodule to any commit after ankitects/anki@131d37d. But this is easier said than done because there has been multiple project structures changes. In the latest version of the module, the A change in the sync version is likely to indicate a breaking change. I don't quite know what this change it. Testing is needed to check which features may have been broken. Basic trial and error using the above fix does not show any issues as of yet. |
Hi, thanks for the input.
I am still interested in patching the code to work with the latest version of the anki codebase. I will update this issue in the next few days with a summary of all the components needed by the sync server, that have moved form the python to the rust codebase. Hopefully I can then provide a pull request that works with the latest version of anki. In my opinion this is necessary for this project to survive in the long term. |
Hi @kalehmann, That would be amazing if you could. I totally agree with you in the keeping this project in sync with the latest versions of Anki client is key to the success of this project. I've created a new issue for the upgrade (see #16). I'd be interested to see what you come up with. |
i have a problem desktop app 2.1.22 always show user or passwd wrong and retry . the others is be ok ,but this session when i shut the app it will show . i can't find how to fix it?who can help me ? thank you |
Hi @bartowski-l, So this is an known issue that hasn't been fixed as it does not stop the actual sync functionality of the sync server. See below:
I know it may be annoying but officially the latest clients aren't supported. A possible fix, if you don't want to see the message, maybe to use an older Anki client. See below:
Hopefully this helps. |
Hi @bartowski-l, |
I am making progress on this issue. My current target is to get the sync-server working with Anki 2.1.26, without any client side errors or notifications. Newer versions of Anki are currently excluded because of #19. |
It turns out #19 is a bit of a non-issue (see my comment to that issue) - the addon will do less and it will be a little less flexible but it will be quite easy to create platform-dependent application launch links so that you can point to a custom sync server. That obviously doesn't solve any of our other issues with compatibility though - I just think it's important to know that we can still easily (without forking) run untouched upstream Anki against our own server implementations. |
I now have a version of anki-sync-server working with the latest version of Anki and decide to make the changes public: #20. |
As #20 is now merged, this issue can be closed |
Is the docker container really up to date on the URL kuklinistvan/anki-sync-server:latest ? |
I moved away from this anki sync server implementation, so I probably won't be able to help you out much. However, I checked the image you provided and it seems like the contents have been last updated in February or August of 2020:
Since my pull request #20 has been merged in September 2020, my changes are missing in the image you provided. However, you can build your own docker image from the current state of the repository at any time with:
|
Thank you with your idea to create it via the commands. |
see also #158 |
How to reproduce ?
Expected behavior
Everything synchronizes just fine
Actual behavior
I get a dialog with the message
Additional information
The message is issued in sync_app.py#L90
The text was updated successfully, but these errors were encountered: