# Please sync again error endlessly

**URL:** https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159
**Category:** Help
**Created:** [October 15, 2021, 6:22am UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159 "2021-10-15T06:22:18Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![mliberty](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mliberty](https://forums.ankiweb.net/u/mliberty)
#### Post date: [October 15, 2021, 6:22am UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/1 "2021-10-15T06:22:18Z")

</div>

Whenever I start anki or try to sync I get a dialog with “Please sync again. If this message keeps appearing, please post on the support site.”

I’ve tried;

- starting with shift held down
- uninstall/reinstall the latest version (2.1.48)
- hitting sync endlessly to the same result.
- Check Database & check media

This is on a window laptop if that is relevant.

Thanks!

---

<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: [October 16, 2021, 11:39am UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/2 "2021-10-16T11:39:49Z")

</div>

Please try removing your media.db2 file while Anki is closed. If you get the same error again after the sync completes, please send me a private link to the file and I’ll investigate why it’s not matching AnkiWeb.

[https://docs.ankiweb.net/files.html#file-locations](https://docs.ankiweb.net/files.html#file-locations)

---

<div class="post-metadata">

### Author: ![mliberty](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mliberty](https://forums.ankiweb.net/u/mliberty)
#### Post date: [October 16, 2021, 2:52pm UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/3 "2021-10-16T14:52:57Z")

</div>

I assume you mean collection.media.db2 as I didn’t find a media.db2 file. I removed it but the problem persists. You can get the db [here](https://drive.google.com/file/d/1J-Bd90HLFal444W18hoyHh43_IMhTRy6/view?usp=sharing).

---

<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: [October 18, 2021, 10:45am UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/4 "2021-10-18T10:45:30Z")

</div>

Hmm, did you go through a sync after removing the file? The linked one is empty; I would have expected it to list the files on your local media folder if a sync had been performed after removing the file, starting Anki and syncing again.

---

<div class="post-metadata">

### Author: ![mliberty](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mliberty](https://forums.ankiweb.net/u/mliberty)
#### Post date: [October 18, 2021, 1:59pm UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/5 "2021-10-18T13:59:36Z")

</div>

I just tried it again to the same result:

% sqlite3 collection.media.db2  
SQLite version 3.31.1 2020-01-27 19:55:54  
Enter “.help” for usage hints.  
sqlite\> select count(\*) from media ;  
0

I removed the file, hit sync three times while in Anki and it gave the same error each time.

---

<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: [October 20, 2021, 12:35pm UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/6 "2021-10-20T12:35:50Z")

</div>

Sorry, I’d forgotten that it gets cleared when a syncing error occurs. Please run the following in the debug console and then paste it into a private message or [anki.tenderapp.com](http://anki.tenderapp.com)

```auto
import json
print(json.dumps(os.listdir(mw.col.media.dir())))

```

[https://docs.ankiweb.net/misc.html#debug-console](https://docs.ankiweb.net/misc.html#debug-console)

---

<div class="post-metadata">

### Author: ![mliberty](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mliberty](https://forums.ankiweb.net/u/mliberty)
#### Post date: [October 20, 2021, 6:23pm UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/7 "2021-10-20T18:23:58Z")

</div>

How do I send a private message?

---

<div class="post-metadata">

### Author: ![mliberty](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mliberty](https://forums.ankiweb.net/u/mliberty)
#### Post date: [October 20, 2021, 6:25pm UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/8 "2021-10-20T18:25:51Z")

</div>

There’s nothing here that looks confidential so I’ll just paste it here:

> > > import json

… pp(print(json.dumps(os.listdir(mw.col.media.dir()))))

(removed)

---

<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: [October 22, 2021, 12:01pm UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/9 "2021-10-22T12:01:14Z")

</div>

There is a file d1090cfc520ffc01192b223c60759a87.jpg on AnkiWeb that your computer doesn’t seem to be saving. Could it be that your antivirus program is mistakenly removing it? If not, you can probably work around the problem by saving a file with that filename locally before the next sync.

---

<div class="post-metadata">

### Author: ![mliberty](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mliberty](https://forums.ankiweb.net/u/mliberty)
#### Post date: [October 22, 2021, 4:48pm UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/10 "2021-10-22T16:48:57Z")

</div>

I looked at my firewire logs and found that anki was triggering an error on udp port 63456 so I opened that port which stopped the firewall errors. I also created an empty file with that name in collection.media.

However I still get a sync error. Even if I fully disable the firewall I get the sync error. If I remove the empty file I still get the error.

---

<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: [October 23, 2021, 10:14am UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/11 "2021-10-23T10:14:24Z")

</div>

Empty files don’t get synced - please try placing some content in that file.

---

<div class="post-metadata">

### Author: ![mliberty](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mliberty](https://forums.ankiweb.net/u/mliberty)
#### Post date: [October 23, 2021, 6:05pm UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/12 "2021-10-23T18:05:58Z")

</div>

Success! No sync errors. Many thanks! It would be great if there were better error messages on sync failure.

---

<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: [October 25, 2021, 9:25am UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/13 "2021-10-25T09:25:15Z")

</div>

I don’t recall ever seeing this particular issue before. If it crops up again, there are some optional logs we can enable that may reveal more.

---

<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: [May 1, 2023, 4:46am UTC](https://forums.ankiweb.net/t/please-sync-again-error-endlessly/14159/14 "2023-05-01T04:46:03Z")

</div>


