Repository navigation
Closed
Labels
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Milestone
Description
Does your log mention database corruption?
No
When trying to reproduce the issue #7032 I saw that sometimes folders would not sync.
The setup
First system
- Linux Mint 20 ulyana
- syncthing v1.10.0 "Fermium Flea" (go1.15.2 linux-amd64) [email protected] 2020-09-15 17:38:23 UTC [noupgrade]
Second system
- Ubuntu 18.04 bionic
- syncthing v1.10.0 "Fermium Flea" (go1.15.2 linux-amd64) [email protected] 2020-09-15 17:38:23 UTC [noupgrade]
Steps taken
- Create a new folder in the default sync directory with the linux file browser 'nemo'.
- Initially the folder is named "Untitled folder".
- Accept the name by pressing enter.
- Wait for the folder to be synchronized to the second computer.
- Rename the folder on the first computer to
tmp. - Wait for the rename to be synced to the second computer.
- Create a new folder inside
tmpvia Nemo on the first computer. - Rename it immediately to
a. - Before the folder is created on the second system create a file inside the folder
a. - The file is initially named
Untitled Document. - Rename the file to
a. - The folder
aand the document inside it calledaare never synced to the second system.
Logs
I activated model in the debug facilities on both systems.
System 1
2020-10-31 18:56:47 Enabled debug data for "model"
2020-10-31 18:56:51 Established secure connection to 3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ at 192.168.1.231:22000-192.168.1.43:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256
2020-10-31 18:56:51 Device 3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ client is "syncthing v1.10.0" named "Pixel 3" at 192.168.1.231:22000-192.168.1.43:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256
2020-10-31 18:56:51 Device 3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ folder "Default Folder" (default) is delta index compatible (mlv=2267)
2020-10-31 18:56:51 Starting indexSender for default to at 192.168.1.231:22000-192.168.1.43:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256 (slv=2267)
2020-10-31 18:56:51 progress emitter: bytes completed for default: 0
2020-10-31 18:56:51 model@0xc000103800 Completion(ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA, "default"): map[completion:100 globalBytes:1579109578 globalItems:599 needBytes:0 needDeletes:0 needItems:0 sequence:2217]
2020-10-31 18:56:51 model@0xc000103800 Completion(3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ, "default"): map[completion:100 globalBytes:1579109578 globalItems:599 needBytes:0 needDeletes:0 needItems:0 sequence:2093]
2020-10-31 18:57:11 Sent usage report (version 3)
2020-10-31 18:57:39 Connection to 3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ at 192.168.1.231:22000-192.168.1.43:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256 closed: reading length: read tcp 192.168.1.231:22000->192.168.1.43:22000: read: connection reset by peer
2020-10-31 18:57:39 Exiting indexSender for default to at 192.168.1.231:22000-192.168.1.43:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256: <nil>
2020-10-31 18:58:16 sendreceive/default@0xc0002c2380 Scan due to watcher
2020-10-31 18:58:16 indexSender@0xc0003f9730 for default to at 192.168.1.231:22000-116.203.108.209:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<85 bytes)
2020-10-31 18:58:16 Index update (in): ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA / "default": 1 files
2020-10-31 18:58:17 progress emitter: bytes completed for default: 0
2020-10-31 18:58:17 model@0xc000103800 Completion(ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA, "default"): map[completion:100 globalBytes:1579109706 globalItems:600 needBytes:0 needDeletes:0 needItems:0 sequence:2218]
2020-10-31 18:58:56 sendreceive/default@0xc0002c2380 Scan due to watcher
2020-10-31 18:58:56 sendreceive/default@0xc0002c2380 Scan due to watcher
2020-10-31 18:58:56 indexSender@0xc0003f9730 for default to at 192.168.1.231:22000-116.203.108.209:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<74 bytes)
2020-10-31 18:58:56 marking file as deleted Directory{Name:"Untitled Folder", Sequence:2268, Permissions:0775, ModTime:2020-10-31 18:58:56.51704532 +0100 CET, Version:{[{BCROSJ5 1604167136} {FPE4P7T 1603469496}]}, VersionHash:, Deleted:true, Invalid:false, LocalFlags:0x0, NoPermissions:false}
2020-10-31 18:58:56 Index update (in): ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA / "default": 1 files
2020-10-31 18:58:57 indexSender@0xc0003f9730 for default to at 192.168.1.231:22000-116.203.108.209:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<87 bytes)
2020-10-31 18:58:57 Index update (in): ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA / "default": 1 files
2020-10-31 18:58:57 progress emitter: bytes completed for default: 0
2020-10-31 18:58:57 model@0xc000103800 Completion(ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA, "default"): map[completion:100 globalBytes:1579109706 globalItems:600 needBytes:0 needDeletes:0 needItems:0 sequence:2220]
2020-10-31 18:59:19 sendreceive/default@0xc0002c2380 Scan due to watcher
2020-10-31 18:59:19 sendreceive/default@0xc0002c2380 Scan due to watcher
2020-10-31 19:00:25 Established secure connection to 3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ at 192.168.1.231:22000-192.168.1.43:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256
2020-10-31 19:00:25 Device 3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ client is "syncthing v1.10.0" named "Pixel 3" at 192.168.1.231:22000-192.168.1.43:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256
2020-10-31 19:00:27 progress emitter: bytes completed for default: 0
2020-10-31 19:00:27 model@0xc000103800 Completion(ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA, "default"): map[completion:100 globalBytes:1579109706 globalItems:600 needBytes:0 needDeletes:0 needItems:0 sequence:2220]
2020-10-31 19:00:27 model@0xc000103800 Completion(3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ, "default"): map[completion:99.99999189416673 globalBytes:1579109706 globalItems:600 needBytes:128 needDeletes:1 needItems:1 sequence:2093]
System 2
2020-10-31 18:57:52 Enabled debug data for "model"
2020-10-31 18:58:16 Index update (in): BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH / "default": 1 files
2020-10-31 18:58:16 sendreceive/default@0xc00008a000 pulling
2020-10-31 18:58:16 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
2020-10-31 18:58:16 sendreceive/default@0xc00008a000 Handling directory Untitled Folder
2020-10-31 18:58:16 sendreceive/default@0xc00008a000 parent not missing Untitled Folder
2020-10-31 18:58:16 need dir
Directory{Name:"Untitled Folder", Sequence:2268, Permissions:0775, ModTime:2020-10-31 18:58:06.51704532 +0100 CET, Version:{[{BCROSJ5 1604167096} {FPE4P7T 1603469496}]}, VersionHash:, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false}
Directory{Name:"Untitled Folder", Sequence:2209, Permissions:0775, ModTime:2020-10-30 18:23:19.557839089 +0100 CET, Version:{[{BCROSJ5 1604078599} {FPE4P7T 1603469496}]}, VersionHash:, Deleted:true, Invalid:false, LocalFlags:0x0, NoPermissions:false}
2020-10-31 18:58:16 sendreceive/default@0xc00008a000 changed 1 on try 1
2020-10-31 18:58:16 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
2020-10-31 18:58:16 sendreceive/default@0xc00008a000 changed 0 on try 2
2020-10-31 18:58:16 progress emitter: bytes completed for default: 0
2020-10-31 18:58:16 model@0xc000001980 Completion(BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH, "default"): map[completion:100 globalBytes:1579109706 globalItems:600 needBytes:0 needDeletes:0 needItems:0 sequence:2268]
2020-10-31 18:58:16 indexSender@0xc0024ce230 for default to at 116.203.108.209:22000-82.218.192.199:22002/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<85 bytes)
2020-10-31 18:58:22 sendreceive/default@0xc00008a000 Scan due to watcher
2020-10-31 18:58:56 Index update (in): BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH / "default": 1 files
2020-10-31 18:58:56 sendreceive/default@0xc00008a000 pulling
2020-10-31 18:58:56 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
2020-10-31 18:58:56 sendreceive/default@0xc00008a000 Handling directory tmp
2020-10-31 18:58:56 sendreceive/default@0xc00008a000 parent not missing tmp
2020-10-31 18:58:56 need dir
Directory{Name:"tmp", Sequence:2269, Permissions:0775, ModTime:2020-10-31 18:58:06.51704532 +0100 CET, Version:{[{BCROSJ5 1604167136} {ZRRNJRT 1604078169}]}, VersionHash:, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false}
Directory{Name:"tmp", Sequence:2208, Permissions:0775, ModTime:2020-10-30 20:23:03.557839089 +0100 CET, Version:{[{BCROSJ5 1604085783} {ZRRNJRT 1604078169}]}, VersionHash:, Deleted:true, Invalid:false, LocalFlags:0x0, NoPermissions:false}
2020-10-31 18:58:56 sendreceive/default@0xc00008a000 changed 1 on try 1
2020-10-31 18:58:56 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
2020-10-31 18:58:56 sendreceive/default@0xc00008a000 changed 0 on try 2
2020-10-31 18:58:56 progress emitter: bytes completed for default: 0
2020-10-31 18:58:56 model@0xc000001980 Completion(BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH, "default"): map[completion:100 globalBytes:1579109834 globalItems:601 needBytes:0 needDeletes:0 needItems:0 sequence:2269]
2020-10-31 18:58:56 indexSender@0xc0024ce230 for default to at 116.203.108.209:22000-82.218.192.199:22002/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<74 bytes)
2020-10-31 18:58:57 Index update (in): BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH / "default": 1 files
2020-10-31 18:58:57 sendreceive/default@0xc00008a000 pulling
2020-10-31 18:58:57 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
2020-10-31 18:58:57 sendreceive/default@0xc00008a000 Deleting dir Untitled Folder
2020-10-31 18:58:57 sendreceive/default@0xc00008a000 changed 1 on try 1
2020-10-31 18:58:57 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
2020-10-31 18:58:57 sendreceive/default@0xc00008a000 changed 0 on try 2
2020-10-31 18:58:57 progress emitter: bytes completed for default: 0
2020-10-31 18:58:57 model@0xc000001980 Completion(BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH, "default"): map[completion:100 globalBytes:1579109706 globalItems:600 needBytes:0 needDeletes:0 needItems:0 sequence:2270]
2020-10-31 18:58:57 indexSender@0xc0024ce230 for default to at 116.203.108.209:22000-82.218.192.199:22002/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<87 bytes)
2020-10-31 18:59:02 sendreceive/default@0xc00008a000 Scan due to watcher
2020-10-31 18:59:02 sendreceive/default@0xc00008a000 Scan due to watcher
2020-10-31 18:59:53 Established secure connection to 3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ at 116.203.108.209:22000-82.218.192.199:22000/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256
2020-10-31 18:59:53 Device 3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ client is "syncthing v1.10.0" named "Pixel 3" at 116.203.108.209:22000-82.218.192.199:22000/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256
2020-10-31 18:59:53 progress emitter: bytes completed for default: 0
2020-10-31 18:59:53 model@0xc000001980 Completion(BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH, "default"): map[completion:100 globalBytes:1579109706 globalItems:600 needBytes:0 needDeletes:0 needItems:0 sequence:2270]
2020-10-31 18:59:53 model@0xc000001980 Completion(3UVYIBI-RE7S5IJ-G4I7COG-4KXQVYR-IFEL3LA-SWRFXGL-CEOKHKR-DFVYNQQ, "default"): map[completion:99.99999189416673 globalBytes:1579109706 globalItems:600 needBytes:128 needDeletes:1 needItems:1 sequence:2093]
Metadata
Metadata
Assignees
Labels
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
imsodin commentedon Nov 9, 2020
There's no information related to the names you give except "Untitled Folder" in the log excerpts. Please reproduce with
scannerandmodeldebug facilities enabled and share those logs.BeayemX commentedon Nov 9, 2020
Same steps as before.
Now
modelandscannerare enabled.System 1
System 2
imsodin commentedon Nov 9, 2020
The problem is that the watcher reports events at the old, deleted path, not in the new dir:
Triggering a manual full scan should detect the changes and get everything in sync again.
[-]Folders / Files sometimes not syncing[/-][+]File not detected due to watching reporting events on old, deleted path[/+]BeayemX commentedon Nov 9, 2020
Triggering a manual full scan on System 1 did sync everything, but is this a bug that can be fixed?
imsodin commentedon Nov 9, 2020
Likely. It's something wrong with notify. A more minimal reproducer:
Expected: File in b is scanned.
Actual: It isn't scanned. Debug logging shows that the watch triggers a scan on a/c, not b/c.
BeayemX commentedon Dec 10, 2020
Any update on this as the other repository has merged the fix?
build: Update notify (fixes syncthing#7076)
build: Update notify (fixes syncthing#7076)
imsodin commentedon Dec 10, 2020
Was hoping for another merge in time for 1.12.1-rc.1, and forgot to update the dependency in time. So the fix will be delayed until the next release, sorry and thanks for the reminder.
#7189
Merge branch 'main' into conref
Merge tag 'v1.13.1' into ios_try_syncthing_v1.13.1