The issue
I’m experiencing issues with [[Obsidian Sync]] resulting in notes being “duplicated” after a file rename operation, and possibly seen after a file move operation (actions performed within Obsidian). The issue has occurred multiple times on 1.4.13-release (and 1.4.13-installer), but also traced back some issues to pre 1.4.13 release; most likely 1.4.12-release (Insider) and previous installer (1.3.5?).
To reproduce
Note that I’m having a hard time reproducing the issue now (was easy to reproduce on 2023-09-18 around 20:00 CEST).
The steps to reproduce (when the issue occurs)
After a rename file operation (F2 > Renamed title > Enter)
- Step 1: Create a new file:
NewFile.md
(new note) - Step 2: Change the note title, e.g. from
NewFile.md
toFirstRename.md
- Result: Both
NewFile.md
andFirstRename.md
now exists, with the very same content (but different names) - Note that the editor automatically “switches” to the new/renamed file (so it actually seems to be working as expected), but the “old file” (e.g.
NewFile.md
) is available using the Obsidian Quick Switcher (with the old name, that is).
After a file move operation (Move current file to another folder
)
- Step 1: Create a new file:
NewFile.md
(new note) - Step 2: Move the file to another folder.
- Result: Both files now exist (duplicate, but in different folders)
- Note that the editor automatically “switches” to the new/moved file (so it actually seems to be working as expected), but the “old file” is available using the Obsidian Quick Switcher (with the old path, that is).
Initial findings
It seems to me like Obsidian Sync is maybe (re)downloading the (old) file, when it should(?) only be deleting the (previous) file (pre rename), and then upload the new (renamed) file.
Partial Obsidian Sync log, from issue [[2023-09-18]] (when I could reproduce).
2023-09-18 19:59 - Fully synced
2023-09-18 20:00 - Uploading file 202309182000.md
2023-09-18 20:00 - Upload complete 202309182000.md
2023-09-18 20:00 - Fully synced
2023-09-18 20:00 - Deleting remote file 202309182000.md
2023-09-18 20:00 - Uploading file 202309182000 test 1.md
2023-09-18 20:00 - Upload complete 202309182000 test 1.md
2023-09-18 20:00 - Fully synced
2023-09-18 20:00 - Uploading file 202309182000 test 1.md
2023-09-18 20:00 - Upload complete 202309182000 test 1.md
2023-09-18 20:00 - Server pushed [archer] 202309182000 test 1.md
2023-09-18 20:00 - Downloading file 202309182000 test 1.md
2023-09-18 20:00 - Downloading complete 202309182000 test 1.md
2023-09-18 20:00 - Accepted 202309182000 test 1.md
2023-09-18 20:00 - Uploading file 202309182000 test 1 oppdatert.md
2023-09-18 20:00 - Upload complete 202309182000 test 1 oppdatert.md
2023-09-18 20:00 - Fully synced
2023-09-18 20:00 - Downloading file 202309182000 test 1 oppdatert.md
2023-09-18 20:00 - Downloading complete 202309182000 test 1 oppdatert.md
2023-09-18 20:00 - Accepted 202309182000 test 1 oppdatert.md
2023-09-18 20:00 - Uploading file 202309182000 test 1 oppdatert 2.md
2023-09-18 20:00 - Upload complete 202309182000 test 1 oppdatert 2.md
2023-09-18 20:00 - Fully synced
Details
202309182000.md
: initial (new) file, which was successfully deleted post changing the title (filename)202309182000 test 1.md
: updated filename (first time)202309182000 test 1 oppdatert.md
: updated filename (second)202309182000 test 1 oppdatert 2.md
: updated filename (third)- Post rename operations, I now have three (3) files with identical content but different filenames.
Sidenotes
[archer]
is the same computer/MacOS.- I did not change any tabs or windows in Obsidian (all done within the same tab/window/pane)
- I did not have [[Obsidian]] open on any other device when the issue occured
- I only use [[Obsidian Sync]] for syncing my notes
- I have a self-hosted [[Gitea]] (git repo), using a push-only approach, primarily for change tracking and version control (where I initially detected this issue)
- I have [[DEVONthink]] indexing my [[Obsidian Vault]] (index only)
Possibly related threads from Discord
CawlinTeffid — 09/17/2023 6:21 AM
source: Discord
Flint Fidenza-Foogazzi — 09/16/2023 11:44 AM
source: Discord
Here is another example, when I moved a file (template, person.md
) to my templates/
folder yesterday, and suddenly found that both file existed. Notice that there is no “Deleting remote file” operation in my sync log.
2023-09-19 10:17 - Uploading file template, person.md
2023-09-19 10:17 - Upload complete template, person.md
2023-09-19 10:17 - Fully synced
2023-09-19 10:18 - Uploading file template, person.md
2023-09-19 10:18 - Upload complete template, person.md
2023-09-19 10:18 - Fully synced
2023-09-19 10:18 - Rejected server change template, person.md
2023-09-19 10:18 - Uploading file template, person.md
2023-09-19 10:18 - Upload complete template, person.md
2023-09-19 10:18 - Fully synced
2023-09-19 10:18 - Rejected server change template, person.md
2023-09-19 10:18 - Uploading file template, person.md
2023-09-19 10:18 - Upload complete template, person.md
2023-09-19 10:18 - Fully synced
2023-09-19 10:18 - Uploading file template, person.md
2023-09-19 10:18 - Upload complete template, person.md
2023-09-19 10:18 - Fully synced
2023-09-19 10:19 - Downloading file template, person.md
2023-09-19 10:19 - Downloading complete template, person.md
2023-09-19 10:19 - Accepted template, person.md
2023-09-19 10:19 - Uploading file templates/template, person.md
2023-09-19 10:19 - Upload complete templates/template, person.md
2023-09-19 10:19 - Fully synced
2023-09-19 10:19 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:19 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:19 - Fully synced
2023-09-19 10:19 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:19 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:19 - Fully synced
2023-09-19 10:19 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:19 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:19 - Fully synced
2023-09-19 10:19 - Rejected server change REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Fully synced
2023-09-19 10:20 - Rejected server change REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Fully synced
2023-09-19 10:20 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Fully synced
2023-09-19 10:20 - Rejected server change REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:20 - Fully synced
2023-09-19 10:22 - Uploading file template, person.md
2023-09-19 10:22 - Upload complete template, person.md
2023-09-19 10:22 - Fully synced
2023-09-19 10:22 - Rejected server change template, person.md
2023-09-19 10:22 - Uploading file template, person.md
2023-09-19 10:22 - Upload complete template, person.md
2023-09-19 10:22 - Fully synced
2023-09-19 10:22 - Uploading file template, person.md
2023-09-19 10:22 - Upload complete template, person.md
2023-09-19 10:22 - Fully synced
2023-09-19 10:22 - Rejected server change template, person.md
2023-09-19 10:23 - Uploading file template, person.md
2023-09-19 10:23 - Upload complete template, person.md
2023-09-19 10:23 - Fully synced
2023-09-19 10:23 - Rejected server change template, person.md
2023-09-19 10:23 - Uploading file template, person.md
2023-09-19 10:23 - Upload complete template, person.md
2023-09-19 10:23 - Fully synced
2023-09-19 10:23 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:23 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:23 - Fully synced
2023-09-19 10:23 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:23 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:23 - Fully synced
2023-09-19 10:24 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:24 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:24 - Fully synced
2023-09-19 10:24 - Uploading file template, person.md
2023-09-19 10:24 - Upload complete template, person.md
2023-09-19 10:24 - Fully synced
2023-09-19 10:24 - Rejected server change template, person.md
2023-09-19 10:25 - Uploading file template, person.md
2023-09-19 10:25 - Upload complete template, person.md
2023-09-19 10:25 - Fully synced
2023-09-19 10:25 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:25 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:25 - Fully synced
2023-09-19 10:25 - Uploading file REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:25 - Upload complete REDACTED-IGNORE-AnotherFile.md
2023-09-19 10:25 - Fully synced
And here is another “rename operation” from today
NewFile.md
(a refactored file from existing content)FirstRename.md
(renamedNewFile
>FirstRename
)SecondRename.md
(renamedFirstRename
>SecondRename
)ThirdRename.md
(renamedSecondRename
>ThirdRename
)
As seen in the logs:
2023-09-20 13:27 - Deleting remote file NewFile.md
2023-09-20 14:31 - Deleting remote file SecondRename.md
But both NewFile.md
(initial file) and Thirdrename.md
exist (partially duplicates based on content).
Note: I sanitized the file names, and removed other messages (just leaving the upload/deleting/rejected/downloading parts of this specific file).
2023-09-20 13:27 - Uploading file NewFile.md
2023-09-20 13:27 - Upload complete NewFile.md
2023-09-20 13:27 - Deleting remote file NewFile.md
2023-09-20 13:27 - Uploading file FirstRename.md
2023-09-20 13:27 - Upload complete FirstRename.md
2023-09-20 13:27 - Uploading file FirstRename.md
2023-09-20 13:27 - Upload complete FirstRename.md
2023-09-20 13:27 - Rejected server change FirstRename.md
2023-09-20 13:28 - Uploading file FirstRename.md
2023-09-20 13:28 - Upload complete FirstRename.md
2023-09-20 13:28 - Rejected server change FirstRename.md
2023-09-20 13:28 - Uploading file FirstRename.md
2023-09-20 13:28 - Upload complete FirstRename.md
2023-09-20 13:28 - Downloading file FirstRename.md
2023-09-20 13:28 - Downloading complete FirstRename.md
2023-09-20 13:28 - Accepted FirstRename.md
2023-09-20 13:28 - Uploading file SecondRename.md
2023-09-20 13:28 - Upload complete SecondRename.md
2023-09-20 13:28 - Uploading file SecondRename.md
2023-09-20 13:28 - Upload complete SecondRename.md
2023-09-20 13:28 - Rejected server change SecondRename.md
2023-09-20 13:29 - Uploading file SecondRename.md
2023-09-20 13:29 - Upload complete SecondRename.md
2023-09-20 13:29 - Rejected server change SecondRename.md
2023-09-20 13:29 - Uploading file SecondRename.md
2023-09-20 13:29 - Upload complete SecondRename.md
2023-09-20 13:29 - Rejected server change SecondRename.md
2023-09-20 13:29 - Uploading file SecondRename.md
2023-09-20 13:29 - Upload complete SecondRename.md
2023-09-20 13:29 - Rejected server change SecondRename.md
2023-09-20 13:29 - Uploading file SecondRename.md
2023-09-20 13:29 - Upload complete SecondRename.md
2023-09-20 13:30 - Uploading file SecondRename.md
2023-09-20 13:30 - Upload complete SecondRename.md
2023-09-20 13:30 - Rejected server change SecondRename.md
2023-09-20 13:30 - Uploading file SecondRename.md
2023-09-20 13:30 - Upload complete SecondRename.md
2023-09-20 13:30 - Uploading file SecondRename.md
2023-09-20 13:30 - Upload complete SecondRename.md
2023-09-20 13:31 - Uploading file SecondRename.md
2023-09-20 13:31 - Upload complete SecondRename.md
2023-09-20 13:31 - Rejected server change SecondRename.md
2023-09-20 13:31 - Uploading file SecondRename.md
2023-09-20 13:31 - Upload complete SecondRename.md
2023-09-20 13:31 - Uploading file SecondRename.md
2023-09-20 13:31 - Server pushed [archer] SecondRename.md
2023-09-20 13:31 - Upload complete SecondRename.md
2023-09-20 13:31 - Uploading file SecondRename.md
2023-09-20 13:31 - Upload complete SecondRename.md
2023-09-20 13:31 - Rejected server change SecondRename.md
2023-09-20 13:31 - Uploading file SecondRename.md
2023-09-20 13:31 - Upload complete SecondRename.md
2023-09-20 13:32 - Rejected server change SecondRename.md
2023-09-20 13:32 - Uploading file SecondRename.md
2023-09-20 13:32 - Upload complete SecondRename.md
2023-09-20 13:32 - Rejected server change SecondRename.md
2023-09-20 13:32 - Uploading file SecondRename.md
2023-09-20 13:32 - Upload complete SecondRename.md
2023-09-20 14:06 - Uploading file SecondRename.md
2023-09-20 14:06 - Upload complete SecondRename.md
2023-09-20 14:27 - Uploading file SecondRename.md
2023-09-20 14:27 - Upload complete SecondRename.md
2023-09-20 14:27 - Rejected server change SecondRename.md
2023-09-20 14:28 - Uploading file SecondRename.md
2023-09-20 14:28 - Upload complete SecondRename.md
2023-09-20 14:28 - Server pushed [archer] SecondRename.md
2023-09-20 14:28 - Rejected server change SecondRename.md
2023-09-20 14:28 - Uploading file SecondRename.md
2023-09-20 14:28 - Upload complete SecondRename.md
2023-09-20 14:28 - Uploading file SecondRename.md
2023-09-20 14:28 - Upload complete SecondRename.md
2023-09-20 14:28 - Rejected server change SecondRename.md
2023-09-20 14:28 - Uploading file SecondRename.md
2023-09-20 14:28 - Upload complete SecondRename.md
2023-09-20 14:31 - Deleting remote file SecondRename.md
2023-09-20 14:31 - Uploading file ThirdRename.md
2023-09-20 14:31 - Upload complete ThirdRename.md
Later, MANUALLY deleted the file (again) from Obsidian (after detected the duplicate).
2023-09-20 14:33 - Deleting remote file FirstRename.md
Debug info
SYSTEM INFO:
Obsidian version: v1.4.13
Installer version: v1.4.13
Operating system: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 22.6.0
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: adapt to system
Community theme: AnuPpuccin v1.4.4
Snippets enabled: 4
Restricted mode: off
Plugins installed: 68
Plugins enabled: 58
1: Tasks v4.7.0
2: Periodic Notes v0.0.17
3: Templater v1.16.0
4: Tag Wrangler v0.5.13
5: Readwise Official v2.0.1
6: Hypothes.is v0.1.19
7: Calendar v1.5.10
8: Code block from selection v1.0.7
9: Natural Language Dates v0.6.1
10: Note Refactor v1.8.2
11: Extract Highlights v0.0.18
12: Excel to Markdown Table v0.4.0
13: Obsidian42 - BRAT v0.7.0
14: Version History Diff v2.1.9
15: Dataview v0.5.58
16: Zoom v1.1.2
17: Markdown Table Editor v0.3.1
18: Copy Block Link v1.0.4
19: Obsidian Git v2.22.0
20: Style Settings v1.0.7
21: Task Progress Bar v1.6.1
22: Workbench v1.6.1
23: Lumberjack 🪓 🪵 v1.3.0
24: Omnisearch v1.17.1
25: Wikilinks to MDLinks v0.0.12
26: Various Complements v9.0.0
27: List Callouts v1.1.4
28: Divide & Conquer v1.0.0
29: Advanced Tables v0.19.1
30: Annotator v0.2.10
31: New Bullet With Time v1.3.0
32: Todoist Link v2.2.0
33: Auto Link Title v1.4.1
34: Text Extractor v0.4.6
35: Zotero Integration v3.0.10
36: Graph Analysis v0.15.4
37: Linter v1.20.0
38: Quick Explorer v0.2.8
39: Local REST API v1.6.0
40: Local Images Plus v0.15.7
41: Obsidian OCR v2.0.0
42: Link Favicons v1.8.3
43: Outliner v4.8.0
44: DB Folder v3.5.0
45: Plugin Update Tracker v1.5.2
46: Heatmap Calendar v0.6.0
47: Another Quick Switcher v9.1.1
48: Tag Search v1.2.1
49: Vimrc Support v0.9.0
50: Supercharged Links v0.10.3
51: Smarter Markdown Hotkeys v1.16.4
52: Shukuchi v0.2.1
53: Jump to link v0.4.4
54: Sort & Permute lines v0.7.0
55: Callout Manager v1.0.1
56: Media Extended v2.11.1
57: Floating Search v3.4.5
58: Better Search Views v0.2.2
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.