Resetting local changes to try and fix a problem where I still can't see the content on the card

Before the error happened, I was…
[Replace this text.]

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-12.3.1-x86_64-i386-64bit

Traceback (most recent call last):

  File "/Users/rukayamsuo/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.operations", line 252, in wrapped_done

  File "/Users/rukayamsuo/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 53, in on_failure
    raise exception

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

  File "aqt.operations", line 242, in wrapped_op

  File "/Users/rukayamsuo/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 57, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "/Users/rukayamsuo/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 122, in _update_deck_media_and_download_missing_media
    self._update_deck_media(ankihub_did=ah_did)

  File "/Users/rukayamsuo/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 167, in _update_deck_media
    ankihub_db.upsert_deck_media_infos(

  File "/Users/rukayamsuo/Library/Application Support/Anki2/addons21/1322529746/db/db.py", line 322, in upsert_deck_media_infos
    DeckMedia.insert(

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

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

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

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

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

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

  File "/Users/rukayamsuo/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/rukayamsuo/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 192, in reraise
    raise value.with_traceback(tb)

  File "/Users/rukayamsuo/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)

@ProductTeam reports of this issue increased after the last add-on update. It appear to be affecting a lot of users. Also related: I cant sync the decks

@jakub.f

1 Like