Obsidian Sync stuck in syncing loop (re-uploading the same files)

Obsidian Sync gets stuck in a loop very often.

I am still trying to figure out what’s exactly causing that.

Current Workaround/Solution

  1. When the sync loop starts, disconnect and reconnect your vault:
    Settings > Sync > Disconnect
  2. Reconnect and accept Merging changes
  3. Wait for sync to complete: Server pushed of your notes until Fully synced

Source : Discord - @bofa in #obsidian-sync > DoomHammer’s Sync woes

This solution takes some time, and I fear losing notes in the process.

Step to reproduce

At this point, it seems to be linked notes that open automatically on Obsidian launch as it restores the last sessions with tabs.

Environment

Debug info: Obsidian Debug info - 2024-04-03 - Pastebin.com

I am using and syncing my Obsidian vault on multiple devices.
By the way, when I open Obsidian on mobile, logs here are completely fine. It would not be stuck in a loop contrary to desktop at the same time.

Example

2024-04-02 10:21 - Uploading file physique-chimie-biochimie/Acides minéraux.md
2024-04-02 10:21 - Upload complete physique-chimie-biochimie/Acides minéraux.md
2024-04-02 10:21 - Uploading file physique-chimie-biochimie/Acides minéraux.md
2024-04-02 10:21 - Upload complete physique-chimie-biochimie/Acides minéraux.md
2024-04-02 10:22 - Uploading file physique-chimie-biochimie/Acides minéraux.md
2024-04-02 10:22 - Upload complete physique-chimie-biochimie/Acides minéraux.md
2024-04-02 10:22 - Uploading file physique-chimie-biochimie/Acides minéraux.md
2024-04-02 10:22 - Upload complete physique-chimie-biochimie/Acides minéraux.md

Full Sync logs for this example: Obsidian Sync logs - Pastebin.com

3 Likes

Not sure if relevant but there’s a thread on Discord about a Sync loop problem. I was under the impression it was at least partly fixed for the people who were experiencing it, but I could be wrong (it’s a long thread, unfortunately). Discord

You can also email [email protected] for direct help.

OK thanks @CawlinTeffid!
I’ve updated my initial post after checking the Discord thread.

I have the same problem now on my Android phone (my MacBooks work fine). I’ve tried reconnecting but it still ended up in the same loop …

My phone can receive the changes from my MacBook but is unable to upload new notes because it’s stuck in a loop trying to upload the same files over and over again.

As an update, it still happens frequently (several times a week) on my two laptops, but strangely enough, never on my Android from what I can remember.

I noticed a similar problem today.

  1. Sync wasn’t syncing across devices
  2. Checked sync settings (android)
  3. Observed that Sync was mysteriously disabled on my phone
  4. Re-enabled
  5. Noticed it uploading lots of files
  6. Checked back hours later and it’s still uploading lots of files
  7. Inspect logs closely
  8. Observe lots of duplicate files repeatedly showing up in sync logs
  9. Observe that notes recently updated on my phone aren’t being synced to my desktop
  10. Pausing and resuming doesn’t help
  11. Closing and reopening the app doesn’t help
  12. After disconnecting from the vault and reconnecting, I’m not seeing the infinite loop (it’s only been a few minutes) and I do see recent changes on my phone synced to my desktop. So maybe it’s mitigated for now. Thanks for the workaround!

Note: I did contact support twice today about these issues. I’ll try to remember to post here when I hear back.

(Also, it’s inconvenient that I can’t edit the above post anymore because too much time has passed since I originally wrote it…)

I have recently updated all of my plugins, and it seems to have solved the issue. I don’t have the loop anymore.

Table below shows plugins I had and their version before and after the upgrade:

plugin id previous version current version
cm-editor-syntax-highlight-obsidian 0.1.3 0.1.3
copy-as-html 1.1.3 1.1.3
dataview 0.5.64 0.5.66
frontmatter-modified-date 1.3.2 1.3.2
image-captions 1.1.0 1.1.0
metadata-hider 1.0.1 1.0.2
notes-dater 2.0.2 2.0.2
novel-word-count 2.14.0 3.9.0
obsidian-another-quick-switcher 11.0.0 11.4.0
obsidian-command-alias-plugin 2.1.0 2.1.0
contribution-graph 0.8.0 0.8.0
obsidian-excel-to-markdown-table 0.4.0 0.4.0
obsidian-file-color 1.0.3 1.1.0
obsidian-file-cooker 1.9.0 1.9.0
obsidian-fullscreen-plugin 0.1.2 0.1.2
obsidian-git 2.24.1 2.24.2
obsidian-heading-shifter 1.5.1 1.5.1
obsidian-hover-editor 0.11.17 0.11.20
obsidian-imgur-plugin 2.5.2 2.5.2
obsidian-linter 1.23.2 1.23.2
obsidian-zotero-desktop-connector 3.1.7 3.1.8
open-vscode 1.2.2 1.2.2
recent-files-obsidian 1.3.5 1.4.1
settings-search 1.3.8 1.3.10
simple-canvasearch 0.1.0 0.1.0
sync-graph-settings 1.0.1 1.2.0
table-editor-obsidian 0.18.1 0.21.0
templater-obsidian 1.16.0 2.3.3

I was not aware that community plugins didn’t get automatically updated as they were released.
That’s where this kind of feature being implemented would prove useful: Automatic plugin updates

In the meantime, I advise Obsidian users to use this handy plugin to manage your installed plugin versions: GitHub - swar8080/obsidian-plugin-update-tracker: Know when installed obsidian plugins have updates and evaluate the risk of upgrading

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