I have a problem on one of my Android devices, where Syncthing keeps crashing in the background with no visible error messages, i.e. there are neither any notifications on the Android device itself nor any errors in the Web GUI (when connected remotely).
To be specific, the Web GUI simply stops responding at all, while the application does open, but all folders are marked as “Unknown”. I need to restart Syncthing completely to get it back to life, but the next crash occurs just a few hours later and stops everything again anyway.
I am using the official Syncthing application v1.4.2 under Android 4.4.4. I have two other devices with similar configuration, i.e. the same version of Syncthing, the same folders shared, etc., but those two do not experience any of these problems.
The logfile seems quite short, and I am guessing that it has been overwritten by Syncthing trying to restart and failing in the process.
[XFY6L] INFO: quic://0.0.0.0:22000 detected NAT type: Symmetric NAT
[XFY6L] INFO: quic://0.0.0.0:22000 resolved external address quic://125.190.151.7:2278 (via stun.syncthing.net:3478)
[XFY6L] INFO: Established secure connection to EEYCH4R-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX at 10.0.0.6:33794-10.0.0.5:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Device EEYCH4R-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX client is "syncthing v1.4.2" named "XXXXXXXXXXX" at 10.0.0.6:33794-10.0.0.5:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Detected 2 NAT services
[XFY6L] INFO: Established secure connection to MN2XAEL-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX at 10.0.0.6:58854-10.0.0.4:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Device MN2XAEL-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX client is "syncthing v1.4.2" named "XXXXXXXXXXX" at 10.0.0.6:58854-10.0.0.4:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[start] INFO: syncthing v1.4.2 "Fermium Flea" (go1.14.1 android-arm) vagrant@basebox-stretch64 2020-04-07 11:14:03 UTC
[start] WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?)
[start] INFO: syncthing v1.4.2 "Fermium Flea" (go1.14.1 android-arm) vagrant@basebox-stretch64 2020-04-07 11:14:03 UTC
[start] INFO: No automatic upgrades; STNOUPGRADE environment variable defined.
[XFY6L] INFO: My ID: XFY6LHE-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX
[XFY6L] INFO: Hashing performance is 13.66 MB/s
[XFY6L] INFO: Overall send rate is unlimited, receive rate is unlimited
[XFY6L] INFO: Using discovery server https://discovery.syncthing.net/v2/?noannounce&id=LYXKCHX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX
[XFY6L] INFO: Using discovery server https://discovery-v4.syncthing.net/v2/?nolookup&id=LYXKCHX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX
[XFY6L] INFO: Using discovery server https://discovery-v6.syncthing.net/v2/?nolookup&id=LYXKCHX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX
[XFY6L] INFO: QUIC listener ([::]:22000) starting
[XFY6L] INFO: Ready to synchronize "XXXXXXXXXXX (XXX)" (xxxxx-xxxxx) (sendonly)
[XFY6L] INFO: TCP listener ([::]:22000) starting
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[XFY6L] INFO: Ready to synchronize "XXXXXXXXXXX (XXX)" (xxxxx-xxxxx) (sendonly)
[XFY6L] INFO: Ready to synchronize "XXX" (xxxxx-xxxxx) (sendreceive)
[XFY6L] INFO: Ready to synchronize "XXX" (xxxxx-xxxxx) (sendreceive)
[XFY6L] INFO: GUI and API listening on [::]:8384
[XFY6L] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/
[XFY6L] INFO: My name is "XXXXXXXXXXX"
[XFY6L] INFO: Device EEYCH4R-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX is "XXXXXXXXXXX" at [tcp://10.0.0.5 dynamic]
[XFY6L] INFO: Device MN2XAEL-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX is "XXXXXXXXXXX" at [tcp://10.0.0.4 dynamic]
[XFY6L] INFO: Device TLFGVKC-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX is "XXXXXXXXXXX" at [dynamic]
[XFY6L] INFO: Device 6HPLASD-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX is "XXXXXXXXXXX" at [dynamic]
[XFY6L] INFO: Device 6ULTOO6-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX is "XXXXXXXXXXX" at [dynamic]
[XFY6L] INFO: Device D4DZUGP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX is "XXXXXXXXXXX" at [tcp://10.0.0.2 dynamic]
[XFY6L] INFO: Established secure connection to D4DZUGP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX at 10.0.0.6:58541-10.0.0.2:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256
[XFY6L] INFO: Device D4DZUGP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX client is "syncthing v1.4.2" named "XXXXXXXXXXX" at 10.0.0.6:58541-10.0.0.2:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256
[XFY6L] INFO: quic://0.0.0.0:22000 detected NAT type: Symmetric NAT
[XFY6L] INFO: quic://0.0.0.0:22000 resolved external address quic://125.190.151.7:2281 (via stun.syncthing.net:3478)
[XFY6L] INFO: Established secure connection to EEYCH4R-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX at 10.0.0.6:50577-10.0.0.5:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Device EEYCH4R-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX client is "syncthing v1.4.2" named "XXXXXXXXXXX" at 10.0.0.6:50577-10.0.0.5:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Listen (BEP/relay): Get "https://relays.syncthing.net/endpoint": stream error: stream ID 1; INTERNAL_ERROR
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
[XFY6L] INFO: c.S.listenerSupervisor: Failed service 'dynamic+https://relays.syncthing.net/endpoint' (1.000000 failures of 2.000000), restarting: true, error: "{dynamic+https://relays.syncthing.net/endpoint dynamic+https://relays.syncthing.net/endpoint} returned unexpectedly", stacktrace: [unknown stack trace]
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[XFY6L] INFO: Detected 2 NAT services
[XFY6L] INFO: Established secure connection to MN2XAEL-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX at 10.0.0.6:58775-10.0.0.4:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Device MN2XAEL-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX client is "syncthing v1.4.2" named "XXXXXXXXXXX" at 10.0.0.6:58775-10.0.0.4:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Listen (BEP/relay): Get "https://relays.syncthing.net/endpoint": stream error: stream ID 3; INTERNAL_ERROR
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
[XFY6L] INFO: c.S.listenerSupervisor: Failed service 'dynamic+https://relays.syncthing.net/endpoint' (1.786692 failures of 2.000000), restarting: true, error: "{dynamic+https://relays.syncthing.net/endpoint dynamic+https://relays.syncthing.net/endpoint} returned unexpectedly", stacktrace: [unknown stack trace]
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[XFY6L] INFO: Listen (BEP/relay): Get "https://relays.syncthing.net/endpoint": stream error: stream ID 5; INTERNAL_ERROR
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
[XFY6L] INFO: Entering the backoff state.
[XFY6L] INFO: c.S.listenerSupervisor: Failed service 'dynamic+https://relays.syncthing.net/endpoint' (2.404646 failures of 2.000000), restarting: false, error: "{dynamic+https://relays.syncthing.net/endpoint dynamic+https://relays.syncthing.net/endpoint} returned unexpectedly", stacktrace: [unknown stack trace]
[XFY6L] INFO: Completed initial scan of sendreceive folder "XXXXXXXXXXX" (xxxxx-xxxxx)
[XFY6L] INFO: Completed initial scan of sendreceive folder "XXXXXXXXXXX" (xxxxx-xxxxx)
[XFY6L] INFO: Completed initial scan of sendonly folder "XXXXXXXXXXX (XXX)" (xxxxx-xxxxx)
[XFY6L] INFO: Completed initial scan of sendonly folder "XXXXXXXXXXX (XXX)" (xxxxx-xxxxx)
[XFY6L] INFO: Established secure connection to TLFGVKC-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX at 10.0.0.6:57268-144.76.71.91:22067/relay-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Device TLFGVKC-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX client is "syncthing v1.4.2" named "XXXXXXXXXXX" at 10.0.0.6:57268-144.76.71.91:22067/relay-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256
[XFY6L] INFO: Exiting backoff state.
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[XFY6L] INFO: Listen (BEP/relay): Get "https://relays.syncthing.net/endpoint": stream error: stream ID 1; INTERNAL_ERROR
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
[XFY6L] INFO: c.S.listenerSupervisor: Failed service 'dynamic+https://relays.syncthing.net/endpoint' (1.000000 failures of 2.000000), restarting: true, error: "{dynamic+https://relays.syncthing.net/endpoint dynamic+https://relays.syncthing.net/endpoint} returned unexpectedly", stacktrace: [unknown stack trace]
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[XFY6L] INFO: Listen (BEP/relay): Get "https://relays.syncthing.net/endpoint": stream error: stream ID 3; INTERNAL_ERROR
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
[XFY6L] INFO: c.S.listenerSupervisor: Failed service 'dynamic+https://relays.syncthing.net/endpoint' (1.787457 failures of 2.000000), restarting: true, error: "{dynamic+https://relays.syncthing.net/endpoint dynamic+https://relays.syncthing.net/endpoint} returned unexpectedly", stacktrace: [unknown stack trace]
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[XFY6L] INFO: Listen (BEP/relay): Get "https://relays.syncthing.net/endpoint": stream error: stream ID 5; INTERNAL_ERROR
[XFY6L] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
[XFY6L] INFO: Entering the backoff state.
[XFY6L] INFO: c.S.listenerSupervisor: Failed service 'dynamic+https://relays.syncthing.net/endpoint' (2.407509 failures of 2.000000), restarting: false, error: "{dynamic+https://relays.syncthing.net/endpoint dynamic+https://relays.syncthing.net/endpoint} returned unexpectedly", stacktrace: [unknown stack trace]
[XFY6L] INFO: Connection to MN2XAEL-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX at 10.0.0.6:58775-10.0.0.4:22000/tcp-client/TLS1.3-TLS_CHACHA20_POLY1305_SHA256 closed: Syncthing is being stopped
[XFY6L] INFO: quic://0.0.0.0:22000 resolved external address quic://125.190.151.7:2283 (via stun.syncthing.net:3478)
[XFY6L] INFO: quic://0.0.0.0:22000 resolved external address quic://125.190.151.7:22000 (via stun.syncthing.net:3478)
I have also grabbed and backed up the whole database folder just in case it is needed.
What do you think of this, and is there anything else I should do to help debug this problem?