syncthing / syncthing-android

Wrapper of syncthing for Android.
https://syncthing.net/
Mozilla Public License 2.0
3.39k stars 380 forks source link

Syncthing does not activate automatically after always-on VPN drops and reconnect #1799

Open Knud3 opened 2 years ago

Knud3 commented 2 years ago

Setup:

Reproduce: Disable WireGuard connection > Syncthing goes disabled state > Enable WireGuard connection > Syncthing stays in disabled state

Expected: Disable WireGuard connection > Syncthing goes disabled state > Enable WireGuard connection > Syncthing activates again

Workaround: Sometimes opening app is enought to get it working again but sometimes there is notification Syncthing is disabled and tapping Change settings and returning to main screen fixes it. Nothing else is needed.

I get that this is not support forum, but is it possible to get Syncthing to sync every possible network without any checking for workaround?

Catfriend1 commented 1 year ago

Hi, what does the SyncthingNative log say when that happens? I wonder if the binary somehow gets stuck or bound to a wrong interface? I also wonder why its a problem in the official app. We have it in both fork and official - but the fork has a configurable method of binding to mobile/wifi/etc interface. The official app does not bind to a specific interface. I've got no clue why the "stuck in starting" happens yet. Also, a logcat would be nice to further dig into this in case it turns out not to boil down to a stuck SyncthingNative instance.

Knud3 commented 1 year ago

@Catfriend1 Nowadays I use your Syncthing-Fork and with Bind to active network and Force start ignore run conditions it works perfectly for me.