OneDrive sync problem

Operating system

macOS

Joplin version

3.1.24

Desktop version info

Joplin 3.1.24 (prod, darwin)

Sync target

OneDrive

What issue do you have?

A few days ago, I was having sync problems with the Joplin app on iOS, so I decided to check if the app on my iMac needed updating. It did, so I proceded to download the app directly from Microsoft. When I installed it, there was some problem. I got a message that the previous version was downloaded from the App Store. I forget the details but I had to somehow remove the app from the trash and relaunch the new app. All seemed fine until I was out shopping and my Shopping notebook wasn't syncing the updates I had made on iMac. I deleted the iOS app and installed it again and logged in to my OneDrive account. It still did not sync with my iMac data. I have gotten 2 emails that stated "We noticed that you recently deleted a large number of files from your OneDrive. If you want to restore these files, go to the OneDrive recycle bin, select what you want to restore, and click the Restore button." Since all the files have hashes as names, I wouldn't know what to restore or why. I opened the iOS app and it started deleting many files. I immediately removed the app because I couldn't cancel the sync. Now I don't know what to do. I depend on Joplin for many purposes so I need to fix this problem ASAP. What would be the procedure to fix this?

It's difficult to say what has happened exactly, however I can say for sure that you do not want to try restoring those files from within OneDrive. Ideally, you should have a backup file created automatically in your Joplin profile folder on the Mac.

If the backup file is there, then you could try the following, also on the Mac:

  1. Delete all notes locally, then "re-upload local data" to OneDrive.
  2. Restore all notes from backup.
  3. "Re-upload local date" to OneDrive again.
  4. "Delete local data and re-download" from OneDrive on other devices.

The "re-upload local data to sync target" and "delete local data and re-download from sync target" options are available in the Advanced Settings under Synchronisation.