I’ve been using Syncthing for about 2 years fairly successfully to one-way-sync one Windows 10 desktop to a Synology NAS, which I then backup to Backblaze. I check the setup every few months to make sure everything is working. When I checked today I found that both the Windows machine and the NAS show “Disconnected” for the other device. I’m a little beyond my pay grade here and am hoping I can get some help figuring this out.
Both devices are on the LAN, same subnet, can ping each other and there is no firewall on the devices or the network. Both are running Syncthing 1.3.3. I also rebooted both. I don’t understand the logging options very well, but did my best and this seems to be relevant. This is from Syncthing on the Synology NAS:
2020-01-25 14:34:36 discover: Received local announcement from x.x.x.29:60247 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:34:36 discover: Received local announcement from z.z.z.6:60247 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
x.x.x.29:60247 is the NAS static IP on the LAN z.z.z.6:60247 is the IP address of my VPN connection on the NAS 63DC5KJ is the NAS device ID
Seems like that could cause problems if the NAS is sending two announcements for different IPs? I will say that the NAS has been configured this way from the beginning, with it’s own LAN IP and the VPN IP, so I don’t know if anything changed with how Syncthing handles this.
The NAS log seems to loop through the following:
2020-01-25 14:33:24 sleep until next dial 1m0s
2020-01-25 14:33:36 addresses: [x.x.x.255 x.x.x.6]
2020-01-25 14:33:36 sent 91 bytes to x.x.x.255:21027
2020-01-25 14:33:36 sent 91 bytes to x.x.x.6:21027
2020-01-25 14:33:36 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 lo
2020-01-25 14:33:36 sent 91 bytes to [ff12::8384]:21027 on eth0
2020-01-25 14:33:36 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 sit0
2020-01-25 14:33:36 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 tun0
2020-01-25 14:33:36 recv 91 bytes from [x::x::x:x:aa23%eth0]:39677
2020-01-25 14:33:36 discover: Received local announcement from [x::x::x:x:aa23%eth0]:39677 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:33:36 recv 91 bytes from x.x.x.29:60247
2020-01-25 14:33:36 recv 91 bytes from x.x.x.6:60247
2020-01-25 14:33:36 discover: Received local announcement from x.x.x.29:60247 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:33:36 discover: Received local announcement from 10.42.11.6:60247 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:33:46 recv 91 bytes from 192.168.1.11:61225
2020-01-25 14:33:46 discover: Received local announcement from 192.168.1.11:61225 for CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE
2020-01-25 14:33:46 discover: Registering addresses for CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE
2020-01-25 14:33:46 discover: Reconstructed URL is &url.URL{Scheme:"tcp", Opaque:"", User:(*url.Userinfo)(nil), Host:"192.168.1.11:22000", Path:"", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
2020-01-25 14:33:46 discover: Replaced address 0.0.0.0 in tcp://0.0.0.0:22000 to get tcp://192.168.1.11:22000
2020-01-25 14:33:46 discover: Reconstructed URL is &url.URL{Scheme:"quic", Opaque:"", User:(*url.Userinfo)(nil), Host:"192.168.1.11:22000", Path:"", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
2020-01-25 14:33:46 discover: Replaced address 0.0.0.0 in quic://0.0.0.0:22000 to get quic://192.168.1.11:22000
2020-01-25 14:34:06 addresses: [192.168.1.255 10.42.11.6]
2020-01-25 14:34:06 sent 91 bytes to 192.168.1.255:21027
2020-01-25 14:34:06 sent 91 bytes to 10.42.11.6:21027
2020-01-25 14:34:06 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 lo
2020-01-25 14:34:06 sent 91 bytes to [ff12::8384]:21027 on eth0
2020-01-25 14:34:06 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 sit0
2020-01-25 14:34:06 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 tun0
2020-01-25 14:34:06 recv 91 bytes from 192.168.1.29:60247
2020-01-25 14:34:06 recv 91 bytes from 10.42.11.6:60247
2020-01-25 14:34:06 discover: Received local announcement from 192.168.1.29:60247 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:34:06 discover: Received local announcement from 10.42.11.6:60247 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:34:06 recv 91 bytes from [fe80::211:32ff:fe12:aa23%eth0]:39677
2020-01-25 14:34:06 discover: Received local announcement from [fe80::211:32ff:fe12:aa23%eth0]:39677 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:34:16 recv 91 bytes from 192.168.1.11:61225
2020-01-25 14:34:16 discover: Received local announcement from 192.168.1.11:61225 for CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE
2020-01-25 14:34:16 discover: Registering addresses for CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE
2020-01-25 14:34:16 discover: Reconstructed URL is &url.URL{Scheme:"tcp", Opaque:"", User:(*url.Userinfo)(nil), Host:"192.168.1.11:22000", Path:"", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
2020-01-25 14:34:16 discover: Replaced address 0.0.0.0 in tcp://0.0.0.0:22000 to get tcp://192.168.1.11:22000
2020-01-25 14:34:16 discover: Reconstructed URL is &url.URL{Scheme:"quic", Opaque:"", User:(*url.Userinfo)(nil), Host:"192.168.1.11:22000", Path:"", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
2020-01-25 14:34:16 discover: Replaced address 0.0.0.0 in quic://0.0.0.0:22000 to get quic://192.168.1.11:22000
2020-01-25 14:34:24 Reconnect loop
2020-01-25 14:34:24 lookup for CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE at IPv4 local
2020-01-25 14:34:24 addresses: [tcp://192.168.1.11:22000 quic://192.168.1.11:22000]
2020-01-25 14:34:24 lookup for CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE at IPv6 local
2020-01-25 14:34:24 addresses: []
2020-01-25 14:34:24 lookup results for CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE
2020-01-25 14:34:24 addresses: [quic://192.168.1.11:22000 tcp://192.168.1.11:22000]
2020-01-25 14:34:24 Reconnect loop for CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE [quic://192.168.1.11:22000 tcp://192.168.1.11:22000]
2020-01-25 14:34:24 dialing CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE tcp://192.168.1.11:22000 prio 9
2020-01-25 14:34:34 dialing CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE tcp://192.168.1.11:22000 error: dial tcp 192.168.1.11:22000: i/o timeout
2020-01-25 14:34:34 failed to connect to CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE 9
2020-01-25 14:34:34 dialing CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE quic://192.168.1.11:22000 prio 99
2020-01-25 14:34:36 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 lo
2020-01-25 14:34:36 sent 91 bytes to [ff12::8384]:21027 on eth0
2020-01-25 14:34:36 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 sit0
2020-01-25 14:34:36 write udp [::]:39677->[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 tun0
2020-01-25 14:34:36 addresses: [192.168.1.255 10.42.11.6]
2020-01-25 14:34:36 sent 91 bytes to 192.168.1.255:21027
2020-01-25 14:34:36 sent 91 bytes to 10.42.11.6:21027
2020-01-25 14:34:36 recv 91 bytes from [fe80::211:32ff:fe12:aa23%eth0]:39677
2020-01-25 14:34:36 discover: Received local announcement from [fe80::211:32ff:fe12:aa23%eth0]:39677 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:34:36 recv 91 bytes from 192.168.1.29:60247
2020-01-25 14:34:36 recv 91 bytes from 10.42.11.6:60247
2020-01-25 14:34:36 discover: Received local announcement from 192.168.1.29:60247 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:34:36 discover: Received local announcement from 10.42.11.6:60247 for 63DC5KJ-PEQVRPA-R6OAKVE-OHVKXOW-H45235O-TLMXZCU-QX44ORY-YBTC5AN
2020-01-25 14:34:44 dialing CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE quic://192.168.1.11:22000 error: dial: NO_ERROR: Handshake did not complete in time
2020-01-25 14:34:44 failed to connect to CORYQAA-WI4GCCW-5S42YE3-TZCIEUK-ZHPEFFZ-JYZCQ2A-WT4F52O-ICDTHAE 99
2020-01-25 14:34:44 sleep until next dial 1m0s
Here is what seems to be the looping part from the Windows machine logs:
[CORYQ] 2020/01/25 14:55:21.882449 service.go:485: DEBUG: sleep until next dial 1m0s
[CORYQ] 2020/01/25 14:55:48.316776 broadcast.go:66: DEBUG: addresses: [x.x.x.255]
[CORYQ] 2020/01/25 14:55:48.317776 multicast.go:80: DEBUG: sent 91 bytes to [ff12::8384]:21027 on Ethernet
[CORYQ] 2020/01/25 14:55:48.317776 multicast.go:151: DEBUG: recv 91 bytes from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226
[CORYQ] 2020/01/25 14:55:48.317776 local.go:199: DEBUG: discover: Received local announcement from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226 for CORYQAA
[CORYQ] 2020/01/25 14:55:48.317776 broadcast.go:89: DEBUG: sent 91 bytes to x.x.x.255:21027
[CORYQ] 2020/01/25 14:55:48.317776 broadcast.go:122: DEBUG: recv 91 bytes from x.x.x.11:61225
[CORYQ] 2020/01/25 14:55:48.317776 multicast.go:151: DEBUG: recv 91 bytes from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226
[CORYQ] 2020/01/25 14:55:48.317776 local.go:199: DEBUG: discover: Received local announcement from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226 for CORYQAA
[CORYQ] 2020/01/25 14:55:48.317776 local.go:199: DEBUG: discover: Received local announcement from x.x.x.11:61225 for CORYQAA
[CORYQ] 2020/01/25 14:55:48.317776 multicast.go:80: DEBUG: sent 91 bytes to [ff12::8384]:21027 on Ethernet 3
[CORYQ] 2020/01/25 14:55:48.317776 multicast.go:151: DEBUG: recv 91 bytes from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226
[CORYQ] 2020/01/25 14:55:48.317776 multicast.go:80: DEBUG: sent 91 bytes to [ff12::8384]:21027 on Ethernet 2
[CORYQ] 2020/01/25 14:55:48.317776 local.go:199: DEBUG: discover: Received local announcement from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226 for CORYQAA
[CORYQ] 2020/01/25 14:55:48.317776 multicast.go:80: DEBUG: sent 91 bytes to [ff12::8384]:21027 on Loopback Pseudo-Interface 1
[CORYQ] 2020/01/25 14:55:48.317776 multicast.go:151: DEBUG: recv 91 bytes from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226
[CORYQ] 2020/01/25 14:55:48.317776 local.go:199: DEBUG: discover: Received local announcement from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226 for CORYQAA
[CORYQ] 2020/01/25 14:56:18.323711 broadcast.go:66: DEBUG: addresses: [x.x.x.255]
[CORYQ] 2020/01/25 14:56:18.324709 broadcast.go:89: DEBUG: sent 91 bytes to x.x.x.255:21027
[CORYQ] 2020/01/25 14:56:18.324709 multicast.go:151: DEBUG: recv 91 bytes from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226
[CORYQ] 2020/01/25 14:56:18.324709 multicast.go:80: DEBUG: sent 91 bytes to [ff12::8384]:21027 on Ethernet
[CORYQ] 2020/01/25 14:56:18.324709 broadcast.go:122: DEBUG: recv 91 bytes from x.x.x.11:61225
[CORYQ] 2020/01/25 14:56:18.324709 local.go:199: DEBUG: discover: Received local announcement from x.x.x.11:61225 for CORYQAA
[CORYQ] 2020/01/25 14:56:18.324709 local.go:199: DEBUG: discover: Received local announcement from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226 for CORYQAA
[CORYQ] 2020/01/25 14:56:18.324709 multicast.go:151: DEBUG: recv 91 bytes from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226
[CORYQ] 2020/01/25 14:56:18.324709 multicast.go:80: DEBUG: sent 91 bytes to [ff12::8384]:21027 on Ethernet 3
[CORYQ] 2020/01/25 14:56:18.324709 local.go:199: DEBUG: discover: Received local announcement from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226 for CORYQAA
[CORYQ] 2020/01/25 14:56:18.324709 multicast.go:151: DEBUG: recv 91 bytes from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226
[CORYQ] 2020/01/25 14:56:18.324709 multicast.go:80: DEBUG: sent 91 bytes to [ff12::8384]:21027 on Ethernet 2
[CORYQ] 2020/01/25 14:56:18.324709 local.go:199: DEBUG: discover: Received local announcement from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226 for CORYQAA
[CORYQ] 2020/01/25 14:56:18.324709 multicast.go:151: DEBUG: recv 91 bytes from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226
[CORYQ] 2020/01/25 14:56:18.324709 local.go:199: DEBUG: discover: Received local announcement from [fe80::180b:fb15:ee2e:fe25%Ethernet 2]:61226 for CORYQAA
[CORYQ] 2020/01/25 14:56:18.324709 multicast.go:80: DEBUG: sent 91 bytes to [ff12::8384]:21027 on Loopback Pseudo-Interface 1
[CORYQ] 2020/01/25 14:56:21.882991 service.go:357: DEBUG: Reconnect loop
[CORYQ] 2020/01/25 14:56:21.882991 cache.go:103: DEBUG: lookup for 63DC5KJ at IPv4 local
[CORYQ] 2020/01/25 14:56:21.882991 cache.go:104: DEBUG: addresses: []
[CORYQ] 2020/01/25 14:56:21.882991 cache.go:103: DEBUG: lookup for 63DC5KJ at IPv6 local
[CORYQ] 2020/01/25 14:56:21.882991 cache.go:104: DEBUG: addresses: []
[CORYQ] 2020/01/25 14:56:21.882991 cache.go:128: DEBUG: lookup results for 63DC5KJ
[CORYQ] 2020/01/25 14:56:21.882991 cache.go:129: DEBUG: addresses: []
[CORYQ] 2020/01/25 14:56:21.882991 service.go:394: DEBUG: Reconnect loop for 63DC5KJ []
[CORYQ] 2020/01/25 14:56:21.882991 service.go:485: DEBUG: sleep until next dial 1m0s
x.x.x.255:21027 - not sure what this is, as it’s not a physical device, but it’s in the LAN subnet. x.x.x.11:61225 is the Windows machine’s static IP
CORYQAA is the Windows machine device ID
I appreciate any help that can be offered.