Hi, i have a problem getting Syncthing working via a relay server. i want to only use the private relay. We have host A and Host B and a relay server in the middle.
Host A has as Listen Address:
relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=5m0s&networkTimeout=10m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy=
global and local discovery is off
Host B has the same configuration
I can add Host A as Remote Device on Host B on Addresses i enter the same relayserver
relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=5m0s&networkTimeout=10m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy=
On Host A i accept the connection and enter the relay server also here. Booth are now connected via the gateway.
The problem is, that they are getting disconnected, connected, disconnected and so on. From the logfiles, I cannot see a reason for the disconnect. Only some EOF and timeout. It is no firewall issue. Also the connection is stable. Netstat shows still established and ping to the relay is also responding. Here the Logfiles
Host A
[T5K77] 2021/05/04 14:00:32.277987 static.go:68: INFO: Joined relay relay://IP_of_RelayServer:22067
[T5K77] 2021/05/04 14:00:32.444966 service.go:340: INFO: Established secure connection to WGSUVDA-LJRTJ7C-LCO2XDN-TR6RYJE-AXA4AS7-7L6YHED-RUQZ42P-V7BPSQT at 172.16.202.50:61872-IP_of_RelayServer:22067/relay-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[T5K77] 2021/05/04 14:00:32.444966 model.go:2262: INFO: Device WGSUVDA-LJRTJ7C-LCO2XDN-TR6RYJE-AXA4AS7-7L6YHED-RUQZ42P-V7BPSQT client is "syncthing v1.16.0" named "s7654321wks1" at 172.16.202.50:61872-IP_of_RelayServer:22067/relay-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[T5K77] 2021/05/04 14:02:32.279890 static.go:121: DEBUG: StaticClient:0xc0001ec850@relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=5m0s&networkTimeout=10m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy= timed out
[T5K77] 2021/05/04 14:02:32.279890 static.go:122: INFO: Disconnected from relay relay://IP_of_RelayServer:22067
[T5K77] 2021/05/04 14:02:32.279890 static.go:183: DEBUG: StaticClient:0xc0001ec850@relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=5m0s&networkTimeout=10m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy= disconnecting
[T5K77] 2021/05/04 14:02:32.279890 relay_listen.go:71: INFO: Listen (BEP/relay): timed out
[T5K77] 2021/05/04 14:02:32.279890 relay_listen.go:73: INFO: Relay listener (relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=5m0s&networkTimeout=10m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy=) shutting down
[T5K77] 2021/05/04 14:02:32.279890 svcutil.go:163: INFO: c.S.listenerSupervisor: Failed service 'relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=5m0s&networkTimeout=10m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy=' (1.000000 failures of 2.000000), restarting: true, error: %!s(<nil>)
[T5K77] 2021/05/04 14:02:32.279890 relay_listen.go:62: INFO: Relay listener (relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=5m0s&networkTimeout=10m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy=) starting
[T5K77] 2021/05/04 14:02:32.283795 model.go:1772: INFO: Connection to WGSUVDA-LJRTJ7C-LCO2XDN-TR6RYJE-AXA4AS7-7L6YHED-RUQZ42P-V7BPSQT at 172.16.202.50:61872-IP_of_RelayServer:22067/relay-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256 closed: reading length: EOF
[T5K77] 2021/05/04 14:02:32.355794 static.go:55: DEBUG: StaticClient:0xc000244000@relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=5m0s&networkTimeout=10m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy= connected IP_of_RelayServer:22067
[T5K77] 2021/05/04 14:02:32.387798 static.go:68: INFO: Joined relay relay://IP_of_RelayServer:22067
Host B
[WGSUV] 15:00:28 INFO: Joined relay relay://IP_of_RelayServer:22067
[WGSUV] 15:00:32 INFO: Established secure connection to T5K77EF-PNYQQR7-GTHOV7K-FMN36KA-X73L5JH-HIA5HMW-PKAXI55-JRJLJQM at 172.16.202.222:59193-IP_of_RelayServer:22067/relay-server/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[WGSUV] 15:00:32 INFO: Device T5K77EF-PNYQQR7-GTHOV7K-FMN36KA-X73L5JH-HIA5HMW-PKAXI55-JRJLJQM client is "syncthing v1.16.0" named "s7654321hv1" at 172.16.202.222:59193-IP_of_RelayServer:22067/relay-server/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[WGSUV] 15:02:32 INFO: Disconnected from relay relay://IP_of_RelayServer:22067
[WGSUV] 15:02:32 INFO: Listen (BEP/relay): timed out
[WGSUV] 15:02:32 INFO: Relay listener (relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy=) shutting down
[WGSUV] 15:02:32 INFO: c.S.listenerSupervisor: Failed service 'relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy=' (1.000000 failures of 2.000000), restarting: true, error: %!s(<nil>)
[WGSUV] 15:02:32 INFO: Relay listener (relay://IP_of_RelayServer:22067/?id=7FZI3TK-RQWVVNV-HM6V4VU-ZGLJPRW-S64OGII-MOMUPLA-WDR6LUP-X4ODAQZ&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=&providedBy=) starting
[WGSUV] 15:02:32 INFO: Connection to T5K77EF-PNYQQR7-GTHOV7K-FMN36KA-X73L5JH-HIA5HMW-PKAXI55-JRJLJQM at 172.16.202.222:59193-IP_of_RelayServer:22067/relay-server/TLS1.3-TLS_CHACHA20_POLY1305_SHA256 closed: reading length: EOF
[WGSUV] 15:02:32 INFO: Joined relay relay://IP_of_RelayServer:22067
Relay Server:
2021/05/04 14:00:31 listener.go:48: Listener accepted connection from 31.18.14.118:61872 tls false
2021/05/04 14:00:31 listener.go:311: 31.18.14.118:61872 session lookup <679a8/8f2f5> 679a8
2021/05/04 14:00:31 session.go:120: New connection for <679a8/8f2f5> from 31.18.14.118:61872
2021/05/04 14:00:31 listener.go:48: Listener accepted connection from 31.18.14.118:59193 tls false
2021/05/04 14:00:31 listener.go:311: 31.18.14.118:59193 session lookup <679a8/8f2f5> 8f2f5
2021/05/04 14:00:31 session.go:120: New connection for <679a8/8f2f5> from 31.18.14.118:59193
2021/05/04 14:00:31 session.go:152: Session <679a8/8f2f5> starting between 31.18.14.118:61872 and 31.18.14.118:59193
2021/05/04 14:00:31 session.go:251: Proxy 31.18.14.118:59193 -> 31.18.14.118:61872
2021/05/04 14:00:31 session.go:251: Proxy 31.18.14.118:61872 -> 31.18.14.118:59193
2021/05/04 14:00:31 session.go:268: 255 bytes from 31.18.14.118:61872 to 31.18.14.118:59193
2021/05/04 14:00:31 session.go:268: 1012 bytes from 31.18.14.118:59193 to 31.18.14.118:61872
2021/05/04 14:00:31 session.go:268: 777 bytes from 31.18.14.118:61872 to 31.18.14.118:59193
2021/05/04 14:00:31 session.go:268: 62 bytes from 31.18.14.118:59193 to 31.18.14.118:61872
2021/05/04 14:00:31 session.go:268: 61 bytes from 31.18.14.118:61872 to 31.18.14.118:59193
2021/05/04 14:00:31 session.go:268: 28 bytes from 31.18.14.118:59193 to 31.18.14.118:61872
2021/05/04 14:00:31 session.go:268: 28 bytes from 31.18.14.118:61872 to 31.18.14.118:59193
2021/05/04 14:01:16 session.go:268: 30 bytes from 31.18.14.118:61872 to 31.18.14.118:59193
2021/05/04 14:01:16 session.go:268: 30 bytes from 31.18.14.118:59193 to 31.18.14.118:61872
2021/05/04 14:02:01 session.go:268: 30 bytes from 31.18.14.118:59193 to 31.18.14.118:61872
2021/05/04 14:02:31 listener.go:223: Closing connection WGSUVDA-LJRTJ7C-LCO2XDN-TR6RYJE-AXA4AS7-7L6YHED-RUQZ42P-V7BPSQT: EOF
2021/05/04 14:02:31 session.go:82: Dropping session <679a8/8f2f5> involving WGSUVDA-LJRTJ7C-LCO2XDN-TR6RYJE-AXA4AS7-7L6YHED-RUQZ42P-V7BPSQT
2021/05/04 14:02:31 session.go:177: Session <679a8/8f2f5> ended, outcomes: read tcp IP_of_RelayServer:22067->31.18.14.118:61872: use of closed network connection and read tcp IP_of_RelayServer:22067->31.18.14.118:59193: use of closed network connection
2021/05/04 14:02:31 session.go:213: Session <679a8/8f2f5> stopping
2021/05/04 14:02:31 listener.go:223: Closing connection T5K77EF-PNYQQR7-GTHOV7K-FMN36KA-X73L5JH-HIA5HMW-PKAXI55-JRJLJQM: EOF
Any Idea where to look at regarding the disconnects?