Anki sync progress stuck

Hi! I have been having some problems with the media sync in Anki

It downloads normally till 30886 files and then it just stops, I’ve tried updating the app to it’s latest version and checking for any updates but nothing seems to work, it just keeps getting stuck at the 30886 mark again and again

Could anyone pls tell me how to fix this?

Thank you so much

Thinking

Search
Found 0 results for ā€˜tags:official media sync stuck specific number files category::person_raising_hand: Support order:latest max_posts:10 status:open’

This kind of ā€œstuck at the same file numberā€ media sync is almost always an AnkiWeb/Anki issue rather than AnkiHub specifically, but there are a few things you can try that often fix it:


1. Let it sit longer once at 30,886

Sometimes Anki appears ā€œstuckā€ while it’s actually:

  • retrying a bad file from AnkiWeb, or
  • rebuilding the media database.

If you haven’t already, try leaving it for at least 20–30 minutes at that number once, without touching anything.


2. Try a different network / device

To rule out your connection:

  1. Connect to a different Wi‑Fi or a mobile hotspot.
  2. Try syncing from:
    • another computer with Anki installed, or
    • AnkiMobile / AnkiDroid (if you use them).

If another device syncs past 30,886, the issue is likely specific to the first computer’s install or connection.


3. Check for media errors locally

On the computer where it’s stuck:

  1. In Anki, go to Tools → Check Media.
  2. Let it finish and see if it reports:
    • missing files,
    • corrupt files, or
    • files with very long/strange names.

If there are obviously broken or weird files listed, you can try:

  • Backing up your collection (File → Export → Anki Collection Package (.colpkg)), then
  • Deleting those specific problematic media files from the collection.media folder (only if you’re comfortable doing that),
  • Then syncing again.

If this sounds too technical, you can skip to step 4.


4. Force a one‑way media sync

Sometimes a single problematic file on AnkiWeb blocks the download. You can:

  1. Make a full backup:
    • File → Export → Anki Collection Package (.colpkg)
    • Make sure ā€œInclude mediaā€ is checked and save it somewhere safe.
  2. On the computer that has your most complete and working collection + media:
    • In Anki, go to Preferences → Network and look for the Media section.
    • Click ā€œUpload mediaā€ (or on older versions: trigger a sync and, when asked, choose ā€œupload to AnkiWebā€).
  3. Let it finish completely.
  4. On your other device(s), sync and download from AnkiWeb.

This replaces the media set on AnkiWeb with the one from your working device and can bypass a bad file that’s blocking downloads.


5. Check AnkiHub specifics (if this is an AnkiHub deck)

If the large number of media files comes from an AnkiHub deck:

  • Make sure the AnkiHub add‑on itself is up to date.
  • Try:
    1. Syncing with AnkiWeb first (until it gets stuck or finishes),
    2. Then running AnkiHub → Update & Sync after that.
  • If the freeze only happens after using AnkiHub sync, mention:
    • which shared deck(s) you’re subscribed to, and
    • whether the problem started right after subscribing / updating.

We can then compare with known issues on those specific decks.


6. If it’s still stuck at exactly 30,886

Please reply with:

  • Your Anki version (from Help → About),
  • Your OS (Windows / macOS / other),
  • Whether the same thing happens on any other device,
  • Whether this is your first time downloading this collection on this device, or it used to work fine before.

With that info we can narrow down whether this is:

  • a known Anki media bug, or
  • something specific to your collection / media set (including AnkiHub decks).

Also, if you haven’t already, it can be worth checking the official Anki troubleshooting page for syncing issues:

If you share those details, I can suggest a more specific next step.

My Anki version is 26.09.3

Windows

I only use Anki on one device

I have downloaded the deck before and did not face this problem, today I noticed some broken image icons so I tried to update the media sync and that’s when I came across this particular issue

Thanks for the extra details, that helps narrow it down.

Because:

  • you’re on Windows,
  • only use one device, and
  • this used to work fine until you tried to refresh media,

it’s very likely a single problematic media file on AnkiWeb or in your local media folder that’s hanging the sync at that same number.

Here’s what I’d try, in order:


1. Give it one long attempt

If you haven’t yet, start the sync, let it reach 30,886, then leave it for at least 30–40 minutes once. Sometimes Anki looks frozen while it’s repeatedly retrying a bad file.

If it truly never progresses, continue below.


2. Run ā€œCheck Mediaā€ and look for broken files

On your Windows device:

  1. Open Anki.
  2. Go to Tools → Check Media.
  3. Let it finish and carefully read the report:
    • Are there any ā€œcorruptā€ files?
    • Any files with very long or strange names?
    • Any obvious non‑image/non‑audio files (e.g., PDFs, EXEs) listed in media?

If you see obviously weird/corrupt entries:

  1. Close Anki.
  2. Open your media folder:
    • In Anki, go to Tools → Open File Locations → collection.media.
  3. Make a copy of this whole collection.media folder somewhere safe (backup!).
  4. Then, in the original collection.media, delete only the clearly broken/problematic files you saw in the report.
  5. Re‑open Anki and try syncing again.

If you’re unsure what looks ā€œwrong,ā€ you can paste the Check Media report text in your next reply and I can help interpret it.


3. Force a fresh media upload from your device

Since this is your only device, the safest fix is often to replace the media set on AnkiWeb with the one from your computer.

Before doing this, make one full backup:

  1. In Anki, go to File → Export.
  2. Export ā€œAnki Collection Package (*.colpkg)ā€.
  3. Make sure ā€œInclude mediaā€ is checked.
  4. Save it somewhere safe (e.g., Documents or an external drive).

Then:

  1. In Anki, go to Tools → Preferences → Network (or Preferences → Network depending on version).
  2. In the Media section, choose ā€œUpload mediaā€ (or start a sync and, if prompted, choose to upload to AnkiWeb instead of downloading).
  3. Let it run as long as needed, even if it seems slow.

This will:

  • take your local media (which you just checked/cleaned)
  • and overwrite the media on AnkiWeb.

After that completes, try another normal sync. Because you only use one device, this won’t cause data loss as long as you kept that .colpkg backup.


4. AnkiHub‑specific checks

Since you mentioned broken image icons and then this problem:

  • If you’re using any AnkiHub decks:
    • Make sure the AnkiHub add‑on is updated (via Tools → Add‑ons → Check for Updates).
    • Once AnkiWeb media sync completes (or progresses further), run AnkiHub → Update & Sync.
  • If the freeze only happens after running the AnkiHub sync, please share:
    • Which AnkiHub deck(s) you’re subscribed to.
    • Roughly when you last successfully updated them.

That helps check if there’s a known media issue with that specific deck.


If you can, please reply with:

  1. The exact output of Tools → Check Media (you can copy‑paste the text).
  2. Whether forcing a media upload as above was able to finish or still gets stuck at 30,886.

With that info I can suggest a more targeted next step.

I’m subscribed to the ankihub anking step deck

the check media reports show 11968 missing files and 35 unused files

it’s still stuck at 30886

Thinking

Read topic
Reading: Anki sync progress stuck

Thanks, that info helps a lot.

You’re using the AnkiHub AnKing Step deck, have ~12k missing media files, and the sync still freezes at 30,886. That combination strongly suggests:

  • your local collection is missing a bunch of AnKing media (normal if you’ve never fully downloaded before), and
  • there is likely one bad file around that 30,886 mark that’s blocking the media sync from AnkiWeb.

Because you only use one device, the safest approach is:


1. Make one good local backup (very important)

  1. In Anki, go to File → Export.
  2. Set Export format to: Anki Collection Package (*.colpkg).
  3. Make sure ā€œInclude mediaā€ is checked.
  4. Save it somewhere safe (e.g., Documents + maybe a USB / cloud).

If anything goes wrong, you can always import this .colpkg to get back to now.


2. Try a ā€œmedia resetā€ from your device to AnkiWeb

Since we can’t fix the problematic file on AnkiWeb directly, we try to overwrite AnkiWeb’s media with your local media set.

  1. In Anki, go to Tools → Preferences → Network.
  2. In the Media section, look for an option like:
    • ā€œOn next sync: Upload mediaā€ or
    • Start a sync and, if Anki asks, choose ā€œUpload to AnkiWebā€ (not download).
  3. Let that upload run for a long time if needed (don’t interrupt if it’s still moving or the disk/network light is active).

This tells AnkiWeb: ā€œUse my computer’s media as the master copy.ā€
After it completes:

  • Start a normal sync again and see if it still freezes at exactly 30,886.

3. If it still freezes: isolate the bad media file

This part is a bit tedious but often works:

  1. Close Anki.
  2. Open your media folder:
    • In Anki: Tools → Open File Locations → collection.media.
  3. Copy the entire collection.media folder somewhere else as an extra backup.
  4. In the original collection.media folder, temporarily:
    • Move out a chunk of files (for example, sort by name, select about half, move them to a temporary folder on your Desktop).
  5. Reopen Anki and try syncing media again.
  • If it gets past 30,886 now, the bad file is in the chunk you removed.
  • If it still gets stuck at 30,886, the bad file is in the half you left in collection.media.

Then:

  • Keep halving the ā€œsuspectā€ group of files to narrow down which specific file (or small group) is causing the freeze.
  • Once you find the bad one(s), keep them out of collection.media, sync again, then you can re‑download missing AnKing media from AnkiHub later.

I know this isn’t fun, but you only have to do it once, and your backups keep it safe.


4. After AnkiWeb sync works again, refresh from AnkiHub

Once you can run a full media sync with AnkiWeb without getting stuck:

  1. In Anki, make sure the AnkiHub add‑on is up to date:
    • Tools → Add‑ons → Check for Updates.
  2. Then run: AnkiHub → Update & Sync for your AnKing Step deck.
  3. This should redownload any missing images/audio that belong to that deck.

5. Please share two more details

To give you more specific steps (and avoid unnecessary trial‑and‑error), could you reply with:

  1. A screenshot or text of the exact ā€œCheck Mediaā€ report (especially the part that lists missing/corrupt files, if any).
  2. Whether the ā€œUpload mediaā€ attempt in step 2:
    • finishes successfully, or
    • still stalls at 30,886.

With that, I can suggest a more precise next action and, if needed, check for any known issues specific to the AnKing Step AnkiHub deck.

Hello,

Please update your 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.

Then, if the issue persists, please go to AnkiHub > Help > Upload logs and data and let us know the filename shown.

hello, updating the add on did not work, it downloads normally till the 30886th file and then just stops. this is the update logs and data file- ankihub_addon_debug_info_ana016_1793535454.zip thank you

I have notified a developer, and he’ll take a look at this issue as soon as possible. Thank you for reaching out!

In the meantime, please try the following:

  1. Click on AnkiHub.
  2. Sign out.
  3. Restart Anki.
  4. Click on AnkiHub and sign in.
  5. Click to sync with AnkiHub

See if it is still stuck.

Please try the add-on build I sent you previously: I accidently deleted the anking media folder from my laptop - #55 by abdo.nh

I’ll look into integrating the fix into the add-on so you don’t run into the issue after every upgrade.

Hi, thank you so much! I’ll do that!
I’m so sorry to keep bugging everyone with this, it was working fine the past couple of months.

It might be that my laptop’s really old, or Anking recently added a lot of images with it’s newest update so there’s a problem on my end downloading that, but I appreciate the follow up :slight_smile:

1 Like

No problem! The package I sent contain multiple changes and I wanted to wait for more reports before figuring out which one exactly fixes the issue for you and we can include safely in the add-on.

1 Like