Endless sync and won't cancel on android

Operating system

Android

Joplin version

2.9.8

Sync target

Dropbox

Editor

Markdown Editor

What issue do you have?

Yesterday I started up Joplin on my Android, started the sync (via Dropbox) as I had done a lot on my desktop the night before and started adding a couple of new notes while waiting for the rest to sync. After I bit I noticed it hadn't done anything but spin and said "syncing". I couldn't cancel it only said "canceling" but never stopped. Killing the task was the only way to get it to stop.

Tried clearing the cache, restarting the device, and restarting the app multiple times.

Never had this before and I have been using Joplin for over two years. Yes I know it is a old version of the app but I don't need the newer features and the newer versions are larger and I don't want to spend the storage for features I don't use/need.

After doing some more digging I finally found several posts regarding this issue. Most didn't find a solution except for reinstalling the app which of course cleared the database. I didn't want to do that as it would take many days to reload.

A little more digging and I found this solution by 3ter.

It worked! It seems that getting the app to get a sync target lock kicks it out of this endless syncing problem. After the desktop finished syncing I clicked sync again and it was off to the races.

What I did was created about 20-40 junk notes, started the desktop sync, then had android do the same (with time sync check turned off which is usually off in my case to save battery). It locked, let desktop finish, then started Android sync again and all is fine now.

I created the junk notes to make sure the desktop sync was still running when Android tried. Otherwise it might have finished before Android got going. And of course if you can turn off sync target lock, you want to make sure sync target lock is enabled/functional.

Anyway I am posting this in case anyone else runs into this problem. I would post on the original thread but of course it is locked.