question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syncthing has crashed (exit code 2) notification

See original GitHub issue

Thanks for picking up the torch on maintaining this, @Catfriend1. It is greatly appreciated.

I been using your fork for quite some time (couple (few?) years), and never a single problem. Suddenly recently (I only noticed today) it just starts crashing over and over. I noticed because I saw the text in the title in my notifications.

I can kill the wrapper, then open it again, it seems to restart the main Syncthing service and work for some short time (perhaps even syncing few files) then suddenly Syncthing crashes. So I’m not really even sure this is a bug report for here or the main project but thought I would start here.

Only thing I can think “what changed?” in the meantime is my cellular service was shut off? I would think it should still work on Wi-Fi anyway, but who knows… Other than that, I did quite some updates to the files (changing some file names, some deletions, and moving others) on the computer side, not sure if that is relevant either. Now that I think about it, this was when I decided to look at my phone because I wanted to make sure these changes were going through. And that was when I saw the crash notification. I did also reboot my phone once, but that did not seem to help.

Description of the issue

Upon starting up the wrapper, the main Syncthing process seems to crash after only a few seconds.

Reproducer

Am I supposed to put something here? 😄

Version Information

App Version: 1.6.0.4
Syncthing Version: not sure?
Android Version: Android 5.1.1 / LineAgeOS 12.1
Device manufacturer: Samsung
Device model: Galaxy s5

Device platform info

[ro.product.board]: [MSM8974]
[ro.product.brand]: [samsung]
[ro.product.cpu.abi2]: [armeabi]
[ro.product.cpu.abi]: [armeabi-v7a]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: []
[ro.product.cpu.abilist]: [armeabi-v7a,armeabi]
[ro.product.device]: [kltetmo]
[ro.product.locale.language]: [en]
[ro.product.locale.region]: [US]
[ro.product.manufacturer]: [samsung]
[ro.product.model]: [SM-G900T]
[ro.product.name]: [cm_klte]

Android Log

See https://paste.debian.net/hidden/73ffc975. I have more, it goes on and on before that, too. I thought it looked pretty redundant, but what do I know.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TRSx80commented, Jul 11, 2020

Remaining stuck bits revolved around a few apparently fairly run of the mill issues, which were easily solved with a little searching:

  • file modified but not rescanned; will try again later (case only renames)
  • illegal characters
  • some permissions issues
  • etc…

So, very happy to report, everything appears fully back working now! 🍻

1reaction
TRSx80commented, Jul 10, 2020

upgrade from 1.6.x to 1.7.0

Aah yes! I had not noticed the version bump in the meantime. Looking closer at the release numbers (instead of text), I see it now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exit Code 2 is documented wrong · Issue #265 · syncthing/docs
The docs say exit code 2 means "Upgrade not available". But according to Audrius it is also "the exit code returned by the...
Read more >
Syncthing keeps crashing silently in the background - Android
Hi,. It seems there is a zombie native instance still holding resources locked. Please try to restart the phone first. [start] WARNING: Error...
Read more >
Android crashing with some logs - Syncthing Community Forum
Every time my phone is charging and get's fully charged, i get an error message saying: “Syncthing has crashed”. I can't tell if...
Read more >
Android crashing with some logs - #25 by simon7
Every time my phone is charging and get's fully charged, i get an error message saying: “Syncthing has crashed”. I can't tell if...
Read more >
Database error takes down UI! - Support - Syncthing Forum
When detecting a fatal error, meaning Syncthing cannot work any more, it shuts down. The web UI is part of the Syncthing service,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found