Trying to resubscribe to a deck

Before the error happened, I was…
Trying to resubscribe to a deck that I had previously deleted.

Error message (don't change this)
Anki 25.09.2 (3890e12c) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-26.3-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/craigreeves/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 152, in raise_exception
    raise exception

  File "/Users/craigreeves/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 148, in _on_closures_pending
    closure()
    ~~~~~~~^^

  File "/Users/craigreeves/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 88, in <lambda>
    lambda future: self.run_on_main(lambda: on_done(future))
                                            ~~~~~~~^^^^^^^^

  File "/Users/craigreeves/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/__init__.py", line 253, in wrapped_done
    self._failure(exception)
    ~~~~~~~~~~~~~^^^^^^^^^^^

  File "/Users/craigreeves/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 60, in on_failure
    self.refresh_sync_status_text()
        ^^^^^^^^^^^^^^^

  File "/Users/craigreeves/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/Users/craigreeves/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/__init__.py", line 243, in wrapped_op
    return self._op(mw.col)
           ~~~~~~~~^^^^^^^^

  File "/Users/craigreeves/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 64, in <lambda>
    raise exception
                 ^^

  File "/Users/craigreeves/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 131, in _update_deck_media_and_download_missing_media
    self._client.media_upload_finished(ankihub_deck_id)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/craigreeves/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 178, in _update_deck_media
    LOGGER.info("Anki profile changed during media download, aborting download of deck media objects...")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/craigreeves/Library/Application Support/Anki2/addons21/1322529746/db/db.py", line 434, in upsert_deck_media_infos
    with self.write_lock, self.db.atomic():
         ^^^^^^^^^^^^^^^

  File "/Users/craigreeves/Library/Application Support/Anki2/addons21/1322529746/db/utils.py", line 15, in __enter__
    raise RuntimeError(  # pragma: no cover
        "Could not acquire lock within timeout"
    )

RuntimeError: Could not acquire lock within timeout

Sentry link (for developers)

Hello,

Please try restarting Anki to see if the error persists.

If it does, do you have any antivirus or file-syncing software running?

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