#10372·syncthing

Connection keeps failing with repeated "Lost device connection" shortly after startup

Author: moporgicCreated Sep 6, 2025Updated Sep 24, 2026
Labelsbugneeds-triage

What happened?

I have several devices running Syncthing on a local network. All of them ran well previously (version 1.3). However, after upgrading to version 2.0.x, one device consistently fails to connect to another device.

Specifically, a device named GHUNG (192.168.1.100) can successfully connect to another device Hguei-W01 (192.168.1.111) immediately at Syncthing startup. However, after a while, the connection failed, with the following behaviors.

  1. The "Lost device connection" message began to occur repeatedly in both GHUNG and Hguei-W01's console log.
  2. At GHUNG's GUI, Hguei-W01 in the "Remote Devices" list shows "Number of Connections 1".
  3. At Hguei-W01's GUI, GHUNG shows "Disconnected" (may sometimes change to "Up to Date" or "Syncing" for less than one second and become "Disconnected" again).
  4. Restarting Syncthing at GHUNG can let the connection become normal again, but it will enter "Lost device connection" status shortly.
  5. Restarting Syncthing at Hguei-W01 does not help. The connection will keep failing.

The attached log shows the activity after restarting Syncthing at GHUNG, where I have anonymized folder IDs and my external IP address.

Syncthing version

v2.0.7

Platform & operating system

Windows 10 Pro 64-bit

Browser version

Edge 139.0.3405.125

Relevant log output

bash
2025-09-06 23:25:40 INF QUIC listener shutting down (address="[::]:24576" log.pkg=connections)
2025-09-06 23:25:40 INF Relay listener shutting down (id=dynamic+https://relays.syncthing.net/endpoint log.pkg=connections)
2025-09-06 23:25:40 INF Lost device connection (kind=primary device=535JYAO connection=192.168.1.100:24576-192.168.1.111:24576/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632N7I49L3QJQRBJ5TV4NJSNRQ error="read timeout" remaining=0 log.pkg=model)
2025-09-06 23:25:40 INF Connection closed (device=535JYAO connection=192.168.1.100:24576-192.168.1.111:24576/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632N7I49L3QJQRBJ5TV4NJSNRQ error="read timeout" log.pkg=model)
2025-09-06 23:25:40 INF TCP listener shutting down (address="[::]:24576" log.pkg=connections)
2025-09-06 23:25:42 INF Exiting (log.pkg=syncthing)
2025-09-06 23:25:42 INF Saved log output (path=C:\Users\moporgic\AppData\Local\Syncthing\syncthing.log log.pkg=main)
2025-09-06 23:25:42 INF syncthing v2.0.7 "Hafnium Hornet" (go1.25.1 windows-amd64) [email protected] 2025-09-05 09:51:15 UTC (log.pkg=main)
2025-09-06 23:25:43 INF Calculated our device ID (device=G2HLZUF log.pkg=syncthing)
2025-09-06 23:25:44 INF Measured hashing performance (perf="411.73 MB/s" log.pkg=syncthing)
2025-09-06 23:25:44 INF Overall rate limit in use (send="is unlimited" recv="is unlimited" log.pkg=connections)
2025-09-06 23:25:44 INF Relay listener starting (id=dynamic+https://relays.syncthing.net/endpoint log.pkg=connections)
2025-09-06 23:25:44 INF Using discovery mechanism (identity="global discovery server https://discovery-lookup.syncthing.net/v2/?noannounce" log.pkg=discover)
2025-09-06 23:25:44 INF Using discovery mechanism (identity="global discovery server https://discovery-announce-v4.syncthing.net/v2/?nolookup" log.pkg=discover)
2025-09-06 23:25:44 INF Using discovery mechanism (identity="global discovery server https://discovery-announce-v6.syncthing.net/v2/?nolookup" log.pkg=discover)
2025-09-06 23:25:44 INF Using discovery mechanism (identity="IPv4 local broadcast discovery on port 21027" log.pkg=discover)
2025-09-06 23:25:44 INF Using discovery mechanism (identity="IPv6 local multicast discovery on address [ff12::8384]:21027" log.pkg=discover)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF GUI and API listening (address=127.0.0.1:8192 log.pkg=api)
2025-09-06 23:25:44 INF Access the GUI via the following URL: http://localhost:8192/ (log.pkg=api)
2025-09-06 23:25:44 INF Loaded configuration (name=GHUNG log.pkg=syncthing)
2025-09-06 23:25:44 INF Loaded peer device configuration (device=535JYAO name=Hguei-W01 address="[tcp://Hguei-W01:24576 quic://Hguei-W01:24576 dynamic]" log.pkg=syncthing)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF TCP listener starting (address="[::]:24576" log.pkg=connections)
2025-09-06 23:25:44 INF QUIC listener starting (address="[::]:24576" log.pkg=connections)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Ready to synchronize (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:44 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:45 INF Established secure connection (device=535JYAO connection.local=192.168.1.100:24576 connection.remote=192.168.1.111:24576 connection.type=tcp-client connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NBO21E1JI65KERTD9VPNA4E log.pkg=connections)
2025-09-06 23:25:45 INF New device connection (device=535JYAO address=192.168.1.111:24576 remote.name=Hguei-W01 remote.client=syncthing remote.version=v2.0.7 log.pkg=model)
2025-09-06 23:25:45 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:46 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:50 INF Established secure connection (device=535JYAO connection.local=192.168.1.100:58322 connection.remote=192.168.1.111:24576 connection.type=tcp-client connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NBOMKJP2T0330ALM8GBCAQI log.pkg=connections)
2025-09-06 23:25:50 INF Additional device connection (device=535JYAO address=192.168.1.111:24576 count=1 log.pkg=model)
2025-09-06 23:25:51 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:25:52 INF Established secure connection (device=535JYAO connection.local=192.168.1.100:24576 connection.remote=192.168.1.111:56666 connection.type=tcp-server connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NBOUB3UAGKF0LIMQ7PO8GSC log.pkg=connections)
2025-09-06 23:25:52 INF Additional device connection (device=535JYAO address=192.168.1.111:56666 count=2 log.pkg=model)
2025-09-06 23:25:56 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:26:00 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:26:04 INF Detected NAT services (count=0 log.pkg=nat)
2025-09-06 23:26:10 INF Joined relay (uri=relay://101.132.67.87:22067 log.pkg=relay/client)
2025-09-06 23:26:13 INF Detected NAT type (uri=quic://0.0.0.0:24576 type="Port restricted NAT" log.pkg=connections)
2025-09-06 23:26:13 INF Resolved external address (uri=quic://0.0.0.0:24576 address=quic://xxx.xxx.xxx.xxx:1053 via=stun.miwifi.com:3478 log.pkg=connections)
2025-09-06 23:26:15 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:26:16 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:26:20 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:26:46 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:27:24 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:30:31 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:30:54 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:31:54 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:32:13 INF Resolved external address (uri=quic://0.0.0.0:24576 address=quic://xxx.xxx.xxx.xxx:24576 via=stun.miwifi.com:3478 log.pkg=connections)
2025-09-06 23:32:49 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:33:17 INF Established secure connection (device=535JYAO connection.local="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:24576" connection.remote="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" connection.type=tcp-client connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NDCLV0C3S8BNIL1OVD2OIQA log.pkg=connections)
2025-09-06 23:33:17 INF Additional device connection (device=535JYAO address="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" count=3 log.pkg=model)
2025-09-06 23:33:18 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NBO21E1JI65KERTD9VPNA4E new=632NBOMKJP2T0330ALM8GBCAQI log.pkg=model)
2025-09-06 23:34:37 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:34:45 INF Completed initial scan (folder.id=XXX folder.type=sendreceive log.pkg=model)
2025-09-06 23:35:01 INF Lost device connection (kind=secondary device=535JYAO connection=192.168.1.100:58322-192.168.1.111:24576/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NBOMKJP2T0330ALM8GBCAQI error="closed by remote: handling index-update for XXX: XXX: folder is not running" remaining=3 log.pkg=model)
2025-09-06 23:35:01 INF Established secure connection (device=535JYAO connection.local="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:58659" connection.remote="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" connection.type=tcp-client connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NDOR69BCSIMA5P8DST7V284 log.pkg=connections)
2025-09-06 23:35:01 INF Additional device connection (device=535JYAO address="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" count=3 log.pkg=model)
2025-09-06 23:35:02 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NBOMKJP2T0330ALM8GBCAQI new=632NBOUB3UAGKF0LIMQ7PO8GSC log.pkg=model)
2025-09-06 23:35:02 INF Lost device connection (kind=secondary device=535JYAO connection=192.168.1.100:24576-192.168.1.111:56666/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NBOUB3UAGKF0LIMQ7PO8GSC error="closed by remote: handling index-update for XXX: XXX: folder is not running" remaining=3 log.pkg=model)
2025-09-06 23:35:02 INF Established secure connection (device=535JYAO connection.local=192.168.1.100:24576 connection.remote=192.168.1.111:24576 connection.type=tcp-server connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NDOV3MFDHCMSAEM5JINL2KS log.pkg=connections)
2025-09-06 23:35:02 INF Additional device connection (device=535JYAO address=192.168.1.111:24576 count=3 log.pkg=model)
2025-09-06 23:35:02 WRN Failed TLS handshake (address=192.168.1.111:43060 error="read tcp 192.168.1.100:24576->192.168.1.111:43060: wsarecv: An existing connection was forcibly closed by the remote host." log.pkg=connections)
2025-09-06 23:35:03 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NBOUB3UAGKF0LIMQ7PO8GSC new=632NDCLV0C3S8BNIL1OVD2OIQA log.pkg=model)
2025-09-06 23:35:11 INF Lost device connection (kind=secondary device=535JYAO connection="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:24576-[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NDCLV0C3S8BNIL1OVD2OIQA" error="reading length: read tcp [fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:24576->[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576: wsarecv: An existing connection was forcibly closed by the remote host." remaining=3 log.pkg=model)
2025-09-06 23:35:11 INF Established secure connection (device=535JYAO connection.local=192.168.1.100:24576 connection.remote=192.168.1.111:47696 connection.type=tcp-server connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NDPUN489KKHRAEVNIC6VI8I log.pkg=connections)
2025-09-06 23:35:11 INF Additional device connection (device=535JYAO address=192.168.1.111:47696 count=3 log.pkg=model)
2025-09-06 23:35:11 WRN Failed TLS handshake (address=192.168.1.111:47698 error="read tcp 192.168.1.100:24576->192.168.1.111:47698: wsarecv: An existing connection was forcibly closed by the remote host." log.pkg=connections)
2025-09-06 23:35:12 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NDCLV0C3S8BNIL1OVD2OIQA new=632NDOR69BCSIMA5P8DST7V284 log.pkg=model)
2025-09-06 23:35:19 INF Lost device connection (kind=secondary device=535JYAO connection="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:58659-[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NDOR69BCSIMA5P8DST7V284" error="reading length: read tcp [fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:58659->[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576: wsarecv: An existing connection was forcibly closed by the remote host." remaining=3 log.pkg=model)
2025-09-06 23:35:19 INF Established secure connection (device=535JYAO connection.local="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:24576" connection.remote="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" connection.type=tcp-client connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NDQUEACSMCC1BITNB103RG0 log.pkg=connections)
2025-09-06 23:35:19 INF Additional device connection (device=535JYAO address="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" count=3 log.pkg=model)
2025-09-06 23:35:20 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NDOR69BCSIMA5P8DST7V284 new=632NDOV3MFDHCMSAEM5JINL2KS log.pkg=model)
2025-09-06 23:35:27 INF Lost device connection (kind=secondary device=535JYAO connection=192.168.1.100:24576-192.168.1.111:24576/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NDOV3MFDHCMSAEM5JINL2KS error="closed by remote: handling index-update for XXX: XXX: folder is not running" remaining=3 log.pkg=model)
2025-09-06 23:35:28 INF Established secure connection (device=535JYAO connection.local="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:58674" connection.remote="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" connection.type=tcp-client connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NDRUA54HLA3C1GU1IM03FEO log.pkg=connections)
2025-09-06 23:35:28 INF Additional device connection (device=535JYAO address="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" count=3 log.pkg=model)
2025-09-06 23:35:29 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NDOV3MFDHCMSAEM5JINL2KS new=632NDPUN489KKHRAEVNIC6VI8I log.pkg=model)
2025-09-06 23:35:36 INF Lost device connection (kind=secondary device=535JYAO connection=192.168.1.100:24576-192.168.1.111:47696/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NDPUN489KKHRAEVNIC6VI8I error="closed by remote: handling index-update for XXX: XXX: folder is not running" remaining=3 log.pkg=model)
2025-09-06 23:35:37 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NDPUN489KKHRAEVNIC6VI8I new=632NDQUEACSMCC1BITNB103RG0 log.pkg=model)
2025-09-06 23:35:45 INF Lost device connection (kind=secondary device=535JYAO connection="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:24576-[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NDQUEACSMCC1BITNB103RG0" error="closed by remote: handling index-update for XXX: XXX: folder is not running" remaining=2 log.pkg=model)
2025-09-06 23:35:46 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NDQUEACSMCC1BITNB103RG0 new=632NDRUA54HLA3C1GU1IM03FEO log.pkg=model)
2025-09-06 23:35:53 INF Lost device connection (kind=secondary device=535JYAO connection="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:58674-[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NDRUA54HLA3C1GU1IM03FEO" error="closed by remote: handling index-update for XXX: XXX: folder is not running" remaining=1 log.pkg=model)
2025-09-06 23:36:11 INF Established secure connection (device=535JYAO connection.local=192.168.1.100:24576 connection.remote=192.168.1.111:24576 connection.type=tcp-server connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NE0U68364IDUPK58450DU8O log.pkg=connections)
2025-09-06 23:36:11 INF Additional device connection (device=535JYAO address=192.168.1.111:24576 count=1 log.pkg=model)
2025-09-06 23:36:11 WRN Failed TLS handshake (address=192.168.1.111:43844 error="read tcp 192.168.1.100:24576->192.168.1.111:43844: wsarecv: An existing connection was forcibly closed by the remote host." log.pkg=connections)
2025-09-06 23:36:12 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NDRUA54HLA3C1GU1IM03FEO new=632NE0U68364IDUPK58450DU8O log.pkg=model)
2025-09-06 23:36:12 INF Lost device connection (kind=secondary device=535JYAO connection=192.168.1.100:24576-192.168.1.111:24576/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256/LAN-P10-632NE0U68364IDUPK58450DU8O error="reading length: read tcp 192.168.1.100:24576->192.168.1.111:24576: wsarecv: An existing connection was forcibly closed by the remote host." remaining=1 log.pkg=model)
2025-09-06 23:36:28 INF Established secure connection (device=535JYAO connection.local="[fe80::4358:770f:cef3:f41d%Ethernet (Intel I218-LM)]:24576" connection.remote="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" connection.type=tcp-client connection.lan=true connection.crypto=TLS1.3-TLS_AES_128_GCM_SHA256 connection.prio=10 connection.id=632NE2TEIG1SSD92P0EV80NMHC log.pkg=connections)
2025-09-06 23:36:28 INF Additional device connection (device=535JYAO address="[fe80::ae1f:6bff:feb4:55a6%Ethernet (Intel I218-LM)]:24576" count=1 log.pkg=model)
2025-09-06 23:36:29 WRN Abandoning old index handler in favour of new connection (device=535JYAO old=632NE0U68364IDUPK58450DU8O new=632NE2TEIG1SSD92P0EV80NMHC log.pkg=model)
2025-09-06 23:36:29 INF Lost device connection (kind=secondary device=535JYAO connection="[fe80::4358:770f:cef3:f41d%Ethe