ionstorm
(Ewe Jin, Yeap)
September 28, 2016, 6:39am
1
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.
calmh
(Jakob Borg)
September 28, 2016, 6:48am
2
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.
ionstorm
(Ewe Jin, Yeap)
September 28, 2016, 7:01am
3
Ah. Thanks.
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.
calmh
(Jakob Borg)
September 28, 2016, 7:45am
4
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.
ionstorm
(Ewe Jin, Yeap)
September 28, 2016, 11:54am
6
Found it. Running the dev build. Hopefully i’ll have something tomorrow (it’s 8pm here and everyone’s gone home)
ionstorm
(Ewe Jin, Yeap)
September 29, 2016, 12:43am
7
I’m gonna mark this as solved and resume the conversation in the other thread. Thanks!
system
(system)
Closed
October 29, 2016, 12:48am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.