Ankihub add on error on sync

Before the error happened, I was able to sync to all devices and online. Current unable to sync to the web. Completed the force full sync and now it states there is an Ankihub add-on error.
Debug info posted below
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-05-31 13:58:34

Traceback (most recent call last):

File “aqt.taskman”, line 122, in _on_closures_pending

File “aqt.taskman”, line 71, in

File “aqt.taskman”, line 90, in wrapped_done

File “aqt.sync”, line 232, in on_future_done

File “aqt.main”, line 967, in on_collection_sync_finished

File “aqt.hooks_gen”, line 4066, in call

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 93, in _on_sync_did_finish
raise auto_sync_state.exception_on_last_ah_sync

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 118, in _sync_with_ankihub_and_ankiweb
_maybe_sync_with_ankihub(is_startup_sync=is_startup_sync)

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 147, in _maybe_sync_with_ankihub
ah_sync.sync_all_decks_and_media()

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\sync.py”, line 43, in sync_all_decks_and_media
self._sync_all_decks()

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\sync.py”, line 65, in _sync_all_decks
should_continue = self._sync_deck(ah_did)

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\sync.py”, line 77, in _sync_deck
result = self._download_updates_for_deck(ankihub_did)

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\sync.py”, line 92, in _download_updates_for_deck
for chunk in client.get_deck_updates(

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 598, in get_deck_updates
response = self._send_request(

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 192, in _send_request
response = self._send_request_with_retry(prepped, stream=stream)

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 206, in _send_request_with_retry
response = self._send_request_with_retry_inner(request, stream=stream)

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 289, in wrapped_f
return self(f, *args, **kw)

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 379, in call
do = self.iter(retry_state=retry_state)

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 314, in iter
return fut.result()

File “concurrent.futures._base”, line 438, in result

File “concurrent.futures._base”, line 390, in __get_result

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 382, in call
result = fn(*args, **kwargs)

File “C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 227, in _send_request_with_retry_inner
response = session.send(request, stream=stream)

File “requests.sessions”, line 645, in send

File “requests.adapters”, line 417, in send

File “requests.adapters”, line 228, in cert_verify

OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:\Users\cricc\AppData\Local\Temp\tmp952r_7wgcacert.pem

Error message (don't change this)
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-05-31 13:58:34

Traceback (most recent call last):

  File "aqt.sync", line 107, in on_future_done

  File "concurrent.futures._base", line 438, in result

  File "concurrent.futures._base", line 390, in __get_result

  File "concurrent.futures.thread", line 52, in run

  File "aqt.sync", line 123, in <lambda>

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 86, in repl

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 129, in _sync_with_ankihub_and_ankiweb
    result = _old(*args, **kwargs)

  File "anki.collection", line 1198, in sync_collection

  File "anki._backend.generated", line 773, in sync_collection

  File "anki._backend", line 146, in _run_command

anki.errors.SyncError: Please use the Check Database function, then sync again. If problems persist, please force a full sync in the preferences screen.


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "aqt.taskman", line 122, in _on_closures_pending

  File "aqt.taskman", line 71, in <lambda>

  File "aqt.taskman", line 90, in wrapped_done

  File "aqt.sync", line 110, in on_future_done

  File "aqt.main", line 967, in on_collection_sync_finished

  File "aqt.hooks_gen", line 4066, in __call__

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 93, in _on_sync_did_finish
    raise auto_sync_state.exception_on_last_ah_sync

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 118, in _sync_with_ankihub_and_ankiweb
    _maybe_sync_with_ankihub(is_startup_sync=is_startup_sync)

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 147, in _maybe_sync_with_ankihub
    ah_sync.sync_all_decks_and_media()

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\sync.py", line 43, in sync_all_decks_and_media
    self._sync_all_decks()

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\sync.py", line 65, in _sync_all_decks
    should_continue = self._sync_deck(ah_did)

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\sync.py", line 77, in _sync_deck
    result = self._download_updates_for_deck(ankihub_did)

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\sync.py", line 92, in _download_updates_for_deck
    for chunk in client.get_deck_updates(

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 598, in get_deck_updates
    response = self._send_request(

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 192, in _send_request
    response = self._send_request_with_retry(prepped, stream=stream)

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 206, in _send_request_with_retry
    response = self._send_request_with_retry_inner(request, stream=stream)

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 314, in iter
    return fut.result()

  File "concurrent.futures._base", line 438, in result

  File "concurrent.futures._base", line 390, in __get_result

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)

  File "C:\Users\cricc\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 227, in _send_request_with_retry_inner
    response = session.send(request, stream=stream)

  File "requests.sessions", line 645, in send

  File "requests.adapters", line 417, in send

  File "requests.adapters", line 228, in cert_verify

OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:\Users\cricc\AppData\Local\Temp\tmp952r_7wgcacert.pem

Sentry link (for developers)

Sorry for the late response, but this error should go away after restarting Anki. This is an issue with Anki itself and it seems to happen when you have Anki open for a long time. See this for more information.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.