Iām trying to help a colleague getting everything set up. She is using Anki 25.09.2 on Windows 10. When she first tried to synchronize with AnkiHub it got cancelled. Then I told her to restart Anki and create a new deck with a card. That helped in that sense that she could synchronize with AnkiHub for a second but then got an addon-error (error while downloading and installing deck).
It did not help either to have the deck (Anki Erlangen) sent and installed. Also it didnāt help to logout out of the Ankiweb account. Neither did the changing of the addon file adding a āimport sys.maxsizeā line help.
After deleting the notetype the problem wasnāt solved.
She uploaded a log āankihub_addon_logs_ca_ro_1766948670.logā. Maybe you can have a look there and tell me how I can help her!
Search
Found 0 results for ātags:official AnkiHub sync cancelled failed error while downloading and installing deck category: Support order:latest max_posts:20 status:openā
Search
Found 0 results for ātags:official error while downloading and installing deck order:latest max_posts:20 status:openā
Hereās how Iād systematically approach this with your colleague, given what youāve already tried:
1. Basic sanity checks
Confirm core requirements
Anki Desktop: 2.1.65+ is usually recommended for best compatibility.
ā Sheās on 25.09.2 (Qt6), which should work, but if nothing else helps, trying the latest stable from ankiweb.net is worth it.
AnkiHub add-on: Make sure she has the latest version from AnkiWeb (not an old local .ankiaddon file).
Disable all other add-ons
Start Anki while holding Shift ā this disables all add-ons.
Then go to Tools ā Add-ons, re-enable only AnkiHub, restart Anki, and try:
Open AnkiHub add-on window
Log in
Subscribe to one deck (e.g., Anki Erlangen)
Sync with AnkiHub again
This helps rule out conflicts (especially with add-ons that hook into syncing or note types).
2. Fully reset AnkiHub state (local only)
On her computer:
In Anki: Tools ā Add-ons ā AnkiHub ā Config
In the config window:
Log out of AnkiHub if thereās an option / clear token if present.
Back in Tools ā Add-ons:
Select AnkiHub ā click Config and View Files.
In the file explorer that opens, close Anki, then:
Delete any ankihub_*.json / cache files if present.
Reopen Anki:
Log into AnkiHub again from the add-on.
Try subscribing to only Anki Erlangen.
Run AnkiHub sync.
If this works, the earlier error may have been caused by a corrupted local AnkiHub state.
3. Check for collection / deck issues
Since āerror while downloading and installing deckā can happen when Anki has trouble modifying the collection:
If it works in the new profile ā the issue is with her original profile/collection (possibly note types or prior partial AnkiHub install).
If it fails even in the new profile ā likely environment-related (permissions, network, antivirus, etc.).
4. Windows / environment specifics
On Windows 10, these sometimes cause ādownload and installā errors:
Permissions
Ensure Anki is not installed in a protected folder with weird permissions (e.g., inside C:\Program Files with restrictions).
Ankiās data folder (shown under Help ā About ā Open File Location) should be writable by the user.
If itās on a synced folder (OneDrive, Dropbox), try moving it off those services.
Antivirus / Firewall
Temporarily disable thirdāparty antivirus or āweb protectionā.
Add exceptions for:
Anki executable
The Anki data folder
Then try the AnkiHub sync again.
5. About the āimport sys.maxsizeā change
You mentioned adding import sys.maxsize to the add-on file. Thatās not a standard or recommended fix and could introduce new problems depending on where itās added. Iād recommend:
Completely remove the AnkiHub add-on:
Tools ā Add-ons ā AnkiHub ā Delete
Restart Anki.
Reinstall AnkiHub from the official AnkiWeb add-on page.
Try again (ideally from a fresh profile for testing).
6. Using the log file
You mentioned the log ankihub_addon_logs_ca_ro_1766948670.log.
To help the AnkiHub team (and other users on the forum) debug:
Ask her to:
Open the log file and copy the last 30ā50 lines around the error, or
Attach the full log file to the forum topic (if not already done).
In your reply to this topic, please include:
Whether the issue reproduces in a new profile.
The exact error message text from the dialog (and a screenshot if possible).
Confirmation that all nonāAnkiHub add-ons were disabled during testing.
With that, itāll be much easier to see whether this is:
A known bug with the current AnkiHub version
A local environment issue
Or something related to the specific collection / note types.
If you can test the ānew profile + only AnkiHub enabledā scenario and post the outcome and the tail of the log in this topic, I can help you interpret the next steps more precisely.
The log you mentioned (ankihub_addon_logs_ca_ro_1766948670.log) will be key.
Please ask her to:
Open the log file.
Copy the last 30ā50 lines around the error, or attach the file here.
Also include:
Whether the new profile test succeeded or failed.
The exact full error message text (screenshot is ideal).
Once you can share:
Result of ānew profile + only AnkiHubā
DB check result
Tail of the log
I can help narrow down whether this is a collection-specific issue, a Windows/permissions problem, or something that looks like an AnkiHub bug that we should escalate.
It looks like the download is timing out. Does she have any issues accessing the website on a web browser? Common causes include network firewalls and slow connections. I recommend testing with a different network (if available) to narrow down the cause.