Iāve tried resetting local changes and syncing media. Still have a ton of media missing and unsure what to do. Iāve looked at other posts from users with similar issues and followed recommendations. Nothing is working.
Thinking
Search
Found 0 results for ātags:official media missing AnkiHub deck reset local changes category:
Support order:latest_topic max_posts:50 status:openā
Search
Found 0 results for ātags:official āMissing files: AnKingā media order:latest_topic max_posts:50 status:openā
It looks like Anki is reporting a lot of missing files from your collectionās media folder, and simply resetting local changes + syncing media hasnāt fixed it. Letās narrow down whatās going on and whether this is an AnkiHub issue or something local to Anki/AnkiWeb.
First, a few clarifying questions (these really matter for next steps):
-
Which deck(s) are affected?
- Is this happening with an AnkiHub-connected deck (e.g. AnKing/another shared hub deck), or with multiple decks?
-
Where are you seeing the āMissing filesā list?
- In Anki Desktop via
Tools ā Check Mediaā¦? - Or somewhere else (e.g. an add-on window)?
- In Anki Desktop via
-
Have you checked AnkiWeb?
- Log in to AnkiWeb, open the same deck, and see if the images/audio are missing there as well.
- This tells us if the media is missing everywhere or only on your current device.
Things you can try now
Do these in order; after each step, run Tools ā Check Media again and see if the āMissing filesā count changes.
1. Make sure media is actually syncing
In Anki Desktop:
- Go to
Tools ā Preferences ā Synchronisation. - Confirm āSynchronize audio and images tooā is checked.
- Click
OK. - Press the sync button (top right) and let it fully finish.
- Then go to
Tools ā Check Mediaā¦again.
If this was off earlier, some media may be only on another device or only on AnkiWeb.
2. Re-generate media that Anki can create locally
If some of your missing media are LaTeX images or similar:
- In Anki Desktop, run
Tools ā Check Mediaā¦. - Let it finish; Anki will generate any LaTeX media it can and add them to the media folder.
- Sync again so those get uploaded and merged.
Then check media once more.
3. Verify that media actually exists on another device / AnkiWeb
If you have Anki on another device (e.g. an older computer) where you know the images/audio used to work:
- Open Anki there.
- Sync fully.
- Run
Tools ā Check Mediaā¦on that device.- If that device doesnāt report those files as missing, then the original media might still exist there and can be synced back to AnkiWeb, then to your current machine.
If every device and AnkiWeb all show these same files as missing, theyāre probably truly gone and weāll need to see if they were ever included in the AnkiHub deck to begin with.
AnkiHub-specific checks
Because you mentioned āresetting local changes,ā Iām assuming this is for an AnkiHub-connected deck.
Please check:
-
Are these files supposed to come from the AnkiHub deck?
- Many of the names in your screenshot (e.g. starting with random hashes /
img_gallery) look like web image URLs or pasted images rather than the standard, cleaned-up filenames Anki creates when media is imported with a deck. - If you copied/pasted from websites or PDFs yourself, those might be personal edits that were never part of the original AnkiHub deck.
- Many of the names in your screenshot (e.g. starting with random hashes /
-
Compare with a fresh profile (test)
- In Anki Desktop, create a new temporary profile:
File ā Switch Profile ā Add. - Install the AnkiHub add-on in that profile and download a fresh copy of the same AnkiHub deck (donāt sync your personal account into it).
- Sync that deckās media and then run
Tools ā Check Mediaā¦in this new profile. - If the fresh profile does not show these files as missing, then the missing files are from your own edits, not from the shared AnkiHub content.
- In Anki Desktop, create a new temporary profile:
This will tell us whether the problem is:
- AnkiHub deck missing media ā something we should escalate / check on the deck or server side
- Personal/local media that never synced correctly ā weāll focus on recovering what we can from your other devices / backups
If nothing above helps
To move forward efficiently, please reply with:
- Answer to the 3 questions at the top (deck name, where you see āMissing filesā, and whether AnkiWeb shows the same issue).
- Whether a fresh profile + fresh AnkiHub deck also shows missing media.
- Your operating system (Windows/Mac/Linux) and Anki version (
Help ā About Anki).
Once we know those, we can give more targeted steps (e.g. checking for older backups, specific AnkiHub deck issues, or whether any of these filenames match known official media).
Thinking
Search
Found 0 results for ātags:official āmedia missingā AnkiHub deck category:
Support order:latest_topic max_posts:20 status:openā
Thanks for testing with a fresh profileāthatās really helpful.
Because a clean profile with a fresh download of the deck still shows lots of missing files, that strongly suggests this is not just your local collection, but that:
- either the deck itself is missing media (e.g., not all media was ever uploaded / is currently available), or
- thereās a problem syncing/serving media from AnkiWeb/AnkiHub for this deck.
At this point, you shouldnāt keep trying to āfixā it locally (resetting, deleting, etc.), because that wonāt bring back media that doesnāt exist on the server.
Next useful details
To investigate / escalate this properly, could you please share:
- Which exact AnkiHub deck(s) this is happening with?
- Full name + link from AnkiHub if possible.
- Your Anki version (
Help ā About Anki) and OS (e.g. macOS 14, Windows 11, etc.). - Roughly how you installed the deck in the fresh profile:
- Downloaded from AnkiHub using the AnkiHub add-on?
- Or imported an
.apkgyou had saved?
If youāre comfortable doing so, also:
- In the fresh profile,
- run
Tools ā Check Mediaā¦, - click āSave Listā,
- and attach the resulting text file here (or at least paste the first ~50 āMissing:ā lines).
- run
That lets us see if these filenames match patterns weād expect from the official media package or if they look incomplete.
In the meantime (sanity check)
On the fresh profile:
- Make sure
Tools ā Preferences ā Synchronisation ā āSynchronize audio and images tooāis checked. - Sync once more, let it fully finish, then immediately run
Tools ā Check Mediaā¦again. - Confirm if the āMissing filesā number stays the same.
If a fresh profile + fresh deck + full media sync still show thousands of missing files, this is almost certainly something we need to look at on the deck/AnkiHub side, not something you can fix alone. Once you post the deck info + sample of the missing filenames, we can check whether this is a known issue with that deckās media and flag it for the AnkiHub/AnKing team if needed.
I got the following error
Before the error happened, I wasā¦
[Replace this text.]
Error message (don't change this)
Anki 25.07.5 (7172b2d2) (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/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 152, in raise_exception
raise exception
File "/Users/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 148, in _on_closures_pending
closure()
~~~~~~~^^
File "/Users/courtstage/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/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/__init__.py", line 253, in wrapped_done
self._failure(exception)
~~~~~~~~~~~~~^^^^^^^^^^^
File "/Users/courtstage/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 63, in on_failure
raise exception
File "/Users/courtstage/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/courtstage/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/courtstage/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 67, in <lambda>
op=lambda _: self._update_deck_media_and_download_missing_media(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/courtstage/Library/Application Support/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 "/Users/courtstage/Library/Application Support/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 "/Users/courtstage/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 200, in _media_referenced_by_notes
media_names.update(aqt.mw.col.media.files_in_str(note.mid, flds))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/Users/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_legacy.py", line 201, in decorated_func
return func(*args, **updated_kwargs)
File "/Users/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/media.py", line 142, in files_in_str
string = render_latex(string, model, self.col)
File "/Users/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/latex.py", line 81, in render_latex
html, err = render_latex_returning_errors(html, model, col)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/Users/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/latex.py", line 104, in render_latex_returning_errors
render_latex = col.get_config_bool(Config.Bool.RENDER_LATEX)
File "/Users/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/collection.py", line 936, in get_config_bool
return self._backend.get_config_bool(key)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/Users/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend_generated.py", line 625, in get_config_bool
raw_bytes = self._run_command(9, 5, message.SerializeToString())
File "/Users/courtstage/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend.py", line 171, in _run_command
raise backend_exception_to_pylib(err)
anki.errors.InvalidInput: CollectionNotOpen
Thinking
Read topic
Reading: Media missing
Thanks for sharing the error, that helps a lot.
This particular traceback is coming from the AnkiHub addāon while itās trying to scan your notes for media:
anki.errors.InvalidInput: CollectionNotOpen
That means Ankiās collection was closed (or is in the process of closing) while the AnkiHub media sync was still running. In practice, this usually happens if:
- Anki is closed or the profile is switched while the media operation is running, or
- another addāon / action interrupts the collection.
This error itself wonāt delete or fix any media ā it just stops the AnkiHub ādownload missing mediaā process partway through.
What to do next
-
Restart Anki completely.
- Quit Anki, wait a few seconds, then reopen it.
- Open the profile youāre testing with and wait until everything finishes loading.
-
Run AnkiHub media sync again in a ācleanā state:
- Make sure you are not switching profiles, closing Anki, or starting big operations (like Check Database, importing, etc.) while it runs.
- In the AnkiHub addāon, use the option to update deck + download missing media for the affected deck.
- Let it fully finish (even if it feels slow).
-
Then run Ankiās own media check again:
Tools ā Check Mediaā¦- Note the āMissing filesā count and, if possible, click āSave Listā and attach it here (or paste the first ~50 āMissing:ā lines).
-
Temporarily disable other add-ons that may interfere (especially anything dealing with LaTeX or media) and repeat step 2 once, to rule out conflicts.
For the AnkiHub team / escalation
Because:
- a fresh profile + fresh deck shows thousands of missing files, and
- AnkiHubās media fetch is hitting an exception,
this is very likely not something you can resolve just by local resets. Once you reply with:
- The exact AnkiHub deck name/link, and
- The saved āMissing filesā list (or a sample),
we can:
- Check if these filenames match the official media for that deck, and
- Forward this along with your Sentry issue ID to the developers to see if there is a deckāside/mediaāside problem or a bug in the media sync logic on Anki 25.07.5 + macOS.
For now, donāt delete anything or keep resetting; just run the clean media sync once as above and share:
- Updated missing file count after that run.
- Deck name/link.
- The saved missing-media list (or sample).
Yes, the missing media still shows thousands missing. I am using the Anking deck. Audio and image sync too is checked.
Thanks, thatās very helpful detail.
Since:
- Youāre on a fresh profile,
- Using the AnKing deck,
- Audio and image sync is enabled, and
- You still see thousands of missing files even after running the AnkiHub media sync,
this is very likely not something wrong with your specific setup. Itās either:
- An issue with how AnkiHub is fetching media for AnKing on your setup, or
- A problem with the deckās media package / mapping that needs dev-side investigation.
Also, the earlier CollectionNotOpen traceback confirms the error is coming from the AnkiHub addāonās media sync code, not from Ankiās core.
What I recommend doing now
To give the AnkiHub/AnKing team exactly what they need to debug this, please:
-
Confirm the exact AnKing deck variant + link
- e.g. AnKing Overhaul, version, and (if you have it) the URL of the deckās page on AnkiHub.
-
Attach a sample of the missing media list
- In the fresh profile:
Tools ā Check Mediaā¦- Click āSave Listā
- Upload that file here, or paste at least the first 50ā100
Missing:lines into your reply.
- This tells us whether the filenames match known AnKing media or indicate something else is going on.
- In the fresh profile:
-
Run AnkiHub media sync once more and confirm behavior
- Restart Anki first.
- With only the AnkiHub add-on enabled (you can start Anki with shift and then enable just AnkiHub if needed), run:
- Update AnkiHub deck + download missing media for AnKing.
- Donāt switch profiles or close Anki during this.
- Then immediately:
Tools ā Check Mediaā¦- Report the āMissing filesā count after this clean run.
What this means for you right now
- You donāt need to keep trying random resets or manual media fixes; they wonāt restore files that AnkiHub/AnkiWeb isnāt currently providing.
- From what youāve described, it does look like a bug or serverāside/packaging issue with the AnKing + AnkiHub media, not that youāve damaged your collection.
Once you post:
- The exact AnKing deck link/name,
- The saved missing-media list (or sample), and
- The missing files count after the clean AnkiHub media sync,
this can be escalated with your Sentry link so the team can inspect whether specific media bundles for AnKing are incomplete or if thereās a bug in how the addāon is scanning/downloading media on Anki 25.07.5 on macOS.
Hello,
Please follow this tutorial to resolve the issue with missing media: Why is my deck missing images?
If this doesnāt resolve the issue, please keep in mind a few things regarding missing media:
- Ankiās built-in
Tools > Check Mediatool can sometimes show a āmissing filesā report even when no media is actually missing from your AnkiHub decks. - Broken image icons usually only indicate missing media if they appear in specific fields like Text, Extra, Sketchy, and Pixorize.
- For First Aid and B&B content, you will need a separate subscription to that resource. You can learn more about how this integration works here: McGraw Hill Integration FAQ
Please let me know how it goes and tell me if you run into problems in any of these steps! ![]()

