Skip to content

panic: device present in global list but missing as device/fileinfo entry when dropping device/folder #6501

Closed as not planned

Description

@syncthing-sentry

This might not be the greatest place for that panic, we might want to be more lenient.

syncthing/lib/db/set.go

Lines 80 to 84 in 88cabb9

if err := s.db.dropDeviceFolder(device[:], []byte(s.folder), s.meta); backend.IsClosed(err) {
return
} else if err != nil {
panic(err)
}

//@calmh

Activity

  1. imsodin commented on Apr 6, 2020

    @imsodin
    Member

    Issue #6457 respectively PR #6502 are connected (panicking at this place).

    What do you mean by being more lenient? I agree panicking isn't nice, however I don't understand how it is different here from all the other places in the db where we panic.

  2. calmh commented on Apr 6, 2020

    @calmh
    Member

    My gut reaction was that we're complaining that something is missing when we are going to remove it, but that might of course not be the case, it might be the new global that is missing...

  3. AudriusButkevicius commented on Jul 17, 2020

    @AudriusButkevicius
    Member

    Seems to be triggered when switching to receive only folders it seems.

  4. added
    bug
    on May 30, 2025
  5. added theissue type on May 30, 2025
  6. added
    frozen-due-to-age
    on Jul 1, 2026
  7. locked and limited conversation to collaborators on Jul 1, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions