# Issues with Media Sync on Custom Anki Server

**URL:** <https://forums.ankiweb.net/t/issues-with-media-sync-on-custom-anki-server/54420>\
**Category:** Help\
**Created:** [January 15, 2025, 3:53pm UTC](https://forums.ankiweb.net/t/issues-with-media-sync-on-custom-anki-server/54420 "2025-01-15T15:53:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrayonLearn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CrayonLearn](https://forums.ankiweb.net/u/CrayonLearn)\
**Post date:** [January 15, 2025, 3:53pm UTC](https://forums.ankiweb.net/t/issues-with-media-sync-on-custom-anki-server/54420/1 "2025-01-15T15:53:56Z")

</div>

Hello everyone,

I set up a custom Anki server following the guide in the Anki manual, and I would like to ask for help with a media sync issue I’m having.

The server seems to be functioning “well”, as I was able to log in through my AnkiDroid device without any problems. I copied the profile from `~/.local/share/Anki2/user` to `~/.syncserver`, and everything appeared to be in order. 👍🏻  
After syncing, AnkiDroid displayed a message saying “Full sync from server”, but this process completed very quickly. Since I have thousands of media files in collection.media that are also in `~/.syncserver`, I suspected that the sync wasn’t complete.

When I tapped sync again, it felt like the process was more focused on uploading changes instead of downloading those media files. I tried doing a forced one-way sync, and even though it showed “Downloading” and then “Checking downloaded file,” it ended up saying “Media synced,” which was probably incorrect.

In the settings of AnkiDroid, I have the following configurations:

Fetch media on sync: Always  
Allow sync on metered connection: Enabled

On the server side, I also tried setting `MAX_SYNC_PAYLOAD_MEGS=1000`  
Server is run by the command: `SYNC_USER1=user:pass anki --syncserver`

Despite these settings, the media files are still not syncing. _(All decks are synced)_

I would really appreciate any guidance on what else I might check or adjust to help resolve this issue. Thank you so much for your support!

---

<div class="post-metadata">

**Author:** ![CrayonLearn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CrayonLearn](https://forums.ankiweb.net/u/CrayonLearn)\
**Post date:** [January 15, 2025, 10:30pm UTC](https://forums.ankiweb.net/t/issues-with-media-sync-on-custom-anki-server/54420/2 "2025-01-15T22:30:44Z")

</div>

I deleted all cache and data from AnkiDroid and set up syncing again.  
Althought, I am still facing the issue, at least, I received an error message this time:

`com.ichi2.anki.exception.UnknownHttpResponseException: Conflict`

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [January 18, 2025, 6:44am UTC](https://forums.ankiweb.net/t/issues-with-media-sync-on-custom-anki-server/54420/3 "2025-01-18T06:44:12Z")

</div>

> [@CrayonLearn](#):
>
> I copied the profile from `~/.local/share/Anki2/user` to `~/.syncserver`,

It was not designed to support that. You should sync data to it.

---

<div class="post-metadata">

**Author:** ![CrayonLearn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CrayonLearn](https://forums.ankiweb.net/u/CrayonLearn)\
**Post date:** [January 19, 2025, 12:57am UTC](https://forums.ankiweb.net/t/issues-with-media-sync-on-custom-anki-server/54420/4 "2025-01-19T00:57:30Z")

</div>

Thank you very much!  
I didn’t realize that I could and should set up syncing from the same system.  
Media is syncing now!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [February 18, 2025, 12:57am UTC](https://forums.ankiweb.net/t/issues-with-media-sync-on-custom-anki-server/54420/5 "2025-02-18T00:57:40Z")

</div>

Closed on February 18, 2025, 12:57am UTC

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