Skip to content

File not detected due to watching reporting events on old, deleted path #7076

Closed

Description

@BeayemX

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

  1. Create a new folder in the default sync directory with the linux file browser 'nemo'.
  2. Initially the folder is named "Untitled folder".
  3. Accept the name by pressing enter.
  4. Wait for the folder to be synchronized to the second computer.
  5. Rename the folder on the first computer to tmp.
  6. Wait for the rename to be synced to the second computer.
  7. Create a new folder inside tmp via Nemo on the first computer.
  8. Rename it immediately to a.
  9. Before the folder is created on the second system create a file inside the folder a.
  10. The file is initially named Untitled Document.
  11. Rename the file to a.
  12. The folder a and the document inside it called a are 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]

Activity

  1. added
    bug
    needs-triage
    on Oct 31, 2020
  2. imsodin commented on Nov 9, 2020

    @imsodin
    Member

    There's no information related to the names you give except "Untitled Folder" in the log excerpts. Please reproduce with scanner and model debug facilities enabled and share those logs.

  3. added
    waiting-for-info
    and removed
    needs-triage
    on Nov 9, 2020
  4. BeayemX commented on Nov 9, 2020

    @BeayemX
    Author

    Same steps as before.
    Now model and scanner are enabled.

    System 1

    2020-11-09 20:36:44 Enabled debug data for "model"
    2020-11-09 20:36:46 Enabled debug data for "scanner"
    2020-11-09 20:37:13 sendreceive/default@0xc000306700 Scan due to watcher
    2020-11-09 20:37:13 Walk [Untitled Folder] Matcher/[]@0xc001236360
    2020-11-09 20:37:13 dir: Untitled Folder Directory{Name:"Untitled Folder", Sequence:0, Permissions:0775, ModTime:2020-11-09 20:37:03.854882291 +0100 CET, Version:{[{BCROSJ5 1604950633} {FPE4P7T 1603469496}]}, VersionHash:, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false}
    2020-11-09 20:37:13 Walk progress done default [Untitled Folder] Matcher/[]@0xc001236360
    2020-11-09 20:37:13 indexSender@0xc00024cf00 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-11-09 20:37:13 Index update (in): ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA / "default": 1 files
    2020-11-09 20:37:15 progress emitter: bytes completed for default: 0
    2020-11-09 20:37:15 model@0xc000603080 Completion(ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA, "default"): map[completion:100 globalBytes:1579130706 globalItems:606 needBytes:0 needDeletes:0 needItems:0 sequence:2458]
    2020-11-09 20:37:33 sendreceive/default@0xc000306700 Scan due to watcher
    2020-11-09 20:37:33 Walk [tmp] Matcher/[]@0xc001236360
    2020-11-09 20:37:33 dir: tmp Directory{Name:"tmp", Sequence:0, Permissions:0775, ModTime:2020-11-09 20:37:03.854882291 +0100 CET, Version:{[{BCROSJ5 1604950653} {ZRRNJRT 1604078169}]}, VersionHash:, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false}
    2020-11-09 20:37:33 Walk progress done default [tmp] Matcher/[]@0xc001236360
    2020-11-09 20:37:33 sendreceive/default@0xc000306700 Scan due to watcher
    2020-11-09 20:37:33 indexSender@0xc00024cf00 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-11-09 20:37:33 Walk [Untitled Folder] Matcher/[]@0xc001236360
    2020-11-09 20:37:33 Walk progress done default [Untitled Folder] Matcher/[]@0xc001236360
    2020-11-09 20:37:33 marking file as deleted Directory{Name:"Untitled Folder", Sequence:2479, Permissions:0775, ModTime:2020-11-09 20:37:33.854882291 +0100 CET, Version:{[{BCROSJ5 1604950653} {FPE4P7T 1603469496}]}, VersionHash:, Deleted:true, Invalid:false, LocalFlags:0x0, NoPermissions:false}
    2020-11-09 20:37:33 Index update (in): ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA / "default": 1 files
    2020-11-09 20:37:34 indexSender@0xc00024cf00 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-11-09 20:37:34 Index update (in): ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA / "default": 1 files
    2020-11-09 20:37:35 progress emitter: bytes completed for default: 0
    2020-11-09 20:37:35 model@0xc000603080 Completion(ZRRNJRT-X4QQKN5-6FVNXTN-OG2YLBY-VBYO55O-2Z6NQGQ-BRCD5MT-QDZUQAA, "default"): map[completion:100 globalBytes:1579130706 globalItems:606 needBytes:0 needDeletes:0 needItems:0 sequence:2460]
    2020-11-09 20:38:18 sendreceive/default@0xc000306700 Scan due to watcher
    2020-11-09 20:38:18 Walk [Untitled Folder/a] Matcher/[]@0xc001236360
    2020-11-09 20:38:18 Walk progress done default [Untitled Folder/a] Matcher/[]@0xc001236360
    2020-11-09 20:38:18 sendreceive/default@0xc000306700 Scan due to watcher
    2020-11-09 20:38:18 Walk [Untitled Folder/Untitled Folder] Matcher/[]@0xc001236360
    2020-11-09 20:38:18 Walk progress done default [Untitled Folder/Untitled Folder] Matcher/[]@0xc001236360
    

    System 2

    2020-11-09 20:36:54 Enabled debug data for "model"
    2020-11-09 20:36:55 Enabled debug data for "scanner"
    2020-11-09 20:37:13 Index update (in): BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH / "default": 1 files
    2020-11-09 20:37:13 sendreceive/default@0xc00008a000 pulling
    2020-11-09 20:37:13 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
    2020-11-09 20:37:13 sendreceive/default@0xc00008a000 Handling directory Untitled Folder
    2020-11-09 20:37:13 sendreceive/default@0xc00008a000 parent not missing Untitled Folder
    2020-11-09 20:37:13 need dir
    	Directory{Name:"Untitled Folder", Sequence:2479, Permissions:0775, ModTime:2020-11-09 20:37:03.854882291 +0100 CET, Version:{[{BCROSJ5 1604950633} {FPE4P7T 1603469496}]}, VersionHash:, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false}
    	Directory{Name:"Untitled Folder", Sequence:2220, 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-11-09 20:37:13 sendreceive/default@0xc00008a000 changed 1 on try 1
    2020-11-09 20:37:13 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
    2020-11-09 20:37:13 sendreceive/default@0xc00008a000 changed 0 on try 2
    2020-11-09 20:37:13 progress emitter: bytes completed for default: 0
    2020-11-09 20:37:13 model@0xc0001fc000 Completion(BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH, "default"): map[completion:100 globalBytes:1579130706 globalItems:606 needBytes:0 needDeletes:0 needItems:0 sequence:2479]
    2020-11-09 20:37:13 indexSender@0xc001bef080 for default to  at 116.203.108.209:22000-82.218.192.199:22000/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<85 bytes)
    2020-11-09 20:37:21 sendreceive/default@0xc00008a000 Scan due to watcher
    2020-11-09 20:37:21 Walk [Untitled Folder] Matcher/[]@0xc0000cc7e0
    2020-11-09 20:37:33 Index update (in): BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH / "default": 1 files
    2020-11-09 20:37:33 sendreceive/default@0xc00008a000 pulling
    2020-11-09 20:37:33 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
    2020-11-09 20:37:33 sendreceive/default@0xc00008a000 Handling directory tmp
    2020-11-09 20:37:33 sendreceive/default@0xc00008a000 parent not missing tmp
    2020-11-09 20:37:33 need dir
    	Directory{Name:"tmp", Sequence:2480, Permissions:0775, ModTime:2020-11-09 20:37:03.854882291 +0100 CET, Version:{[{BCROSJ5 1604950653} {ZRRNJRT 1604078169}]}, VersionHash:, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false}
    	Directory{Name:"tmp", Sequence:2454, Permissions:0775, ModTime:2020-11-09 20:36:01.51704532 +0100 CET, Version:{[{BCROSJ5 1604950561} {ZRRNJRT 1604078169}]}, VersionHash:, Deleted:true, Invalid:false, LocalFlags:0x0, NoPermissions:false}
    2020-11-09 20:37:33 sendreceive/default@0xc00008a000 changed 1 on try 1
    2020-11-09 20:37:33 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
    2020-11-09 20:37:33 sendreceive/default@0xc00008a000 changed 0 on try 2
    2020-11-09 20:37:33 progress emitter: bytes completed for default: 0
    2020-11-09 20:37:33 model@0xc0001fc000 Completion(BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH, "default"): map[completion:100 globalBytes:1579130834 globalItems:607 needBytes:0 needDeletes:0 needItems:0 sequence:2480]
    2020-11-09 20:37:33 indexSender@0xc001bef080 for default to  at 116.203.108.209:22000-82.218.192.199:22000/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<74 bytes)
    2020-11-09 20:37:34 Index update (in): BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH / "default": 1 files
    2020-11-09 20:37:34 sendreceive/default@0xc00008a000 pulling
    2020-11-09 20:37:34 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
    2020-11-09 20:37:34 sendreceive/default@0xc00008a000 Deleting dir Untitled Folder
    2020-11-09 20:37:34 sendreceive/default@0xc00008a000 changed 1 on try 1
    2020-11-09 20:37:34 sendreceive/default@0xc00008a000 copiers: 2 pullerPendingKiB: 32768
    2020-11-09 20:37:34 sendreceive/default@0xc00008a000 changed 0 on try 2
    2020-11-09 20:37:34 progress emitter: bytes completed for default: 0
    2020-11-09 20:37:34 model@0xc0001fc000 Completion(BCROSJ5-2UBPL5A-M6XI2YN-Z4GKL76-4TBBPSA-47VDXPC-NJLUTOT-5UNJJAH, "default"): map[completion:100 globalBytes:1579130706 globalItems:606 needBytes:0 needDeletes:0 needItems:0 sequence:2481]
    2020-11-09 20:37:34 indexSender@0xc001bef080 for default to  at 116.203.108.209:22000-82.218.192.199:22000/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256: Sending 1 files (<87 bytes)
    2020-11-09 20:37:41 sendreceive/default@0xc00008a000 Scan due to watcher
    2020-11-09 20:37:41 Walk [tmp] Matcher/[]@0xc0000cc7e0
    2020-11-09 20:37:41 sendreceive/default@0xc00008a000 Scan due to watcher
    2020-11-09 20:37:41 Walk [Untitled Folder] Matcher/[]@0xc0000cc7e0
    2020-11-09 20:37:41 Walk progress done default [Untitled Folder] Matcher/[]@0xc0000cc7e0
    2020-11-09 20:38:39 sendreceive/default@0xc00008a000 Scanning due to timer
    2020-11-09 20:38:39 Walk [] Matcher/[]@0xc0000cc7e0
    2020-11-09 20:38:39 ignored (internal): .stfolder
    2020-11-09 20:38:39 Walk progress done default [] Matcher/[]@0xc0000cc7e0
    2020-11-09 20:38:39 sendreceive/default@0xc00008a000 next rescan in 1h2m52.25775608s
    
  5. imsodin commented on Nov 9, 2020

    @imsodin
    Member

    The problem is that the watcher reports events at the old, deleted path, not in the new dir:

    2020-11-09 20:37:33 marking file as deleted Directory{Name:"Untitled Folder", Sequence:2479, Permissions:0775, ModTime:2020-11-09 20:37:33.854882291 +0100 CET, Version:{[{BCROSJ5 1604950653} {FPE4P7T 1603469496}]}, VersionHash:, Deleted:true, Invalid:false, LocalFlags:0x0, NoPermissions:false}
    [...]
    2020-11-09 20:38:18 sendreceive/default@0xc000306700 Scan due to watcher
    2020-11-09 20:38:18 Walk [Untitled Folder/a] Matcher/[]@0xc001236360
    2020-11-09 20:38:18 Walk progress done default [Untitled Folder/a] Matcher/[]@0xc001236360
    2020-11-09 20:38:18 sendreceive/default@0xc000306700 Scan due to watcher
    2020-11-09 20:38:18 Walk [Untitled Folder/Untitled Folder] Matcher/[]@0xc001236360
    2020-11-09 20:38:18 Walk progress done default [Untitled Folder/Untitled Folder] Matcher/[]@0xc001236360
    

    Triggering a manual full scan should detect the changes and get everything in sync again.

  6. removed
    waiting-for-info
    on Nov 9, 2020
  7. changed the title [-]Folders / Files sometimes not syncing[/-] [+]File not detected due to watching reporting events on old, deleted path[/+] on Nov 9, 2020
  8. BeayemX commented on Nov 9, 2020

    @BeayemX
    Author

    Triggering a manual full scan on System 1 did sync everything, but is this a bug that can be fixed?

  9. imsodin commented on Nov 9, 2020

    @imsodin
    Member

    Likely. It's something wrong with notify. A more minimal reproducer:

    1. Create dir a.
    2. Rename a to b.
    3. Create file c in b.

    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.

  10. BeayemX commented on Dec 10, 2020

    @BeayemX
    Author

    Any update on this as the other repository has merged the fix?

  11. added 2 commits that reference this issue on Dec 10, 2020
    5181c09
    ff880b2
  12. imsodin commented on Dec 10, 2020

    @imsodin
    Member

    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

  13. added this to the v1.12.2 milestone on Dec 15, 2020
  14. added a commit that references this issue on Dec 21, 2020
    7b89bc5
  15. added
    frozen-due-to-age
    on Dec 11, 2021
  16. locked and limited conversation to collaborators on Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions