Ankihub error on sync

Before the error happened, I was syncing

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-14.5-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2025-10-24 10:30:46

Traceback (most recent call last):

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

  File "/Users/nickrusso/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 100, in sync_with_ankiweb
    future.result()

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

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

  File "/Users/nickrusso/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "/Users/nickrusso/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 210, in _on_sync_done
    aqt.mw.reset()

  File "aqt.main", line 822, in reset

  File "aqt.main", line 774, in _synthesize_op_did_execute_from_reset

  File "_aqt.hooks", line 3620, in __call__

  File "aqt.main", line 794, in on_operation_did_execute

  File "aqt.toolbar", line 404, in update_sync_status

  File "aqt.sync", line 58, in get_sync_status

  File "aqt.taskman", line 62, in run_in_background

  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 100, in on_future_done

  File "anki.dbproxy", line 36, in begin

  File "anki._backend", line 100, in db_begin

  File "anki._backend", line 116, in _db_command

anki.errors.DBError: DbError { info: "SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some(\"cannot start a transaction within a transaction\"))", kind: Other }

Sentry link (for developers)

Hello,

Your Anki is not up to date.

Here are the instructions to update Anki and the AnkiHub add-on:

To update Anki:
Download the latest version here: https://apps.ankiweb.net/.
After downloading, simply run the downloaded file to update your application.

Then update the AnkiHub add-on:

  1. On your Anki main screen, go to Tools > Add-ons > Check for Updates.
  2. After the update is complete, please restart Anki.

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