Global Discovery Offline

I’ve been using Synching on a handful of devices for about 2 months now after being unimpressed with BTSync. It was a bit tricky to get setup and have it stay running in the background on my Mac and Windows machines, but all worked. Then I noticed I wasn’t connecting to much of anything anymore. If I’m on the same network of another node, and I put in their hostname or IP address, then I can sync with that node, and it with me, but any otherwise I cannot.

I’ve searched these forums, and found some helpful hints, and I think it’s because my global discovery always shows as offline, but I cannot seem to figure out why that is. I’ve tested it on 3 different networks (mobile tether, home, and work) I’ve looked through the logs with using sttrace=net,discover /Users/rpn314/Documents/Computer/syncthing &> syncthing.log

Here’s the log. Any ideas?

[monitor] 21:20:32 INFO: Starting syncthing
[6PV2W] 21:20:32 INFO: syncthing v0.10.5 (go1.3.3 darwin-amd64 default) jenkins@build.syncthing.net 2014-11-04 04:11:54 UTC
[6PV2W] 21:20:32 INFO: My ID: 6PV2W6G-XFBLEIQ-ZIWJU3Y-CRQFNIP-XPVT3SG-W7PDTBU-RPQ75F5-N3VAQQN
[6PV2W] 21:20:32 INFO: Starting web GUI on http://127.0.0.1:8080/
[6PV2W] 21:20:33 INFO: Starting UPnP discovery...
[6PV2W] 21:20:39 INFO: UPnP discovery complete (found 3 devices).
[6PV2W] 21:20:39 INFO: Created UPnP port mapping for external port 3070 on UPnP device 'Google Fiber Network Box' (192.168.1.1).
[6PV2W] 21:20:39 INFO: Starting local discovery announcements
[6PV2W] 21:20:39 INFO: Starting global discovery announcements
[6PV2W] 21:20:39 OK: Ready to synchronize iTunes (read only; no external updates accepted)
[6PV2W] 21:20:39 OK: Ready to synchronize BYUDocs (read only; no external updates accepted)
[6PV2W] 21:20:39 OK: Ready to synchronize default (read-write)
[6PV2W] 21:20:39 INFO: Device B7LNYBK-FA7BM23-QG53HVL-KRFPXTT-VT7LMLC-X3OYK45-55PBKBD-TH66TQI is "Surface" at [dynamic]
[6PV2W] 21:20:39 INFO: Device K2QSVC6-INFPXCO-CFIUNW2-OLUBP4E-3DM37IG-CNNYGIQ-WIVEP26-J7HO5QD is "Neu-5" at [dynamic]
[6PV2W] 21:20:39 INFO: Device TYCFEKI-GY67AV3-7DMFYFD-XEZB7SI-UGQNKKN-KWPGUSC-3AG4E53-7GZA7QF is "lis-rneu.lib.byu.edu" at [dynamic]
[6PV2W] 21:20:39 INFO: Device 6PV2W6G-XFBLEIQ-ZIWJU3Y-CRQFNIP-XPVT3SG-W7PDTBU-RPQ75F5-N3VAQQN is "RobNeuMBP.home" at [dynamic]
[6PV2W] 21:20:39 INFO: Starting usage reporting
[6PV2W] 21:20:39 INFO: Completed initial scan (rw) of folder default
[6PV2W] 21:20:39 INFO: Completed initial scan (ro) of folder BYUDocs
[6PV2W] 21:20:42 INFO: Completed initial scan (ro) of folder iTunes

You seem to have 3 gateways on the network, that could be the reason.

I can’t figure why I would have 3 gateways. (that’s this line right?) UPnP discovery complete (found 3 devices). I just ran it again on my work/university network (which doesn’t use UPnP, but that has not affected synching in the past, and my work machine is online and works on this network). Here’s the log.

[monitor] 08:04:56 INFO: Starting syncthing
[6PV2W] 08:04:57 INFO: syncthing v0.10.5 (go1.3.3 darwin-amd64 default) jenkins@build.syncthing.net 2014-11-04 04:11:54 UTC
[6PV2W] 08:04:57 INFO: My ID: 6PV2W6G-XFBLEIQ-ZIWJU3Y-CRQFNIP-XPVT3SG-W7PDTBU-RPQ75F5-N3VAQQN
[6PV2W] 08:04:57 INFO: Starting web GUI on http://127.0.0.1:8080/
[6PV2W] 08:04:58 INFO: Starting UPnP discovery...
[6PV2W] 08:05:04 INFO: UPnP discovery complete (found 0 devices).
[6PV2W] 08:05:04 INFO: Starting local discovery announcements
[6PV2W] 08:05:04 INFO: Local discovery over IPv6 unavailable
[6PV2W] 08:05:04 INFO: Starting global discovery announcements
[6PV2W] 08:05:04 OK: Ready to synchronize BYUDocs (read only; no external updates accepted)
[6PV2W] 08:05:04 OK: Ready to synchronize default (read-write)
[6PV2W] 08:05:04 OK: Ready to synchronize iTunes (read only; no external updates accepted)
[6PV2W] 08:05:04 INFO: Device 6PV2W6G-XFBLEIQ-ZIWJU3Y-CRQFNIP-XPVT3SG-W7PDTBU-RPQ75F5-N3VAQQN is "RobNeuMBP.home" at [dynamic]
[6PV2W] 08:05:04 INFO: Device B7LNYBK-FA7BM23-QG53HVL-KRFPXTT-VT7LMLC-X3OYK45-55PBKBD-TH66TQI is "Surface" at [dynamic]
[6PV2W] 08:05:04 INFO: Device K2QSVC6-INFPXCO-CFIUNW2-OLUBP4E-3DM37IG-CNNYGIQ-WIVEP26-J7HO5QD is "Neu-5" at [dynamic]
[6PV2W] 08:05:04 INFO: Device TYCFEKI-GY67AV3-7DMFYFD-XEZB7SI-UGQNKKN-KWPGUSC-3AG4E53-7GZA7QF is "lis-rneu.lib.byu.edu" at [dynamic]
[6PV2W] 08:05:04 INFO: Starting usage reporting
[6PV2W] 08:05:04 INFO: Completed initial scan (rw) of folder default
[6PV2W] 08:05:04 INFO: Completed initial scan (ro) of folder BYUDocs
[6PV2W] 08:05:08 INFO: Completed initial scan (ro) of folder iTunes

If I’m reading this right, it says there are no gateways now right?

You should run with STTRACE=upnp,discovery environment variable to see what’s actually happening.

Is the log supposed to be something different with sttrace=upnp,discover than sttrace=net,discover? I’m not seeing anything different, but here it is.

[monitor] 09:54:22 INFO: Starting syncthing
[6PV2W] 09:54:23 INFO: syncthing v0.10.5 (go1.3.3 darwin-amd64 default) jenkins@build.syncthing.net 2014-11-04 04:11:54 UTC
[6PV2W] 09:54:23 INFO: My ID: 6PV2W6G-XFBLEIQ-ZIWJU3Y-CRQFNIP-XPVT3SG-W7PDTBU-RPQ75F5-N3VAQQN
[6PV2W] 09:54:23 INFO: Starting web GUI on http://127.0.0.1:8080/
[6PV2W] 09:54:23 INFO: Starting UPnP discovery...
[6PV2W] 09:54:29 INFO: UPnP discovery complete (found 0 devices).
[6PV2W] 09:54:29 INFO: Starting local discovery announcements
[6PV2W] 09:54:29 INFO: Local discovery over IPv6 unavailable
[6PV2W] 09:54:29 INFO: Starting global discovery announcements
[6PV2W] 09:54:29 OK: Ready to synchronize BYUDocs (read only; no external updates accepted)
[6PV2W] 09:54:29 OK: Ready to synchronize default (read-write)
[6PV2W] 09:54:29 OK: Ready to synchronize iTunes (read only; no external updates accepted)
[6PV2W] 09:54:29 INFO: Device B7LNYBK-FA7BM23-QG53HVL-KRFPXTT-VT7LMLC-X3OYK45-55PBKBD-TH66TQI is "Surface" at [dynamic]
[6PV2W] 09:54:29 INFO: Device K2QSVC6-INFPXCO-CFIUNW2-OLUBP4E-3DM37IG-CNNYGIQ-WIVEP26-J7HO5QD is "Neu-5" at [dynamic]
[6PV2W] 09:54:29 INFO: Device TYCFEKI-GY67AV3-7DMFYFD-XEZB7SI-UGQNKKN-KWPGUSC-3AG4E53-7GZA7QF is "lis-rneu.lib.byu.edu" at [dynamic]
[6PV2W] 09:54:29 INFO: Device 6PV2W6G-XFBLEIQ-ZIWJU3Y-CRQFNIP-XPVT3SG-W7PDTBU-RPQ75F5-N3VAQQN is "RobNeuMBP.home" at [dynamic]
[6PV2W] 09:54:29 INFO: Starting usage reporting
[6PV2W] 09:54:29 INFO: Completed initial scan (rw) of folder default
[6PV2W] 09:54:29 INFO: Completed initial scan (ro) of folder BYUDocs
[6PV2W] 09:54:32 INFO: Completed initial scan (ro) of folder iTunes

It seems that it’s not producing any logs. It’s supposed to be STTRACE not sttrace, and you run it like this STTRACE=upnp,discovery ./syncthing

Ah, there it goes. Sorry about that. I forgot it was in all caps.

[monitor] 2014/11/14 11:36:59.701553 monitor.go:104: INFO: Starting syncthing
[6PV2W] 2014/11/14 11:37:00.133891 main.go:378: INFO: syncthing v0.10.5 (go1.3.3 darwin-amd64 default) jenkins@build.syncthing.net 2014-11-04 04:11:54 UTC
[6PV2W] 2014/11/14 11:37:00.134042 main.go:379: INFO: My ID: 6PV2W6G-XFBLEIQ-ZIWJU3Y-CRQFNIP-XPVT3SG-W7PDTBU-RPQ75F5-N3VAQQN
[6PV2W] 2014/11/14 11:37:00.355773 main.go:610: INFO: Starting web GUI on http://127.0.0.1:8080/
[6PV2W] 2014/11/14 11:37:00.738688 upnp.go:106: INFO: Starting UPnP discovery...
[6PV2W] 2014/11/14 11:37:00.739586 upnp.go:155: DEBUG: Starting discovery of device type urn:schemas-upnp-org:device:InternetGatewayDevice:2...
[6PV2W] 2014/11/14 11:37:00.739683 upnp.go:175: DEBUG: Sending search request for device type urn:schemas-upnp-org:device:InternetGatewayDevice:2...
[6PV2W] 2014/11/14 11:37:00.739748 upnp.go:187: DEBUG: Listening for UPnP response for device type urn:schemas-upnp-org:device:InternetGatewayDevice:2...
[6PV2W] 2014/11/14 11:37:03.743322 upnp.go:228: DEBUG: Discovery for device type urn:schemas-upnp-org:device:InternetGatewayDevice:2 finished.
[6PV2W] 2014/11/14 11:37:03.743460 upnp.go:155: DEBUG: Starting discovery of device type urn:schemas-upnp-org:device:InternetGatewayDevice:1...
[6PV2W] 2014/11/14 11:37:03.743578 upnp.go:175: DEBUG: Sending search request for device type urn:schemas-upnp-org:device:InternetGatewayDevice:1...
[6PV2W] 2014/11/14 11:37:03.743662 upnp.go:187: DEBUG: Listening for UPnP response for device type urn:schemas-upnp-org:device:InternetGatewayDevice:1...
[6PV2W] 2014/11/14 11:37:06.743960 upnp.go:228: DEBUG: Discovery for device type urn:schemas-upnp-org:device:InternetGatewayDevice:1 finished.
[6PV2W] 2014/11/14 11:37:06.745020 upnp.go:133: INFO: UPnP discovery complete (found 0 devices).
[6PV2W] 2014/11/14 11:37:06.745061 main.go:1077: INFO: Starting local discovery announcements
[6PV2W] 2014/11/14 11:37:06.746177 discover.go:93: DEBUG: listen udp ff32::5222: setsockopt: can't assign requested address
[6PV2W] 2014/11/14 11:37:06.746208 discover.go:95: INFO: Local discovery over IPv6 unavailable
[6PV2W] 2014/11/14 11:37:06.746225 main.go:1082: INFO: Starting global discovery announcements
[6PV2W] 2014/11/14 11:37:06.746249 main.go:522: OK: Ready to synchronize BYUDocs (read only; no external updates accepted)
[6PV2W] 2014/11/14 11:37:06.746270 main.go:525: OK: Ready to synchronize default (read-write)
[6PV2W] 2014/11/14 11:37:06.746284 main.go:522: OK: Ready to synchronize iTunes (read only; no external updates accepted)
[6PV2W] 2014/11/14 11:37:06.746413 main.go:541: INFO: Device B7LNYBK-FA7BM23-QG53HVL-KRFPXTT-VT7LMLC-X3OYK45-55PBKBD-TH66TQI is "Surface" at [dynamic]
[6PV2W] 2014/11/14 11:37:06.746499 main.go:541: INFO: Device K2QSVC6-INFPXCO-CFIUNW2-OLUBP4E-3DM37IG-CNNYGIQ-WIVEP26-J7HO5QD is "Neu-5" at [dynamic]
[6PV2W] 2014/11/14 11:37:06.746582 main.go:541: INFO: Device TYCFEKI-GY67AV3-7DMFYFD-XEZB7SI-UGQNKKN-KWPGUSC-3AG4E53-7GZA7QF is "lis-rneu.lib.byu.edu" at [dynamic]
[6PV2W] 2014/11/14 11:37:06.746658 main.go:541: INFO: Device 6PV2W6G-XFBLEIQ-ZIWJU3Y-CRQFNIP-XPVT3SG-W7PDTBU-RPQ75F5-N3VAQQN is "RobNeuMBP.home" at [dynamic]
[6PV2W] 2014/11/14 11:37:06.747010 usage_report.go:108: INFO: Starting usage reporting
[6PV2W] 2014/11/14 11:37:06.748027 discover.go:326: DEBUG: discover: read announcement from 10.24.20.198:21025:
00000000  9d 79 bc 39 00 00 00 20  f3 eb ab 78 d7 28 56 44  |.y.9... ...x.(VD|
00000010  65 16 4d 37 81 46 05 6a  2e fa cf 72 35 be f1 cc  |e.M7.F.j...r5...|
00000020  31 7c 3f d2 f5 bb a8 21  00 00 00 01 00 00 00 00  |1|?....!........|
00000030  00 00 55 f0 00 00 00 00                           |..U.....|
[6PV2W] 2014/11/14 11:37:06.748796 puller.go:219: INFO: Completed initial scan (rw) of folder default
[6PV2W] 2014/11/14 11:37:06.817858 discover.go:268: DEBUG: discover: send announcement -> 194.126.249.5:22025
00000000  9d 79 bc 39 00 00 00 20  f3 eb ab 78 d7 28 56 44  |.y.9... ...x.(VD|
00000010  65 16 4d 37 81 46 05 6a  2e fa cf 72 35 be f1 cc  |e.M7.F.j...r5...|
00000020  31 7c 3f d2 f5 bb a8 21  00 00 00 01 00 00 00 00  |1|?....!........|
00000030  00 00 55 f0 00 00 00 00                           |..U.....|
[6PV2W] 2014/11/14 11:37:06.996829 scanner.go:58: INFO: Completed initial scan (ro) of folder BYUDocs
[6PV2W] 2014/11/14 11:37:10.471894 scanner.go:58: INFO: Completed initial scan (ro) of folder iTunes
[6PV2W] 2014/11/14 11:37:12.824425 discover.go:283: DEBUG: discover: external lookup check: []
[6PV2W] 2014/11/14 11:37:36.751832 discover.go:326: DEBUG: discover: read announcement from 10.24.20.198:21025:
00000000  9d 79 bc 39 00 00 00 20  f3 eb ab 78 d7 28 56 44  |.y.9... ...x.(VD|
00000010  65 16 4d 37 81 46 05 6a  2e fa cf 72 35 be f1 cc  |e.M7.F.j...r5...|
00000020  31 7c 3f d2 f5 bb a8 21  00 00 00 01 00 00 00 00  |1|?....!........|
00000030  00 00 55 f0 00 00 00 00                           |..U.....|

It seems that the announcement never gets delivered to the announcement server. Can you check if you can ping 194.126.249.5 and verify your firewall settings?

0% packet loss on ping reply from 194.126.249.5, so at least that part is going through. My computer’s firewall is usually off, but I’ve turned it on and allowed syncthing but it’s still showing as offline on syncthing’s webgui.

As far as I can tell, it’s something on my machine because on both of the networks I regularly use, another device has no problems connecting, but this one cannot. Could it be related to my update to Mac OS 10.10 Yosemite?

Could be, there has been other issues related to Yosemite firewall, but I am not a Mac person, so I cannot tell you more.

Well I have no idea what it was, but I decided that before I spent too much more time I would wipe the config files and try again, and the discover server offline issue disappeared! I had to reconfigure the nodes, but it was less time than what I had already spent troubleshooting, so it was a win imho. Thanks for the help @AudriusButkevicius!