So, while waiting for a way to get more panic logs, I still need the service to continue running and syncing.
I am currently running Syncthing from a terminal like this
STDEADLOCKTIMEOUT=600 ./syncthing -no-restart
Question: How do I run it so that it automatically restarts every time there’s a deadlock panic?
Link to the other issue…
This sounds like it’s deadlocking for some reason. Easiest way to debug it is to run it manually and capture the output, as I’m not sure how you’re starting it today.
Stop Syncthing from running using your current method
Open a new terminal, run syncthing -no-restart. Leave it like that.
When this happens again, open another terminal and run pkill -QUIT syncthing. It will exit with lots of trace data.
Paste that data somewhere, here will do in a pinch.
You remove the
-no-restart parameter, as that tells it to
not restart, much like you’d expect from what the parameter is called.
But really, once you have one good trace that’s enough. Apparently, however, the latest released version has neutered panic traces. If you could use the latest development snapshot instead (linked at the top of the page) that would be good.
I can try the dev snap. Will the other machines using 0.14.7 be able to sync?
Update: There doesn’t seem to be a build for macosx.
Yes, they’re all compatible. The Mac build is linked a little to the right of the other build at the top of the page.
There is also an envvar that can be set to force to print all routines.
Found it. Running the dev build. Hopefully i’ll have something tomorrow (it’s 8pm here and everyone’s gone home)
I’m gonna mark this as solved and resume the conversation in the other thread. Thanks!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.