Obsidian Sync intermittently empties incoming notes on Android and does not recognize the diff

Steps to reproduce

  1. Set conflict resolution to create conflict file on an Android and a laptop.
  2. Write a note on the laptop.
  3. Sync the note to the Android.
  4. Rename the note and edit it on the laptop.
  5. Sync the note to the Android.

Did you follow the troubleshooting guide? [Y/N]

Yes.

Expected result

The note is synced with the new name and the latest content.

Actual result

  • There was an empty note with the new name.
  • No conflict file is created.
  • The latest sync version history is the modification on the laptop.
  • The local history is just a empty note creation.

Since Obsidian does not recognize the diff, I could not restore the latest version. Instead, I restored the second latest version, then restored the latest version (which has become the non-latest in the history).

Environment

Android:

SYSTEM INFO:
    Obsidian version: 1.12.7 (303)
    API version: 1.12.7
    Operating system: Android 13 (Sony XQ-BC42)
    Webview version: 146.0.7680.177
    Login status: logged in
    Language: en
    Catalyst license: none
    Live preview: off
    Base theme: dark
    Community theme: Minimal 8.1.7
    Snippets enabled: 4
    Restricted mode: off
    Plugins installed: 9
    Plugins enabled: 1
        1: Calendar v1.5.10

RECOMMENDATIONS:
    Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
    Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Laptop:

SYSTEM INFO:
	Obsidian version: 1.12.7
	Installer version: 1.12.7
	Operating system: #20~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 01:28:37 UTC 2 6.17.0-20-generic
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: off
	Base theme: dark
	Community theme: Minimal 8.1.7
	Snippets enabled: 3
	Restricted mode: off
	Plugins installed: 8
	Plugins enabled: 8
		1: Calendar v1.5.10
		2: Definition List v0.2.5
		3: Linter v1.31.2
		4: Minimal Theme Settings v8.2.1
		5: Smart Typography v1.0.18
		6: Templater v2.18.1
		7: Typewriter Mode v1.3.1
		8: Unicode Search v0.7.3

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Yes, this time it was a Debian package and I am aware of that it is not supported here; I encountered this issue many times with Windows PCs too.


Additional information

  • It happens couple of times a month for two years.
  • No community plugins are enabled on the Android.
  • In the past, it happened with the Templater plugin and its folder templates enabled. The plugin inserted the template into the empty note, so Obsidian recognize the diff.
  • Always too late to notice it, I’m afraid I could not catch the Sync activity log at the time.

Screenshots:

I tried to reproduce it today and reproduced it with the following steps, with high probability:

  1. On the desktop, create 30 notes with the following commands or something:
    # In vault
    mkdir sync_test
    cd sync_test
    for i in $(seq -w 30); do echo "# Foobar $i" > "t_$i.md"; done
    
  2. Wait until the Sync icon turns green in the desktop app.
  3. Open the app on the Android.
  4. Wait until the Sync icon turns green in the Android app.
  5. Check 30 notes.

It seems like Sync is fine, somehow the app fails to read note contents. Nothing is changed by restarting the app; Restarting the device resolves the problem.

The network type does not seem to affect the probability; It is reproduced with either LTE or Wi-Fi.

The desktop:

SYSTEM INFO:
	Obsidian version: 1.12.7
	Installer version: 1.6.5
	Operating system: Windows 11 Home 10.0.26100
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: off
	Base theme: dark
	Community theme: Minimal 8.1.7
	Snippets enabled: 3
	Restricted mode: off
	Plugins installed: 9
	Plugins enabled: 8
		1: Calendar v1.5.10
		2: Definition List v0.2.5
		3: Linter v1.31.2
		4: Minimal Theme Settings v8.2.1
		5: Smart Typography v1.0.18
		6: Templater v2.18.1
		7: Typewriter Mode v1.3.1
		8: Unicode Search v0.7.3

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

The Android:

SYSTEM INFO:
	Obsidian version: 1.12.7 (303)
	API version: 1.12.7
	Operating system: Android 13 (Sony XQ-BC42)
	Webview version: 146.0.7680.177
	Login status: logged in
	Language: en
	Catalyst license: none
	Live preview: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 9
	Plugins enabled: 0

RECOMMENDATIONS:
	none

At first, I thought this was a Sync issue but it turned out to be the file-reading issue. So I will close this issue and created a new one:
When newly created notes are synced, Android app fails to read their contents - Bug reports - Obsidian Forum

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.