Skip to content
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

App keeps crashing after setting fswatcher delay to 0.1 sec #2025

Closed
Jayant-Goyal opened this issue Dec 9, 2023 · 8 comments
Closed

App keeps crashing after setting fswatcher delay to 0.1 sec #2025

Jayant-Goyal opened this issue Dec 9, 2023 · 8 comments

Comments

@Jayant-Goyal
Copy link

Hi. I am using the 1.27.0 version of syncthing on Android 11. I set the fs watcher delay of 1 folder to 0.1 sec. Now the app keeps crashing as soon as it starts. How can I fix this without having to full clean and start over.

@tomasz1986
Copy link
Contributor

How can I fix this without having to full clean and start over.

If your device is rooted, then you could try to modify the config.xml file directly. Otherwise, you are probably out of luck, meaning that uninstalling and re-installing the app may be your only option.

@Jayant-Goyal
Copy link
Author

Jayant-Goyal commented Dec 9, 2023

Even though my device is not rooted, I can access the data folder in Android using workaround. I searched the internet where to find config.xml but there is only the log file in the data/(syncthing)/files folder.

@tomasz1986
Copy link
Contributor

The actual location is /data/data/com.nutomic.syncthingandroid on the /data partition.

@Jayant-Goyal
Copy link
Author

I was not able to access the data folder because my device is not rooted hence I decided to start over. Thanks for your help.

@tomasz1986
Copy link
Contributor

Sorry you had to do that. The crash itself isn't normal though. I can set the file watcher to 0.1 on my Android device (also running Android 11) with no issues.

@Jayant-Goyal
Copy link
Author

Detailed description of what I did:
I am running the syncthing app v1.27.0 on a phone running Android 11. I have multiple folders syncing with my PC from my phone. Some folder are on the internal storage and some are on the SD card that I have put in my phone. I changed the fs watcher delay of one of the folder on my SD card to 0.1 sec. As soon as I clicked save the app closed. I opened it but it kept closing. I tried cleaing cache, didn't work. I tried changing the name of the folder on my SD card to something else so that Syncthing thinks that the folder does not exist anymore hence the fs watcher delay won't matter but that did not help either. I have set it to run only when connect to wifi so I turend the wifi off and opened the app and it asked me to change the run conditions. From there I was able to enable Notify about Syncthing crashes in Debug menu. Then I closed the app and tured wifi on and opened the app again. It closed automatically and when I opened it again it again closed and my system said that Syncthing keeps stopping as it was doing from the start. I checked but there was no notification about crash. I noticed that when I open the app and it closes, there is a notification that says the server is starting but after sometime disappears. In the end I tried to find the config.xml but was unsuccessfull because my phone is not rooted. I ended up just doing clean start.

@acolomb
Copy link
Member

acolomb commented Dec 10, 2023

Just a thought, you might got hit by a bug in the a recent release, see syncthing/syncthing#9269. It's about to get fixed in the next hotfix release v1.27.1.

In addition, I think your config file might have gotten corrupted by the crash. So probably your best bet was to start from scratch anyway. Sorry for the trouble!

@imsodin
Copy link
Member

imsodin commented Dec 10, 2023

At this point this this looks more like a support request than a clear bug or feature request. Please use the forum - https://forum.syncthing.net/ - to continue discussions on this. The forum has a lot more eyes and friendly people on it than the issue tracker.

Thanks!

@imsodin imsodin closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants