Hello,
I am using Obsidian and Obsidian Sync since December. I have successfully migrated all my notes from Notion. After a while, I noticed that a few of my notes are empty (the files have 0 bytes in size). Firstly, I thought that I made some mistake or that it is an issue with some community plugin, but then I realized that is not the case.
I cannot fully reproduce the issue, but it is still occasionally happening, and I was able to track it down a bit.
It is happening every time I move or rename dozens of individual notes or just rename a folder with dozens of notes. The desktop app works fine, but the mobile app will happily overwrite some of the notes by uploading the same file with 0 bytes in size instead of downloading the file from the Obsidian Sync server.
Steps to reproduce
I am 100% sure that if I rename my “notes” folder with ~500 notes to “notes2” in my Obsidian desktop app and then open the Obsidian app on my Android phone, a few of the notes (~5) will be empty.
Expected result
Obsidian sync will properly sync my notes across multiple devices.
Actual result
Obsidian sync in mobile app randomly upload the same note with 0 bytes in size instead of downloading the note from Obsidian sync server.
Environment
Obsidian desktop app: v1.7.7 on my Arch Linux
Obsidian mobile app: v1.7.7 on my Android 13, Samsung S20+
The same happened on my Samsung Tab S7 without any community plugins.
Additional information
Please see the screenshot – the “upload complete” files are causing the issue. I did not make any changes on my mobile device, and the Obsidian app was closed (and killed). It should download the changed/moved notes instead of uploading empty files back.
Now, I am running find . -type f -empty
every day in my Obsidian folder to see if there are any empty notes to prevent losing data.