iOS content not synced to desktop

Steps to reproduce

  • Insert image on a note on ios from Photos via the in-obsidian “add image”
  • let sync finish

Sync logs on ios occasionally show:
null is not an object (evaluating 'this.socket.send') daily/2022-05-18.md

(Repeated insertion of images did not trigger this error)

On Desktop there are no sync errors but where the image should be is either nothing or the following error is shown:

Text I create on ios is also not reliably synced over, however in these cases there are no errors. Text I create on Windows or Ubuntu are quickly echoed to ios.

In writing this bug report, I created a code section on ios to paste the debug info into. Only the code section was synced, the text within the code section was not.

Images inserted into a note on desktop are correctly synced to ios

Expected result

Everything synced across all devices

Actual result

Images not synced and for one of the images the following error was shown

Otherwise nothing is synced

Environment

ios:

SYSTEM INFO:
	Operating system: ios 15.4.1 (Apple iPad)
	Login status: logged in
	Catalyst license: insider
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: Minimal
	Snippets enabled: 1
	Safe mode: off
	Plugins installed: 16
	Plugins enabled: 10
		1: Editor Syntax Highlight
		2: Natural Language Dates
		3: Excalidraw
		4: Calendar
		5: Minimal Theme Settings
		6: Emoji Shortcodes
		7: Tasks
		8: Todoist Plugin
		9: Advanced Tables
		10: Admonition

RECOMMENDATIONS:
	Update installer: installer version too low, please download from https://obsidian.md/download and reinstall.
	Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help 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 help vault or disable community plugins.

Ubuntu

SYSTEM INFO:
	Obsidian version: v0.14.6
	Installer version: v0.14.6
	Operating system: #46-Ubuntu SMP Thu Apr 14 20:06:04 UTC 2022 5.13.0-41-generic
	Login status: logged in
	Catalyst license: insider
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: Minimal
	Snippets enabled: 1
	Safe mode: off
	Plugins installed: 14
	Plugins enabled: 13
		1: Editor Syntax Highlight
		2: Natural Language Dates
		3: Excalidraw
		4: Minimal Theme Settings
		5: Pandoc Plugin
		6: Emoji Shortcodes
		7: Tag Wrangler
		8: Tasks
		9: Todoist Plugin
		10: Advanced Tables
		11: Admonition
		12: Calendar
		13: Excel to Markdown Table

RECOMMENDATIONS:
	Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help 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 help vault or disable community plugins.

Windows:

SYSTEM INFO:
	Obsidian version: v0.13.33
	Installer version: v0.13.23
	Operating system: Windows 10 Home 10.0.19044
	Login status: logged in
	Catalyst license: insider
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: Minimal
	Snippets enabled: 1
	Safe mode: off
	Plugins installed: 14
	Plugins enabled: 12
		1: Editor Syntax Highlight
		2: Natural Language Dates
		3: Excalidraw
		4: Minimal Theme Settings
		5: Pandoc Plugin
		6: Emoji Shortcodes
		7: Tag Wrangler
		8: Tasks
		9: Todoist Plugin
		10: Advanced Tables
		11: Admonition
		12: Excel to Markdown Table

RECOMMENDATIONS:
	Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help 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 help vault or disable community plugins.

All images don’t sync or sometimes an image is not synced?

Obsidian sync doesn’t sync in the backgroud so the app has to be open for it to sync. If you keep the app open, does the image that wasn’t synced before get synced on not?

It appears /all/ images do not sync from ios → desktop.

To confirm, I am keeping obsidian in the foreground as the active window on ios, however the image never appears on desktop.

I just created a new daily note on ios and added an image. The note synced to desktop and immediately showed the “file is not created yet”. I’ve left this for a few minutes and it did not show up. My internet is a reliable urban 100MBps up connection and this image is only a couple MB so I don’t believe it’s an upload issue.

I’ve also confirmed that on both devices “Sync images” is enabled .
I’ve also confirmed that the _attachments subfolder name is the same and “in subfolder under current folder” is

what’s the image name and extension?

Do what you did again, post screenshots of your obsidian’s sync settings and sync logs in both devices.

Thanks

It is a screenshot I took on my ipad
CE9649F6-2654-4E32-A410-8E07C1B252EC.png

The 19:44 logs correspond to inserting the imagine on ios (did it twice)

ios side:

2022-05-19 11:58 - Connecting to server
2022-05-19 11:58 - Connection successful. Detecting changes...
[ snip ]
2022-05-19 19:44 - Connecting to server
2022-05-19 19:44 - Connection successful. Detecting changes...
2022-05-19 19:45 - Uploading file daily/2022-05-19.md
2022-05-19 19:45 - Upload complete daily/2022-05-19.md
2022-05-19 19:45 - Server pushed [Paddy (2)] daily/2022-05-19.md
2022-05-19 19:45 - Uploading file daily/2022-05-19.md
2022-05-19 19:45 - Upload complete daily/2022-05-19.md
2022-05-19 19:45 - Server pushed [Paddy (2)] daily/2022-05-19.md
2022-05-19 19:46 - Uploading file daily/2022-05-19.md
2022-05-19 19:46 - Upload complete daily/2022-05-19.md
2022-05-19 19:46 - Server pushed [Paddy (2)] daily/2022-05-19.md


Desktop:

2022-05-18 09:47 - Connecting to server
2022-05-18 09:47 - Connection successful. Detecting changes...
2022-05-18 09:47 - Fully synced
[ snip ] 
2022-05-19 19:45 - Server pushed [Paddy (2)] daily/2022-05-19.md
2022-05-19 19:45 - Downloading file daily/2022-05-19.md
2022-05-19 19:45 - Downloading complete daily/2022-05-19.md
2022-05-19 19:45 - Accepted daily/2022-05-19.md
2022-05-19 19:45 - Fully synced
2022-05-19 19:45 - Server pushed [Paddy (2)] daily/2022-05-19.md
2022-05-19 19:45 - Downloading file daily/2022-05-19.md
2022-05-19 19:45 - Downloading complete daily/2022-05-19.md
2022-05-19 19:45 - Accepted daily/2022-05-19.md
2022-05-19 19:45 - Fully synced
2022-05-19 19:46 - Server pushed [Paddy (2)] daily/2022-05-19.md
2022-05-19 19:46 - Downloading file daily/2022-05-19.md
2022-05-19 19:46 - Downloading complete daily/2022-05-19.md
2022-05-19 19:46 - Accepted daily/2022-05-19.md
2022-05-19 19:46 - Fully synced
2022-05-19 19:46 - Server pushed [Paddy (2)] daily/2022-05-19.md
2022-05-19 19:46 - Downloading file daily/2022-05-19.md
2022-05-19 19:46 - Downloading complete daily/2022-05-19.md
2022-05-19 19:46 - Accepted daily/2022-05-19.md
2022-05-19 19:46 - Fully synced
2022-05-19 19:46 - Server pushed [Paddy (2)] daily/2022-05-19.md
2022-05-19 19:46 - Downloading file daily/2022-05-19.md
2022-05-19 19:46 - Downloading complete daily/2022-05-19.md
2022-05-19 19:46 - Accepted daily/2022-05-19.md
2022-05-19 19:46 - Fully synced
2022-05-19 19:46 - Server pushed [Paddy (2)] daily/2022-05-19.md
2022-05-19 19:46 - Downloading file daily/2022-05-19.md
2022-05-19 19:46 - Downloading complete daily/2022-05-19.md
2022-05-19 19:46 - Accepted daily/2022-05-19.md
2022-05-19 19:46 - Fully synced


In Which directory of your vault is this image stored?
Do you have any excluded folder?

I’ve triple checked and both devices claim no exclusions. I’ve never used that so that seems correct.

In Which directory of your vault is this image stored?

daily/_attachments

This setting appears to be the same on ios and desktop

Is this image really in _attachments?

What happens if add an image in iOS vault? Does it appear in sync logs?

It is on the ios side:

What happens if add an image in iOS vault?
I’;m currently getting, on both desktop and ios the following error

2022-05-19 19:53 - Fully synced
2022-05-19 23:02 - Connecting to server
2022-05-19 23:03 - Disconnected. Code: 1006 Abnormal Closure
[snip of repeat of this ]
2022-05-19 23:15 - Disconnected. Code: 1006 Abnormal Closure
2022-05-19 23:15 - Waiting to connect to server
2022-05-19 23:16 - Waiting to connect to server
2022-05-19 23:16 - Waiting to connect to server
2022-05-19 23:17 - Waiting to connect to server
2022-05-19 23:17 - Waiting to connect to server
2022-05-19 23:18 - Waiting to connect to server
2022-05-19 23:18 - Waiting to connect to server
2022-05-19 23:19 - Waiting to connect to server
2022-05-19 23:19 - Waiting to connect to server
2022-05-19 23:20 - Connecting to server
2022-05-19 23:20 - Disconnected. Code: 1006 Abnormal Closure
2022-05-19 23:21 - Waiting to connect to server
2022-05-19 23:21 - Waiting to connect to server
2022-05-19 23:22 - Waiting to connect to server
2022-05-19 23:22 - Connecting to server
2022-05-19 23:22 - Waiting to connect to server

What happens if you rename that image to something like image.png

Same thing.

On ipad I created a new daily note, wrote ‘hi’ and then added the renamed image from files.app

Then:

  • ipad sync logs don’t show anything about the image
  • desktop gets the following

image

I’ve confirmed the file is at that path on ipad.
Desktop sync logs do not show anything about that image file.

n.b. that text seems to be correctly syncing today whereas it was not pre-weekend

add an image in the root of your vault in the ipad with a simple filename. No need to create a new note with it.
Attach a screenshot of the ipad sync logs.
And a screenshot of your exclusion page on ipad.

Here you go



Do you have anything added to file exclusion?
File & Links > excluded files?

I only see that option on desktop. Is that expected?
However, it is empty. Indeed, this is not something I’ve ever setup
image

On the iPad if you pull the right sidebar, does the sync icon is free and says fully synced when you hover over there?

Oh interesting, TIL this pane.

image

This is a disabled plugin I forgot was even installed. It just sat on this and did not ever change, clearly stuck. I removed the plugin on ios and instantly sync started to work again. ipad pushed all the images, and the desktop pulled them down as expected.

Just prior to removing this plugin I checked sync logs again and only saw the Connecting to server…, Connection Successful. Detecting changes… heartbeat.

I suppose this is then really a bug report that

  1. A plugin config/manifest file was stuck in an uploading state that didn’t ever clear
  2. that the sync logs do not show any errors or indication that a plugin’s manifest file is stuck

edit: Is 1, 2 expected behaviour?

We are aware that in rare circumstances sync gets stuck. There is a tentative fix incoming.