Skip to content

panic: cannot start already running folder #5063

Closed

Description

@JulienPalard

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.

Version Information

  • syncthing v0.14.48 "Dysprosium Dragonfly" (go1.10.2 linux-amd64) [email protected] 2018-05-14 06:53:06 UTC
  • On Debian buster

Error logs

[...]
17:47:03 INFO: Adding folder "Caméra" (nexus_6p-photos)
Panic at 2018-07-11T17:47:03+02:00
panic: cannot start already running folder nexus_6p-photos
[...]

Activity

  1. AudriusButkevicius commented on Jul 11, 2018

    @AudriusButkevicius
    Member

    Check your config, you probably have two folders with the same id. If you need more help, use the forum.

  2. JulienPalard commented on Jul 11, 2018

    @JulienPalard
    Author

    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).

    Bests

  3. AudriusButkevicius commented on Jul 11, 2018

    @AudriusButkevicius
    Member

    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.

  4. JulienPalard commented on Jul 11, 2018

    @JulienPalard
    Author

    Sorry to report issue.

  5. AudriusButkevicius commented on Jul 11, 2018

    @AudriusButkevicius
    Member

    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.

  6. calmh commented on Jul 12, 2018

    @calmh
    Member

    I disagree; a panic is a bug, and we should have an open ticket on it regardless of not yet understanding the root cause.

  7. reopened this on Jul 12, 2018
  8. AudriusButkevicius commented on Jul 12, 2018

    @AudriusButkevicius
    Member

    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.

  9. calmh commented on Jul 12, 2018

    @calmh
    Member

    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.

  10. AudriusButkevicius commented on Jul 12, 2018

    @AudriusButkevicius
    Member

    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.

  11. AudriusButkevicius commented on Jul 15, 2018

    @AudriusButkevicius
    Member

    Every folder has a different id in the current config with which it fails to start up?

  12. AudriusButkevicius commented on Jul 15, 2018

    @AudriusButkevicius
    Member

    If you disable auto-accept by manually tweaking the config, does it fix itself?

  13. AudriusButkevicius commented on Jul 15, 2018

    @AudriusButkevicius
    Member

    RIght, can you re-enable manually, post full log from stdout and post your config?

  14. AudriusButkevicius commented on Jul 15, 2018

    @AudriusButkevicius
    Member

    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.

  15. AudriusButkevicius commented on Jul 16, 2018

    @AudriusButkevicius
    Member

    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.

  16. AudriusButkevicius commented on Jul 16, 2018

    @AudriusButkevicius
    Member

    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, Cross build.

  17. AudriusButkevicius commented on Jul 17, 2018

    @AudriusButkevicius
    Member

    Can you try the build from #5069 and see if you can repro?

  18. calmh commented on Jul 22, 2018

    @calmh
    Member

    @spicedreams panic trace?

  19. spicedreams commented on Jul 22, 2018

    @spicedreams

    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

  20. spicedreams commented on Jul 22, 2018

    @spicedreams

    damn, drag & drop does not seem to have attached the panic log. Trying again...

  21. spicedreams commented on Jul 22, 2018

    @spicedreams
  22. spicedreams commented on Jul 25, 2018

    @spicedreams

    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

  23. added
    bug
    on Jul 26, 2018
  24. added this to the v0.14.50 milestone on Jul 27, 2018
  25. added
    frozen-due-to-age
    on Jul 27, 2019
  26. locked and limited conversation to collaborators on Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions