Operating system
Windows
Joplin version
3.2.11
Sync target
Joplin Cloud
Editor
Markdown Editor
What issue do you have?
Hello,
I got into Joplin after hearing about the accessibility improvements in the latest version, and I love the experience. I regularly use Mac, Windows and iOS so having an app that lets me have access to my notes while keeping them secure in an accessible and intuitive UI is great. However, during my testing something happened that shook my confidence somewhat and I'm now trying to understand why.
At first, I set up sync between my Mac and PC through the filesystem on a network share, and this worked great, with the minor snag that I had 2 copies of the Welcome notebook which I hadn't yet deleted. So I did that and used the app on both systems like this for a few days with no problems.
Later, I was working on a project with another person, who was also interested in trying out Joplin, so we both figured it would be a good time to try the cloud collaboration feature. I signed up for a Joplin cloud trial, then in the sync settings on my Mac I simply changed the target from filesystem to Joplin Cloud, signed in and we carried on our way.
The problem started the next day, when I wanted to add my Windows PC to the cloud because it was still set up to sync through the filesystem. With my prior experience of the welcome notebook being duplicated I first cleared out everything, then as before I went into the sync settings, changed the target from filesystem and Joplin Cloud and signed in.
To my surprise, this resulted in nearly all notes being erased from both devices, including the one shared note disappearing for the other person. Looking at the logs it seems the local state of the windows app of nothing being there except one thing in the trash took priority and all notes on the remote end were deleted. Locally I didn't lose too much work over it and I had a copy of the shared note in the trash which was kept, but this situation concerned me somewhat.
I attached a log snippet from the windows side when the first sync happened where it seems it deleted most notes from remote because they didn't exist locally, which of course then triggered the deletions on Mac which I verified by looking at the logs there.
Curiosly, when I added my iPhone to the same account today nothing like this happened, it just downloaded all notes that were in the cloud while also syncing a few local notes. In case this matter the phone wasn't set up to sync with anything unlike the computers.
My question is what happened here? Did I perhaps find a bug because I changed the sync target on an existing profile and this somehow caused the deletions, or is this intended behavior? This makes me wonder what should someone do in the future if they get a new computer or have to reinstall and want to set up sync properly. Would it behave the same way, so you'd first have to manually import from a backup before configuring sync, or I ran into a bug?
Log file
Sync_log.txt (20.7 KB)