Hi,
This happened to me twice. I use syncthing for a few weeks, then I notice one of my nodes are not synchronizing anything. When I log in to the node’s syncthing, I find it completely empty: syncthing is “reset” to stock config.xml, no UI authentication, no folders. The node also appear “offline” to other nodes.
When this happened the first time, I thought it might be some mistake. Here are the logs:
root@REDACTED:~# cat /tmp/syncthing.log
[start] 2024/06/24 23:52:02 INFO: syncthing v1.27.1 "Gold Grasshopper" (go1.22.2 linux-arm64) openwrt@openwrt 2024-05-11 17:33:28 UTC [noupgrade, stnoupgrade]
[start] 2024/06/24 23:52:02 INFO: Generating ECDSA key and certificate for syncthing...
[start] 2024/06/24 23:52:02 INFO: We will skip creation of a default folder on first start
[start] 2024/06/24 23:52:02 INFO: Default config saved. Edit /path/.syncthing/config.xml to taste (with Syncthing stopped) or use the GUI
[start] 2024/06/24 23:52:02 INFO: Archiving a copy of old config file format at: /path/.syncthing/config.xml.v0
[F7O6R] 2024/06/24 23:52:02 INFO: My ID: F7O6REZ-JABQKBG-WF4R7B5-VVLOF6X-447NGW7-XQU54BB-SAUEGVP-YVDVYQQ
[F7O6R] 2024/06/24 23:52:03 INFO: Single thread SHA256 performance is 1021 MB/s using minio/sha256-simd (713 MB/s using crypto/sha256).
[F7O6R] 2024/06/24 23:52:03 INFO: Hashing performance is 253.47 MB/s
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 1...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 2...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 3...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 5...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 6...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 7...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 9...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 10...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 11...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 13...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 14...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 16...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 17...
[F7O6R] 2024/06/24 23:52:03 INFO: Running database migration 19...
[F7O6R] 2024/06/24 23:52:03 INFO: Compacting database after migration...
[F7O6R] 2024/06/24 23:52:03 INFO: Overall send rate is unlimited, receive rate is unlimited
[F7O6R] 2024/06/24 23:52:03 INFO: Using discovery mechanism: global discovery server https://discovery.syncthing.net/v2/?noannounce&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[F7O6R] 2024/06/24 23:52:03 INFO: Using discovery mechanism: global discovery server https://discovery-v4.syncthing.net/v2/?nolookup&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[F7O6R] 2024/06/24 23:52:03 INFO: Using discovery mechanism: global discovery server https://discovery-v6.syncthing.net/v2/?nolookup&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[F7O6R] 2024/06/24 23:52:03 INFO: Using discovery mechanism: IPv4 local broadcast discovery on port 21027
[F7O6R] 2024/06/24 23:52:03 INFO: Using discovery mechanism: IPv6 local multicast discovery on address [ff12::8384]:21027
[F7O6R] 2024/06/24 23:52:03 INFO: TCP listener ([::]:22000) starting
[F7O6R] 2024/06/24 23:52:03 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[F7O6R] 2024/06/24 23:52:03 INFO: QUIC listener ([::]:22000) starting
[F7O6R] 2024/06/24 23:52:03 INFO: Loading HTTPS certificate: open /path/.syncthing/https-cert.pem: no such file or directory
[F7O6R] 2024/06/24 23:52:03 INFO: Creating new HTTPS certificate
[F7O6R] 2024/06/24 23:52:03 INFO: Detected 0 NAT services
[F7O6R] 2024/06/24 23:52:03 INFO: GUI and API listening on [::]:8384
[F7O6R] 2024/06/24 23:52:03 INFO: Access the GUI via the following URL: http://127.0.0.1:8384/
[F7O6R] 2024/06/24 23:52:03 INFO: My name is "REDACTED"
[F7O6R] 2024/06/24 23:52:03 WARNING: Syncthing should not run as a privileged or system user. Please consider using a normal user account.
[F7O6R] 2024/06/24 23:52:23 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
[F7O6R] 2024/06/24 23:52:23 INFO: listenerSupervisor@dynamic+https://relays.syncthing.net/endpoint: service dynamic+https://relays.syncthing.net/endpoint failed: Get "https://relays.syncthing.net/endpoint": dial tcp: lookup relays.syncthing.net on [::1]:53: read udp [::1]:50613->[::1]:53: i/o timeout
[F7O6R] 2024/06/24 23:52:23 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[F7O6R] 2024/06/25 00:47:23 INFO: Joined relay relay://51.15.175.80:22067
[F7O6R] 2024/06/25 00:47:23 INFO: Joined relay relay://51.15.175.80:22067
[F7O6R] 2024/06/25 00:51:26 INFO: quic://0.0.0.0:22000 detected NAT type: Symmetric UDP firewall
[F7O6R] 2024/06/25 00:51:26 INFO: quic://0.0.0.0:22000 resolved external address quic://REDACTED:22000 (via stun.syncthing.net:3478)
[F7O6R] 2024/06/25 18:47:15 INFO: quic://0.0.0.0:22000 resolved external address quic://REDACTED:22000 (via stun.syncthing.net:3478)
[F7O6R] 2024/06/25 18:47:24 INFO: Joined relay relay://5.196.64.99:22067
[F7O6R] 2024/06/26 11:29:49 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
[F7O6R] 2024/06/26 11:29:49 INFO: QUIC listener ([::]:22000) shutting down
[F7O6R] 2024/06/26 11:29:50 INFO: TCP listener ([::]:22000) shutting down
[F7O6R] 2024/06/26 11:29:50 INFO: Exiting
[start] 2024/06/26 11:31:52 INFO: syncthing v1.27.1 "Gold Grasshopper" (go1.22.2 linux-arm64) openwrt@openwrt 2024-05-11 17:33:28 UTC [noupgrade, stnoupgrade]
[KPAHX] 2024/06/26 11:31:52 INFO: My ID: KPAHX6Y-7CUSAVN-WP2DUKY-VPZ42XX-4QKVRUB-54MA55M-4LEH4RW-47R3TAK
[KPAHX] 2024/06/26 11:31:53 INFO: Single thread SHA256 performance is 1045 MB/s using minio/sha256-simd (719 MB/s using crypto/sha256).
[KPAHX] 2024/06/26 11:31:53 INFO: Hashing performance is 254.41 MB/s
[KPAHX] 2024/06/26 11:31:53 INFO: Cleaning metadata for dropped folder "wqdnt-rapyr"
[KPAHX] 2024/06/26 11:32:06 INFO: Overall send rate is unlimited, receive rate is unlimited
[KPAHX] 2024/06/26 11:32:06 INFO: Using discovery mechanism: global discovery server https://discovery.syncthing.net/v2/?noannounce&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[KPAHX] 2024/06/26 11:32:06 INFO: Using discovery mechanism: global discovery server https://discovery-v4.syncthing.net/v2/?nolookup&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[KPAHX] 2024/06/26 11:32:06 INFO: Using discovery mechanism: global discovery server https://discovery-v6.syncthing.net/v2/?nolookup&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW
[KPAHX] 2024/06/26 11:32:06 INFO: Using discovery mechanism: IPv4 local broadcast discovery on port 21027
[KPAHX] 2024/06/26 11:32:06 INFO: Using discovery mechanism: IPv6 local multicast discovery on address [ff12::8384]:21027
[KPAHX] 2024/06/26 11:32:06 INFO: TCP listener ([::]:22000) starting
[KPAHX] 2024/06/26 11:32:06 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[KPAHX] 2024/06/26 11:32:06 INFO: QUIC listener ([::]:22000) starting
[KPAHX] 2024/06/26 11:32:06 INFO: GUI and API listening on [::]:8384
[KPAHX] 2024/06/26 11:32:06 INFO: Access the GUI via the following URL: http://127.0.0.1:8384/
[KPAHX] 2024/06/26 11:32:06 INFO: My name is "REDACTED"
[KPAHX] 2024/06/26 11:32:06 INFO: Device F7O6REZ-JABQKBG-WF4R7B5-VVLOF6X-447NGW7-XQU54BB-SAUEGVP-YVDVYQQ is "REDACTED" at [dynamic]
[KPAHX] 2024/06/26 11:32:06 WARNING: Syncthing should not run as a privileged or system user. Please consider using a normal user account.
[KPAHX] 2024/06/26 11:32:16 INFO: quic://0.0.0.0:22000 detected NAT type: Symmetric UDP firewall
[KPAHX] 2024/06/26 11:32:16 INFO: quic://0.0.0.0:22000 resolved external address quic://REDACTED:22000 (via stun.syncthing.net:3478)
[KPAHX] 2024/06/26 11:32:16 INFO: Detected 1 NAT service
[KPAHX] 2024/06/26 11:33:05 INFO: Joined relay relay://129.151.224.182:22067
One line stood out
[start] 2024/06/24 23:52:02 INFO: Archiving a copy of old config file format at: /path/.syncthing/config.xml.v0
I didn’t find config.xml.v0. Was it deleted as well ?
syncthing version: syncthing v1.27.1 "Gold Grasshopper" (go1.22.2 linux-arm64) openwrt@openwrt 2024-05-11 17:33:28 UTC [noupgrade]
NOTE: when this happened previously, I was using v1.27.7 as far as I remember, downloaded from Github releases