-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run conditions disregarded #1193
Comments
Hi @DutchFlander !
EDIT: Sidenote 2: The dialog "Syncthing is disabled" despite matching run conditions can happen if the syncthing binary process (the core application that is wrapped by this app) dies or exits unexpectedly. Running "su / killall libsyncthing.so" in a root shell got me reproduce this. A better syncthing crash detector is also on my todo list. |
This comment has been minimized.
This comment has been minimized.
Hi @Catfriend1, Thanks, but since I sync important data between several machines and using it on a daily basis with my own disco and relay server, I don't think testing debug builds is a safe option for me. I always use stable release. Or if you think I can safely jump back and forth between stable and debug releases, maybe I'll give them a try. One other thing to add here is that I'm not "stress testing" the change checkboxes quickly. Doesn't matter how slowly, you just have to make a change in the run conditions in order to start Syncthing. Before the current release I just had to plug the charging cable to my mobile and it started synching all the data between the machines. Something changed in the current release that was not present in the previous one. Thanks for your understanding, |
@DutchFlander The debug builds wont affect your existing release build installation. They show up as a second syncthing icon beside the existing one in the app drawer as they are a separate app from android perspective. They are not expected to be dangerous as I only changed run condition behaviour not data syncing. Its safer for you to exit the release version, install the debug app and only try run conditions leaving the folders and devices empty at default. You mustn't open both apps in parallel, if using release app e.g. the debug app has to be quit before launching. (Usually the right of the two app icons is debug in androids app drawer) after testing, uninstall debug app. |
I get the same error on Android 8.1.0. Happy to test debug builds but the link above to the APK requires login/password. @Catfriend1 can you please provide another apk? |
The debug APK fixed the issue for me.
|
I have the same issue, I see the original report was setup for version 0.10.12. |
@Exist2Resist can you please check the status tab before and after the problem occurs, including some logs? The tab is unofficial thus living at https://github.com/Catfriend1/syncthing-android/releases |
I have the same as @Exist2Resist. With the current version, configured to run only on charging, Syncthing doesn't seem to notice when I plug the charging cable in, and sync doesn't start. I have to check and uncheck one of the run conditions boxes to get it to start. |
@Catfriend1 what logs do you need, and how do you want me to test it? |
@Catfriend1 decided to fork the app and maintain a forked version, so I suggest you continue the debugging on the fork. Even if you do get a response here, I'd prefer if the discussions about something being fixed in the fork would happen on the forks issue tracker, and not here. |
Will there be a PR to merge this back into the main repo, though? It's an important bug. |
It's not up to me, I wasn't the one that decided to fork. If someone opens a PR, I'll review, provide feedback and merge if appropriate. |
I can file a PR after the solution proved to work. Unfortunately that is not easy to make sure as Android handles the broadcasts needed for the run conditions differently in each recent version. |
I'm using Syncthing v0.14.50 and the latest syncthing-android version. It's a mess right now. I have syncthing-android configured to run on WIFI. However, it is constantly disabled despite my phone being connected to my local wifi network. I have to restart the app manually every time. When I first tap the Syncthing icon, it says it's not running, givig me the Exit and Change Settings options. What I do is tap Android's back button and tap on the Syncthing app again for it to actually start and load (no exit/change settings options this time). Until my phone times out and the screen goes off, and I have to repeate the procedure again. |
@schmendrik What's your phone model and Android version? Maybe this is a manufacturer specific extension like (put WiFi off when screen off ) or (broadcast limitation for battery saving means)? |
@Catfriend1 Since I reported this bug, nothing changed regarding the automatic syncing. Thanks for your attention in advance, hope it helps! |
@Catfriend1 I'm using an LG V20, Android 8.0.0 (Kernel 3.18.71). I don't know of any manufacturer specific extensions that turn WiFi on and off. I've recently upgraded from Android 7 to 8, now I'm not sure if I had the same issue on Android 7, but now that I think about it, syncthing may have started to behave strangely right around that the time I upgraded. I just checked my WiFi settings, "Keep Wi-Fi on when screen is off" is enabled, though. At this point, I can't tell if it was the Android upgrade, or an update of syncthing-android itself that introduced this issue. |
If you have whitelisted wifi networks you need to grant location permission to syncthing (as otherwise it can't lookup network names, from which google claims you can infer location). |
AOSP 8.1 or 9, with "specific networks" Seeing the same, start the app "can't run exit/change settings", go to settings, uncheck "run on Wi-Fi", check back "run on Wi-Fi", hit back....magic...now it works. Location perm granted, but no location enabled. |
It seems, if you disable location, on certain ROMs, this also removes the possibility of getting the connected SSID. That's a very unfortunate decision by Google, in my opinion, but I somehow understand, why it has been made. |
@capi Ok, but how does it get the ssid suddenly after toggle and untoggle? Or maybe it doesn't toggle on and stays off on back....then on the next start it checks and fails....? |
@licaon-kter True. Needs to be investigated. |
More info from my case:
On thing is unfortunately clear, most of the time, unless I open the app and do the magic spells, it will not sync by itself. |
Hi,
After the latest update (v0.14.49) the Run Conditions are disregarded.
When I'm on the added wifi and charging and logging in, I have the option to exit or change the settings only. Previously with the same setup it was working perfectly.
When I remove the setting to sync only when charging and back, it starts working again, like before.
I guess this version has some new bug...
How to reproduce:
Syncthing won't start, but asks me to change settings:
4. go to change settings
5. in run conditions remove check mark and add it back to run only when charging
6. Syncthing starts to run in the background again
Version Information
The text was updated successfully, but these errors were encountered: