iOS file loss with Obsidian Sync

Steps to reproduce

I have 4 devices, 2 Windows, 1 iOS (iPad, running latest iOS), 1 Droid…
my vault syncs via Obsidian, there is no other Sync service with access to my vault on any device

typically I edit in VSCode desktop, with Obsidian running in the background, then periodically I wake up the mobile apps from the background so they can pull in the changes… and that’s exactly what I was doing in these cases, iOS device was on my desk but locked (screen off)

Expected result

Obsidian on iOS should accept/download the changes (like it usually does)

Actual result

twice in the last week, the Obsidian Sync log on the iOS device has shown incoming updates rejected, then pushing its old version, undoing the changes… I also use RoboCopy on the desktop to keep an offline backup (not just for Obsidian, but OneDrive, etc.) so I was able to get my changes back… it happened late last night & went I went to grab the sync log this morning it had cleared itself (thanks iOS!)

Environment

  • Operating system:
  • Debug info: (typing this on Windows, not the i-poop, but this is from the i-poop…)
    ios 15.3.1 (Apple iPad)
    Plugins Enabled: 5 (Dataview, Calendar, obsidian markmind, Quick Latex for Obsidian, Dangling Links)

Additional information

Did the file exist on iOS?

Let us know if you can reproduce this issue and provide the sync long on the iOS and dekstop side.

if it happens again, I will grab the log immediately and post it

and yes… in both cases it was multiple files (1 editing session) that had been in the vault for a while, and were in sync prior to this… the second incident (last night’s) I had also created a new subfolder & moved several files into it… so desktop pushed the appropriate deletes & creates, and iOS pushed reverting deletes & creates

I strongly suspect it’s something related to the iOS tombstoning process (or whatever Apple calls it)… I’ve been a dev over 20 years, but I do primarily backend services (in .NET), never had to deal with mobile or the related online/offline stuff that goes with it)

I have now had twice what I believe to be the same or a very similar issue.
I have a mac laptop and an iOS device. Both yesterday and today this happened; I created a daily note late at night on the laptop and put some things into it. The next day I opened the daily note on my phone, it came up as the templater-created blank, and when I opened the laptop, the laptop version was overwritten by the phone version, rather than merging the changes.

The laptop is 0.14.4, the phone is (I’ve just realized) 1.1.0 (38). I’ll update to the latest testflight version and see if it happens again.

Here’s the relevant bit of the sync log today from the laptop. Mindtaker is the phone, fracton is the laptop.

2022-03-17 05:07 - Uploading file 03 daily/2022-03-17.md
2022-03-17 05:07 - Upload complete 03 daily/2022-03-17.md
2022-03-17 05:07 - Server pushed [fracton.attlocal.net] 03 daily/2022-03-17.md
2022-03-17 05:07 - Fully synced
2022-03-17 05:07 - Uploading file 03 daily/2022-03-17.md
2022-03-17 05:07 - Upload complete 03 daily/2022-03-17.md
2022-03-17 05:07 - Server pushed [fracton.attlocal.net] 03 daily/2022-03-17.md
2022-03-17 05:07 - Fully synced
2022-03-17 05:11 - Connecting to server
2022-03-17 05:11 - Connection successful. Detecting changes...
2022-03-17 05:11 - Fully synced
2022-03-17 07:11 - Connecting to server
2022-03-17 07:11 - Disconnected. Code: 1006 Abnormal Closure
2022-03-17 12:00 - Connecting to server
2022-03-17 12:00 - Disconnected. Code: 1006 Abnormal Closure
2022-03-17 15:57 - Connecting to server
2022-03-17 15:57 - Disconnected. Code: 1006 Abnormal Closure
2022-03-17 15:58 - Waiting to connect to server
2022-03-17 15:58 - Waiting to connect to server
2022-03-17 15:58 - Waiting to connect to server
2022-03-17 15:58 - Waiting to connect to server
2022-03-17 15:58 - Connecting to server
2022-03-17 15:58 - Connection successful. Detecting changes...
2022-03-17 15:58 - Server pushed [Mindtaker] 03 daily/2022-03-17.md
2022-03-17 15:58 - Downloading file 03 daily/2022-03-17.md
2022-03-17 15:58 - Downloading complete 03 daily/2022-03-17.md
2022-03-17 15:58 - Accepted 03 daily/2022-03-17.md
2022-03-17 15:58 - Fully synced
2022-03-17 16:04 - Uploading file 03 daily/2022-03-17.md
2022-03-17 16:04 - Upload complete 03 daily/2022-03-17.md
2022-03-17 16:04 - Server pushed [fracton.local] 03 daily/2022-03-17.md
2022-03-17 16:04 - Fully synced
2022-03-17 16:05 - Uploading file 03 daily/2022-03-17.md
2022-03-17 16:05 - Upload complete 03 daily/2022-03-17.md
2022-03-17 16:05 - Server pushed [fracton.local] 03 daily/2022-03-17.md
2022-03-17 16:05 - Fully synced