Hosts remain disconnected, cluster setup?

Yes, its opensource, anx anyone who cares could potentially fix this. If you can provide a reproducible cut down to a few lines of go code case, you should open a github issue.

Relays relay all traffic, not just help to connect.

C# and VB call directly into the winapi to perform networking, so there’s no way that the kernel can tell the difference between them and any other application using the winapi (such as Go).

Well there is obviously some difference, because ports are shown as 0’s when called from Go.

Some googling suggests that similar windows firewall logs (no process id, source and destination port of 0) can appear in other scenarios, so I wouldn’t necessarily blme Go here. The best lead I’ve got so far is that it’s logging part of a fragmented TCP packet (so the port info in the L4 header isn’t available). Maybe we’re (somehow) sending packets that exceed the MTU?

MTU is defined by the NIC settings usually, atleast on Linux. Plus the first few packets we send is the TLS handshake, cluster config message, which I doubt if they are over the MTU.

@gijs007 is it the initial handshake that’s blocked by the firewall, or does the disconnection happen after the connection has been established? What is the MTU reported by the relevant NIC?

The MTU hasn’t been altered on any of the servers, they use the default 1500 MTU.

Perhaps the packets are fragmented when going over the tier 1 networks for WAN traffic, but I doubt that since a ping like: ping [remote IP] -l 1472 -f works fine. (which sends a of ping message of 1472 + 28 bytes for the IP/ICMP headers = 1500 bytes packet correctly)

@gijs007 is it the initial handshake that’s blocked by the firewall, or does the disconnection happen after the connection has been established?

It’s the initial handshake I believe. Since the hosts don’t know each others IP’s and names according to synctrayzor and have never been connected.

I’ve got the similar issue. My setup: 2 Windows hosts in the local network, firewall is disabled on both. On every host, I added another one: tcp://hostN:8384 where ‘hostN’ is ‘host1’ on host2 and ‘host2’ on host1 Hosts remained in Disconnected state no matter what I did. I tried using IP adresses instead of host names. The problem was solved only after I changed hosts’ adresses to ‘dynamic’. But I wonder why I need to connect to some external server to sync my local hosts and why specyfying host names and ports doesn’t work.

Dynamic doesn’t mean external. It just means Syncthing will figure it out (in this case with local discovery).

Using the web gui port (default: 8384) instead of the sync port (default 22000) will of course result in no connection.

Yep I already found out what was a mistake. Getting started guide should be more clear on that! But I’m not sure about local discovery though:

[AWDEU] 20:21:03 OK: Ready to synchronize test (read only; no external updates accepted) [AWDEU] 20:21:03 INFO: Using discovery server https_//discovery-v4-1.syncthing.net/?id=SR7AARM-TCBUZ5O-VFAXY4D-CECGSDE-3Q6IZ4G-XG7AH75-OBIXJQV-QJ6NLQA [AWDEU] 20:21:03 INFO: Using discovery server https_//discovery-v4-2.syncthing.net/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC [AWDEU] 20:21:03 INFO: Using discovery server https_//discovery-v4-3.syncthing.net/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ [AWDEU] 20:21:03 INFO: Using discovery server https_//discovery-v6-1.syncthing.net/?id=SR7AARM-TCBUZ5O-VFAXY4D-CECGSDE-3Q6IZ4G-XG7AH75-OBIXJQV-QJ6NLQA [AWDEU] 20:21:03 INFO: Using discovery server https_//discovery-v6-2.syncthing.net/?id=DVU36WY-H3LVZHW-E6LLFRE-YAFN5EL-HILWRYP-OC2M47J-Z4PE62Y-ADIBDQC [AWDEU] 20:21:03 INFO: Using discovery server https_//discovery-v6-3.syncthing.net/?id=VK6HNJ3-VVMM66S-HRVWSCR-IXEHL2H-U4AQ4MW-UCPQBWX-J2L2UBK-NVZRDQZ [AWDEU] 20:21:03 INFO: Completed initial scan (rw) of folder default

offtopic: ‘Code’ tag is missing - what a terrible forum engine.

If you enable global discovery, your node will always connect to the global discovery server, but should always use the best connection.

You mean like

this code    ?

Thanks, it’s clear about local discovery now.

[quote=“wweich, post:33, topic:5600”] You mean like this code ?[/quote] Yes, I suppose. If it not smart enough to remove lf/cr’s, as ‘Preformatted text’ seems to be. And how to force the engine to send me notifications about new replies? I’m “watching” this topic, have “Send me an email when someone quotes me, replies to my post, mentions my @username, or invites me to a topic” and “Send me email notifications even when I am active on the site” checked but I still don’t receive any. And “We’ll only email you if we haven’t seen you in the last 10 minutes.” note is something that can’t be explained rationally. If this engine is a typical forum’s future I definitely prefer to stay out of it.

If you’re going to criticise discourse (the forum engine), please do so directly to the developers: we don’t develop discourse, and can’t do anything with your feedback.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.