Media sync reports complete, but new MP3 files return 404 on AnkiWeb (Anki 26.09.3)

Hello,

I’m experiencing a media synchronization issue between Anki Desktop and AnkiWeb. I would appreciate any advice on how to resolve it.

Environment

  • Anki Desktop 26.09.3 (29bb700b)

  • Windows

  • Google Chrome

  • AnkiWeb

Problem

I recently created a new deck containing 90 Chinese-language study cards with MP3 audio files.

All audio files play correctly in Anki Desktop. However, the audio does not play on AnkiWeb.

Chrome Developer Tools shows the following error:

  • Example file: hskk_moc_02m_001_new_Sound_01.mp3

  • HTTP status: 404 Not Found

  • Request URL: https://ankiuser.net/study/media/hskk_moc_02m_001_new_Sound_01.mp3

The issue persists even with the browser cache disabled.

Audio files in my older decks continue to work normally on AnkiWeb.

What I have checked and tried

  1. All 90 MP3 files are smaller than 1 MB.

  2. All audio files play correctly in Anki Desktop.

  3. Tools → Check Media reports:

    • Missing files: 0

    • Unused files: 0

  4. Media synchronization is enabled in Anki’s preferences.

  5. Synchronization finishes without displaying an error. The sync log previously showed “Media sync complete.”

  6. I tried adding audio files through drag and drop into the note editor, but the issue persisted.

  7. I renamed the MP3 files and updated the corresponding [sound:filename.mp3] references in the notes. The renamed files still return 404 on AnkiWeb.

  8. I ran Tools → Check Database, which reported that the database had been rebuilt and optimized.

  9. With Anki closed, I renamed collection.media.db2 to collection.media.db2.old, then restarted Anki and allowed it to synchronize again. This did not resolve the issue.

  10. I ran Check Media again after the database was recreated. It still reports zero missing and zero unused files.

I have backups of my collection, including a .colpkg export with media.

Additional information

I normally study only using Anki Desktop, and I use AnkiWeb primarily to verify synchronization.

I have more than 20 decks and would like to avoid losing any cards, review history, or existing media.

Questions

  1. Why might Anki report that media synchronization is complete when these MP3 files are unavailable on AnkiWeb?

  2. Is there a safe way to force Anki to upload the missing media files without deleting or rebuilding my collection?

  3. Are there any additional diagnostics or logs I can collect to identify the cause?

Thank you very much for your help!

Before we can help you with an AnkiWeb issue, we need to see your account. There’s no AnkiWeb account connected to the email address you used to post here. You can use your AnkiWeb ID email for your Forum account, or add it as a secondary/alternate email address, and we’ll be able to see it.

Thank you for your reply.

I have changed my Anki Forums email address to match the one I use for AnkiWeb.

Could you please check my account again?

Thank you for your help!

I checked a few things. This file has synced successfully to your AnkiWeb account. It shows a last modified time of ~12h ago, which I believe was before you originally posted. So it seems like the media file was there already at that point.

I also exported that note and media file from your collection and synced them to a test account. The audio plays fine for me in AnkiWeb on Chrome/Windows.

Whatever is causing that error, I don’t think it’s a syncing issue. Since you sync multiple devices, the easiest way to check for yourself is to sync your other device as well. You can run Check Media there, and if the results match what you see on desktop, then the audio files arrived there and you know they are on AnkiWeb as well.

It’s also possible my time conversions are a little bit off, and while you were testing this, the file had not yet synced, but it did later. Anki tries not to overwhelm the syncing process with too many new media files at once, so it may have waited to periodically sync the rest in the background.

If you log out of syncing – Preferences > Syncing > Log Out – and sync to log in again, the syncing process will rescan all of your media to make sure it matches between the server and your device. You have over 1 GB of media in your account, so that can take some time.

Thank you very much for investigating this issue.

I followed your suggestion and logged out of my AnkiWeb account in Anki Desktop (Preferences > Syncing > Log Out).

I then logged back in and completed the synchronization process.

Unfortunately, the problem persists.

I tested the same card again on AnkiWeb using Google Chrome on Windows, with the browser cache disabled. The audio still does not play, and Chrome Developer Tools continues to show:

  • File: hskk_moc_02m_001_new_Sound_01.mp3
  • Status: 404 Not Found

I have attached a new screenshot showing the error after the synchronization.

Since you confirmed that this file exists in my AnkiWeb account and plays correctly in your test account, could you please investigate why it still returns a 404 error when accessed through my own AnkiWeb account?

Thank you again for your time and assistance!

I didn’t catch the difference the first time, but the file in your account is –
hskk_moc_02m_001_new_sound_01.mp3
not –
hskk_moc_02m_001_new_Sound_01.mp3.
So this could be a case-sensitivity mis-match.

This usually isn’t an issue for Windows or AnkiDroid users – which is why I suggested you check this on your AnkiDroid install instead of on AnkiWeb (where you don’t study these cards). Are the files present and working correctly in AnkiDroid? If so, you can safely ignore this.

If not, see –

Thank you very much for your help. I have finally found a workaround, and the audio is now playing correctly on AnkiWeb!

The issue appears to be related to a mismatch in filename capitalization.

The important point is that I did not intentionally change the filenames from uppercase to lowercase.

When I added the MP3 files to Anki Desktop, the filenames contained an uppercase S, for example:

hskk_moc_02m_001_new_Sound_01.mp3

However, I discovered that the corresponding file could be accessed on AnkiWeb using a lowercase s:

hskk_moc_02m_001_new_sound_01.mp3

The original reference returned HTTP 404, while the lowercase version returned HTTP 200 and played correctly.

I then used Anki Desktop’s Find and Replace feature to change _Sound_ to _sound_ in the audio fields of the affected notes, and synchronized again.

I have now confirmed that the audio plays correctly on AnkiWeb for the first four cards, including cards updated through Find and Replace.

I would like to emphasize that the filenames originally contained an uppercase S when I added the audio files to Anki Desktop. I did not knowingly rename them to lowercase before synchronization.

This makes me wonder whether the filename capitalization may have been changed somewhere during Anki’s media handling or synchronization process, or whether there is an issue with case sensitivity.

Could this possibly be a bug? I would appreciate it if you could investigate why the capitalization differed between the original filenames and the files accessible on AnkiWeb.

Thank you again for your time and assistance!

I linked you to another thread that talks about the part of this that’s potentially a bug – which has already been reported, fixed, and will be included in the next release.