Disconnecting and reconnecting constantly. TLS Failure, wsarecv: An existing connection was forcibly closed by the remote host.

Hello! I’ve been having some trouble with Syncthing between my desktop and a remote VPS hosted in Digital Ocean running latest Ubuntu 18. It seems to be disconnecting and reconnecting constantly. I have found a few posts that are similar but the fixed from those haven’t worked for me, specifically these two topics, [1] and [1]

Here’s the relevent bit of the logs as this is repeated over and over.

[G4SBK] 17:54:56 INFO: Established secure connection to FV2PGYC at 192.168.1.187:22000-000.000.000.000:45544/tcp-server/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
[G4SBK] 17:54:56 INFO: Device FV2PGYC client is "syncthing v0.14.43-ds1" named "remote host" at 192.168.1.187:22000-000.000.000.000:45544/tcp-server/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
[G4SBK] 17:55:11 INFO: Connection to FV2PGYC at 192.168.1.187:22000-000.000.000.000:45544/tcp-server/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 closed: reading length: read tcp 192.168.1.187:22000->000.000.000.000:45544: wsarecv: An existing connection was forcibly closed by the remote host.
[G4SBK] 17:55:15 INFO: Established secure connection to FV2PGYC at 192.168.1.187:22000-000.000.000.000:45730/tcp-server/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
[G4SBK] 17:55:15 INFO: Device FV2PGYC client is "syncthing v0.14.43-ds1" named "remote host" at 192.168.1.187:22000-000.000.000.000:45730/tcp-server/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
[G4SBK] 17:55:18 INFO: Connection to FV2PGYC at 192.168.1.187:22000-000.000.000.000:45730/tcp-server/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 closed: reading length: read tcp 192.168.1.187:22000->000.000.000.000:45730: wsarecv: An existing connection was forcibly closed by the remote host.

I’ve tried the usually suspects, reboots, checked internet connection, checked firewall and AV, pausing and un-pausing, reinstalling on both Windows desktop and Ubuntu, not behind a firewall. Not sure where to go next.

Here are the logs from my Synctrazor, edited to remove IP https://pastebin.com/B2JzwPu1

Here is the log from the remote server [1]

Syncthing remote server web UI, [1]

Please let me know if there is anything else I can post to get this working! Thank you

[1] Links here new user restrictions, https://pastebin.com/3BfBULtj

You are running an ancient version (2016 or something?) on your VPS, that’s your problem.

1 Like

Looks I missed the step of adding the keys and channel to apt. Updated and deleted config.xml on the VPS has fixed my issue. Thanks for the help!

old, installed just by sudo apt install syncthing

sinker@ubuntu-s-1vcpu-1gb-nyc3-01:~$ syncthing -version
syncthing v0.14.43-ds1 "Dysprosium Dragonfly" (go1.9.3 linux-amd64) debian@debian 2018-02-06 04:01:09 UTC [noupgrade]

updated, installed per syncthing downloads page

sinker@ubuntu-s-1vcpu-1gb-nyc3-01:~$ syncthing -version
syncthing v1.6.1 "Fermium Flea" (go1.14.4 linux-amd64) deb@build.syncthing.net 2020-06-02 09:49:22 UTC