Progress will not sync with other devices

Before the error happened, I was…
Trying to switch users, and for some reason my progress won’t save on my other devices.

Error message (don't change this)
Anki 25.02.6 (6381f184)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045

Traceback (most recent call last):

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

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

  File "aqt.operations", line 253, in wrapped_done

  File "C:\Users\kosha\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 63, in on_failure
    raise exception

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

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

  File "C:\Users\kosha\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 67, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "C:\Users\kosha\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 135, in _update_deck_media_and_download_missing_media
    missing_media_names = self._missing_media_for_ah_deck(ah_did)

  File "C:\Users\kosha\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 211, in _missing_media_for_ah_deck
    referenced_media = self._media_referenced_by_notes(ah_did)

  File "C:\Users\kosha\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 194, in _media_referenced_by_notes
    note = aqt.mw.col.get_note(nid)

  File "anki.collection", line 496, in get_note

  File "anki.notes", line 50, in __init__

  File "anki.notes", line 56, in load

  File "anki._backend_generated", line 1340, in get_note

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

anki.errors.InvalidInput: CollectionNotOpen

Sentry link (for developers)

Hello,

When changing profiles in Anki, each profile has its own associated AnkiWeb account (the service Anki uses to sync your progress through the cloud and to your mobile devices). Because of this, you always need to click the sync button and make sure you are logged into the same AnkiWeb account as your mobile device. Usually, it’s best to keep one profile that syncs with your mobile device.

Your error seems to be a one-time thing. To make sure everything is alright, please update Anki and the AnkiHub add-on:

To update Anki:
Please download and install the latest version from https://apps.ankiweb.net.

To 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.

Let us know if you continue to experience this issue. :blush: