Infinitely syncing problem

1,614 views
Skip to first unread message

Evan Cheng

unread,
Oct 23, 2021, 8:34:04 AM10/23/21
to AnkiDroid
Hi guys, I recently (last week) downloaded a large deck and uploaded it to Anki; it worked fine on my laptop version of Anki but I decided I didn't need it so I deleted it right after download.

However, next time I tried to sync AnkiDroid on my phone/tablet, it started syncing and won't stop syncing for hours on end. Throughout the past week I've left it for hours syncing on its own, it must have synced over 24h by now but it still says its downloading massive amounts each time. But I had already deleted the large deck way before. 

Funny thing is, if I turn off any wifi connection, even in the middle of syncing, my Ankidroid does show cards I've newly created. But with no images. And then when I turn my wifi back on, it resumes infinitely syncing. I definitely havent added so many new images to warrant downloading for hours (I'd immediately deleted that massive deck from before). 

I've tried clearing my cache, clearing my data, uninstalling and reinstalling AnkiDroid (but when i open the reinstalled AnkiDroid it still shows my decks and is already logged in despite me clearing data/cache). 

I'm completely lost about how I can get back to just doing and syncing my Ankis normally again, this has just crippled my Ankiing for a week. If anyone has any idea what i can do to fix this, please send some advice! Thank you so much

AnkiDroid Version = 2.15.6

Android Version = 11

Manufacturer = OnePlus

Model = AC2001

Hardware = qcom

Webview User Agent = Mozilla/5.0 (Linux; Android 11; AC2001 Build/RP1A.201005.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.85 Mobile Safari/537.36

ACRA UUID = b494e1fd-cbed-431e-ad7e-caaaf42dd410

Scheduler = std2

Crash Reports Enabled = true

DatabaseV2 Enabled = true

Mike Hardy

unread,
Oct 23, 2021, 8:36:48 AM10/23/21
to anki-a...@googlegroups.com, Evan Cheng


Hi there! A sync of a very large deck may take a while as you noticed, but it's important to say it's not "infinite", nothing is actually infinite. Incredibly long yes but it should be making progress each sync and eventually things will be in sync.


Sounds like that is not what you actually want though, as it is syncing useless media files from a deleted collection. You may want to run "check media" on Desktop to purge out the media from the deleted deck, sync up to AnkiWeb then back down to AnkiDroid, and that will have the effect of you no longer asking it to sync media you no longer what (but which is likely still in your collection...)


Alternatively, you can make sure that you have your AnkiDesktop collection exactly the way you want (examine the files on disk and make sure they appear to be the general quantity you expect...) then sync to a new AnkIWeb account that you know is clean, and connect AnkiDroid to the new account


-Mike

--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/1fb2bf28-db26-485b-987a-2295578ddf0en%40googlegroups.com.

Evan Cheng

unread,
Oct 23, 2021, 11:06:28 PM10/23/21
to AnkiDroid
Hi Mike, thanks so much for your help! I tried purging the unused media, and emptying trash, and it was still buggy so I opened a new account and only copied the decks I wanted. Now I have my cards on Ankiweb and Ankidroid, with pictures too! Thanks so much!

The only issue now is that it will download/upload my data but not stop the syncing page; for example if I do 1 card on Ankiweb then sync on desktop it's fine; then I open AnkiDroid and sync, and it'll say something like "Up 1kb Down 2kb" and be stuck on this without exiting or stopping itself when it's done. So instead, I exit the app when I see the up/down syncing numbers have stopped, and when i reopen the app everything seems to be there. Do you know of how to get it to know when it's finishing up/downloading and exit the syncing by itself? Thanks again

Evan Cheng

unread,
Oct 24, 2021, 1:55:47 AM10/24/21
to AnkiDroid
I spoke too soon; my new media is still not showing up, only my old media from cards made ages ago is appearing. 
New media I've added recently is not showing up, even after starting a new account and copying the decks I wanted to keep. 

Mike Hardy

unread,
Oct 24, 2021, 9:57:21 AM10/24/21
to anki-a...@googlegroups.com, Evan Cheng


Hi there - this really sounds like you have some problem with the network in use, somewhere between your mobile device and AnkiWeb network connections don't seem to be handled correctly.


Syncing *should* complete - perhaps over time, maybe a few times, but after a few times where you let it run as long as it needs it really should complete syncing. We have not yet heard any instance where it did not when combined with a fresh account.


Based on that I can't think of anything else going on other than unexpected network behavior


-Mike

Evan Cheng

unread,
Oct 26, 2021, 1:03:33 AM10/26/21
to AnkiDroid
Thanks for your help throughout my issue Mike, really appreciate it!

An update: now my tablet shows the message 
"Collection synchronized
Error syncing media data
java.io.IOException: write failed: ENOENT (No such file or directory)"

Ankidroid on my phone still does the infinitely syncing screen as "Synchronization; Finding changed media... Up: 3KB, down: 4KB" and the numbers are unchanging and it doesn't quit syncing by itself.
Reply all
Reply to author
Forward
0 new messages