Sync corruption after moving folders

Steps to reproduce

  1. Get access to two Windows machines and 1 Android phone. I’m not sure all 3 are required but that’s what I had when I reproduced it.
  2. Create a new vault on one of the Windows machines.
  3. Copy in a reasonable amount of data. My vault is 50MB and has 500 files.
  4. Set up Sync and wait for it to sync to the server.
  5. Sync the vault to the Android phone and the other Windows machine. Wait for the sync to fully complete everywhere.
  6. On one Windows machine, create a new folder, and move all vault data into the folder using drag-and-drop. This triggers a large sync.
  7. Wait for it to complete and sync everywhere. For me it worked fine.
  8. On the second Windows machine, move all vault data back out of the folder you just copied it into. Wait for it to sync.

For me, this second move caused vault corruption. I now have duplicates of many files; they’re both inside the folder and outside of it. Some files were duplicated and some weren’t.

In my real vault, the first move caused corruption. So it may be an intermittent bug.

I still have the corrupt test vault so we can use it for investigation. I copied the sync log but I’d rather not post it publicly because it contains sensitive information.

For at least some of the duplicated files, the version history says No sync history for this file. For some of them, it shows the move/renames.

Did you follow the troubleshooting guide? Y

Expected result

Files and folders should be moved and synced properly.

Actual result

Some files were moved and some were copied. There may be additional corruption as well, given what I saw in my real vault.

Environment

Two Windows 11 boxes and one Android phone. Obsidian version 1.6.7 all 3 places.


Additional information

See Ongoing sync corruption issues on Windows/Android for what happened in my real vault and steps I took trying to debug or work around this.

Thank you, you can DM me a link to the sync logs from the devices.

Just want to clarify that I did the 2nd move on windows box #2, then after it finished syncing closed it, and went and saw the corruption on windows box #1.

Ran into some more corruption this morning. In addition the git plugin failed to back up the files since mid-November so I lost a few days’ worth of work.

The corruption shows up in the sync history for a particular file, but doesn’t show up in the overall sync history.