You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Tried to add a third shared folder between my phone and my laptop. Initiated the share from my phone, Syncthing paniced on my laptop, and now synthings panics while starting.
Hi @AudriusButkevicius and thanks for your prompt answer, greatly appreciated!
I though id were auto-generated, I just checked android-side and (if I get it right) I have 4 shares, which ids are:
nexus_6p-photos
default
mv3sz-cniao
5z1xy-bg5iv
I don't know how to check the ids on my computer as the app won't start from now, but the app started to crash when I added a directory from my phone, and I have only two devices : my laptop and my phone.
I do not see an id conflict, please re-open.
(I'm new to syncthing, I don't expect a software to panic on an error you can make me fix by telling me a single simple line, please re-open the issue. It may not be an issue as you understand it, but it's at least an UX issue that needs to be fixed, I mean, my mother won't be able to use a software that crash and don't tell how to recover on simple errors, she won't be able to write english on a forum or whatever).
The discussion on this working out the issue should happen on the forum, so this will not be reopened until we work out the actual cause so there is a concrete thing to fix.
I don't see how a manual config edit could possibly result in this. I've seen the opposite error (panic when starting non-existent folder) because one part of the code looks in the (a?) global config object and another uses the folder config passed from the change event. I wouldn't be surprised if this was similar.
That would be a one-off crash, not repeated after restart.
This implies the config is screwed.
It's perfectly possible that we screw the config, yet we need the config, potentially the logs, the user needs to try X then try Y then report feedback if it fixed issue etc, which potentially helps us understand the cause, for which the forum is a much more suitable medium until we understand whats happening and then can reasonably quantify the problem and raise a work item.
Please try the build from #5067 once it rolls off.
Please remove all extra folders, and just leave the one that was crashing (or get it back into the state where it crashes), as it's getting hard to read.
I am finding that just 1 machine is suddenly getting these panics (of 4 machines all with 0.14.48 on Linux Mint 18.3).
The panic occurs with the last <folder ... > ... block in config.xml. If I remove that last block, then the panic occurs on the new last . I have removed 3 last folders sequentially now; the result is always the same, the new last is identified as 'already running' and syncthing panics.
I don't think I use auto-accept at all, so I don't know if this is the same problem as above. When I remove a block from config.xml, for the few minutes that syncthing stays running, it gets proposals to re-introduce the folder from a couple of other machines.
sorry, got some more information and could not edit my first post so I have deleted and re-added it here...
When I re-added the <folder ...> blocks I had removed, the panic started ocurring in the second to last block.
file:///home/graham/.config/syncthing/panic-20180722-184410.log
Additional information: I upgraded all my systems to Syncthing v0.14.49, The same computer as before has the same problem as before, ie panics trying to add a folder:
[JCQPR] 19:01:58 INFO: Adding folder "professional" (zcd6n-5g9pm)
panic: cannot start already running folder zcd6n-5g9pm
[monitor] 19:01:58 WARNING: Panic detected, writing to "/home/graham/.config/syncthing/panic-20180725-190158.log"
log attached... panic-20180725-190158.log
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
AudriusButkevicius commentedon Jul 11, 2018
Check your config, you probably have two folders with the same id. If you need more help, use the forum.
JulienPalard commentedon Jul 11, 2018
Hi @AudriusButkevicius and thanks for your prompt answer, greatly appreciated!
I though id were auto-generated, I just checked android-side and (if I get it right) I have 4 shares, which ids are:
I don't know how to check the ids on my computer as the app won't start from now, but the app started to crash when I added a directory from my phone, and I have only two devices : my laptop and my phone.
I do not see an id conflict, please re-open.
(I'm new to syncthing, I don't expect a software to panic on an error you can make me fix by telling me a single simple line, please re-open the issue. It may not be an issue as you understand it, but it's at least an UX issue that needs to be fixed, I mean, my mother won't be able to use a software that crash and don't tell how to recover on simple errors, she won't be able to write english on a forum or whatever).
Bests
AudriusButkevicius commentedon Jul 11, 2018
The discussion on this working out the issue should happen on the forum, so this will not be reopened until we work out the actual cause so there is a concrete thing to fix.
JulienPalard commentedon Jul 11, 2018
Sorry to report issue.
AudriusButkevicius commentedon Jul 11, 2018
Every potential bug should first be debugged and understood in the forum, unless you know exactly what the cause is and what has to be fixed.
calmh commentedon Jul 12, 2018
I disagree; a panic is a bug, and we should have an open ticket on it regardless of not yet understanding the root cause.
AudriusButkevicius commentedon Jul 12, 2018
Sure, lets leave this to rot eternally then.
For all that I know the user might have edited the config by hand and caused this. Is it still a bug in that case?
That's why this needs a conversation on the forum first, as this just talks about consequences, not the details how this happened.
calmh commentedon Jul 12, 2018
I don't see how a manual config edit could possibly result in this. I've seen the opposite error (panic when starting non-existent folder) because one part of the code looks in the (a?) global config object and another uses the folder config passed from the change event. I wouldn't be surprised if this was similar.
AudriusButkevicius commentedon Jul 12, 2018
That would be a one-off crash, not repeated after restart.
This implies the config is screwed.
It's perfectly possible that we screw the config, yet we need the config, potentially the logs, the user needs to try X then try Y then report feedback if it fixed issue etc, which potentially helps us understand the cause, for which the forum is a much more suitable medium until we understand whats happening and then can reasonably quantify the problem and raise a work item.
AudriusButkevicius commentedon Jul 15, 2018
Every folder has a different id in the current config with which it fails to start up?
AudriusButkevicius commentedon Jul 15, 2018
If you disable auto-accept by manually tweaking the config, does it fix itself?
AudriusButkevicius commentedon Jul 15, 2018
RIght, can you re-enable manually, post full log from stdout and post your config?
AudriusButkevicius commentedon Jul 15, 2018
Can you run with this build:
(windows)
https://build.syncthing.net/viewLog.html?buildId=24061&buildTypeId=Syncthing_BuildWindows&tab=artifacts
(crosscompiled)
https://build.syncthing.net/viewLog.html?buildId=24060&buildTypeId=Syncthing_BuildLinuxCross&tab=artifacts
Once it completes, and provide full logs once more, thanks.
AudriusButkevicius commentedon Jul 15, 2018
Please try the build from #5067 once it rolls off.
Please remove all extra folders, and just leave the one that was crashing (or get it back into the state where it crashes), as it's getting hard to read.
AudriusButkevicius commentedon Jul 16, 2018
https://build.syncthing.net/viewLog.html?buildId=24078&buildTypeId=Syncthing_BuildLinuxCross
The build URL is in the collapsed checks section
AudriusButkevicius commentedon Jul 16, 2018
Thanks, I now understand what the problem is, and I have a hunch why it happens. Let me produce one last build to verify my idea.
AudriusButkevicius commentedon Jul 16, 2018
See
#5067.
You'll find a link to the latest build, in this pull request by expanding the checks section and clicking on the
Linux, Crossbuild.AudriusButkevicius commentedon Jul 17, 2018
Can you try the build from #5069 and see if you can repro?
calmh commentedon Jul 22, 2018
@spicedreams panic trace?
spicedreams commentedon Jul 22, 2018
I am finding that just 1 machine is suddenly getting these panics (of 4 machines all with 0.14.48 on Linux Mint 18.3).
The panic occurs with the last <folder ... > ... block in config.xml. If I remove that last block, then the panic occurs on the new last . I have removed 3 last folders sequentially now; the result is always the same, the new last is identified as 'already running' and syncthing panics.
I don't think I use auto-accept at all, so I don't know if this is the same problem as above. When I remove a block from config.xml, for the few minutes that syncthing stays running, it gets proposals to re-introduce the folder from a couple of other machines.
sorry, got some more information and could not edit my first post so I have deleted and re-added it here...
When I re-added the <folder ...> blocks I had removed, the panic started ocurring in the second to last block.
file:///home/graham/.config/syncthing/panic-20180722-184410.log
spicedreams commentedon Jul 22, 2018
damn, drag & drop does not seem to have attached the panic log. Trying again...
spicedreams commentedon Jul 22, 2018
panic-20180722-184410.log
here we go...
spicedreams commentedon Jul 25, 2018
Additional information: I upgraded all my systems to Syncthing v0.14.49, The same computer as before has the same problem as before, ie panics trying to add a folder:
[JCQPR] 19:01:58 INFO: Adding folder "professional" (zcd6n-5g9pm)
panic: cannot start already running folder zcd6n-5g9pm
[monitor] 19:01:58 WARNING: Panic detected, writing to "/home/graham/.config/syncthing/panic-20180725-190158.log"
log attached...
panic-20180725-190158.log