Updated today section in browser does not work

Hey,
About 1-2 weeks ago, no cards were listed in the Updated Today section, it would just show me all cards coming from AnkiHub (also those, that were not changed). Now, every change is listed in the “New Note” category, other categories will show 0 cards.

Error message (don't change this)
Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-14.4-arm64-arm-64bit

Traceback (most recent call last):

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3291, in execute_sql
    cursor.execute(sql, params or ())

sqlite3.OperationalError: database is locked


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

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

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

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

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 43, in on_sync_done
    on_done(future_with_exception(future.exception()))

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py", line 329, in on_done
    future.result()

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

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

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

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 36, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 53, in update_decks_and_media
    self._update_decks(ah_dids)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 76, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 90, in _update_single_deck
    result = self._download_updates_for_deck(ankihub_did)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 131, in _download_updates_for_deck
    import_result = self._importer.import_ankihub_deck(

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 128, in import_ankihub_deck
    dids = self._import_notes(

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 182, in _import_notes
    upserted_notes_data, skipped_notes_data = ankihub_db.upsert_notes_data(

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/db/db.py", line 113, in upsert_notes_data
    AnkiHubNote.insert(

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2011, in inner
    return method(self, database, *args, **kwargs)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2082, in execute
    return self._execute(database)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2887, in _execute
    return super(Insert, self)._execute(database)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2600, in _execute
    cursor = database.execute(self)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3299, in execute
    return self.execute_sql(sql, params)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3291, in execute_sql
    cursor.execute(sql, params or ())

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3059, in __exit__
    reraise(new_type, new_type(exc_value, *exc_args), traceback)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 192, in reraise
    raise value.with_traceback(tb)

  File "/Users/dario/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3291, in execute_sql
    cursor.execute(sql, params or ())

peewee.OperationalError: database is locked

Sentry link (for developers)

Do you have the latest release of the add-on? Can you check that from Tools > Add-ons > Check for Updates?

Yup, i have the latest update

Are you perhaps getting this “database is locked” error when you click Updated Today for the first time, then when you click it again, it’s listing all notes?

Nope, i dont get any notification or error. It just wont show the cards for each section

I’ve not managed to reproduce this yet. Can you go to AnkiHub > Help > Upload logs and data and post the filename shown here?

ankihub_addon_debug_info_8c1b0_1710355888.zip

This is a bug in the ankihub_new_note: browser query

hey, i’m still having this issue… do you have any updates on this?

I don’t think we have any update on this yet. @ProductTeam can we triage this?

1 Like