Non-stop sync

Operating system

Windows

Joplin version

3.7.22

Desktop version info

Joplin 3.7.22 (prod, win32)

Device: win32, 12th Gen Intel(R) Core(TM) i5-1240P
Client ID: e564b5f1532e457e8392e5a3103b0be4
Sync Version: 3
Profile Version: 54
Keychain Supported: Yes
Alternative instance ID: -
Sync target: OneDrive
Editor: Markdown

Revision: 95cab5a

Backup: 1.5.1
Freehand Drawing: 4.3.0

Sync target

OneDrive

What issue do you have?

I've tried Joplin a few times in the past and always gave up due to synchronization issues. In the past I've used Dropbox, Nextcloud, and OneDrive as synchronization targets, but none of them ever managed to sync everything successfully. I decided to give it another go over the past week and am having the same problems.

I'm using OneDrive as my sync target. My first test was to import a relatively large Evernote folder (about 1500 notes). Everything was imported and things generally looked good. My iPhone managed to sync (as far as I could tell), so I was pleased with that. Both apps kept working in the background, but I assumed attachments and images were being imported, so I didn't think too much about it. While this was going on, in the Windows desktop app, I created one folder with one note in it (about five words) and added one note (about ten words) to the Welcome folder. I made one note on my iPhone (about five words). After many hours, the Windows app eventually stopped synchronizing. My iPhone would always restart from zero each time I woke it back up. None of the new items appeared on the other platform. I decided to reduce the variables.

I deleted both the iPhone app and the Windows app and dug around in Windows and deleted any Joplin files I could find (data, configuration files, backups, etc.). I reinstalled the Windows app again (but did not reinstall the iPhone app in order to minimize traffic and potential conflicts), I set OneDrive as the target, and didn't make any changes to the default notes or folders. Joplin has been synchronizing for hours!

Attached is a screenshot that shows it having created nearly 16k local items, 9 remote items, and fetching over 58k resources. I've since rebooted my computer and restarted Joplin. Since restarting, the local items created and resources fetched are again in the thousands and shows no sign of stopping. That seems like a lot of work to deal with the default Welcome folder and the five default notes!

Is this normal? I want to love Joplin, but I can't figure out how to make synchronization work reliably. Thanks.

Screenshots

That seems like a lot of work to deal with the default Welcome folder and the five default notes!

If a lot of the items are resources, you wont see them populated in the ui of the main screen, and if notebooks arent downloaded yet, any notes will be listed under All notes instead of their respective notebook. Giving it synced over 74,000 items so far on the screenshot and OneDrive is a slow sync target (throttled by Microsoft), it's not surpising it is taking hours for the initial sync.

Dropbox is also a slow sync target and many hosted NextCloud plans are likely going to be throttled too, especially if it is a free plan.

Thanks for your feedback.

I agree that when there is a lot to sync that it is fair to expect it to take quite a while. That's the reason why I deleted everything and only synchronized the five default notes inside the Welcome folder with OneDrive. I have added nothing.

Things have settled down in the past 30 minutes, but it continues with constantly changing "Fetching resources" numbers (e.g. 3/7, 4/12, 2/9, etc.). All small resource numbers. Syncing of items seems to be finished, but it is very odd that it cannot finish with the resources, whatever they may be in these five notes that presumably were all installed locally with app anyway before uploading them to OneDrive.

It really puzzles me. I might delete everything once more and try syncing only the default notes with Dropbox. Possibly there is something on the server side that I can't see. That said, I appreciate your input and if you have any other suggestions, I'd be happy to hear them. Thanks.

I believe I have found the problem. After searching the Internet a bit more, I came across a reference to a folder that can only be seen on OneDrive in the browser. It is under My "Files > Apps > Joplin". That directory created upon setting OneDrive as the sync target, but is not removed when the app or local data is uninstalled/deleted. (Which has logic to it.) The directory apparently still had files that I deleted in the app earlier today, but the changes were obviously not completed on OneDrive. After deleting this directory, synchronization (at least small scale) is working as expected.

Fingers crossed that sync will continue working as I add more data! :crossed_fingers: