Skip to content

panic: Should never get a deleted file as needed when we don't have it #5952

Closed

Description

@syncthing-sentry

Sentry Issue: SYNCTHING-2E

Stacktrace (most recent call first):

  File "/opt/tcagent/syncthing-3-work/174e136266f8a219/lib/model/folder_sendonly.go", line 69, in func1
    panic("Should never get a deleted file as needed when we don't have it")
  File "/opt/tcagent/syncthing-3-work/174e136266f8a219/lib/db/set.go", line 313, in func1
    return fn(f)
  File "/opt/tcagent/syncthing-3-work/174e136266f8a219/lib/db/instance.go", line 398, in withNeedLocal
    if !fn(f) {
  File "/opt/tcagent/syncthing-3-work/174e136266f8a219/lib/db/instance.go", line 319, in withNeed
    db.withNeedLocal(folder, truncate, fn)
  File "/opt/tcagent/syncthing-3-work/174e136266f8a219/lib/db/set.go", line 157, in WithNeed
    s.db.withNeed([]byte(s.folder), device[:], false, nativeFileIterator(fn))
  File "/opt/tcagent/syncthing-3-work/174e136266f8a219/lib/model/folder_sendonly.go", line 50, in pull
    f.fset.WithNeed(protocol.LocalDeviceID, func(intf db.FileIntf) bool {
  File "/opt/tcagent/syncthing-3-work/174e136266f8a219/lib/model/folder.go", line 137, in func2
    if f.puller.pull() {
  File "/opt/tcagent/syncthing-3-work/174e136266f8a219/lib/model/folder.go", line 163, in Serve
    pull()
  File "/opt/tcagent/syncthing-3-work/pkg/mod/github.com/thejerf/[email protected]+incompatible/supervisor.go", line 600, in func1

panic: Should never get a deleted file as needed when we don't have it

This implies inconsistencies in the model somehow?

Activity

  1. added
    bug
    on Oct 22, 2019
  2. added 2 commits that reference this issue on Dec 27, 2019
    899f9c0
    c7b4114
  3. added a commit that references this issue on Jan 21, 2020
    4c65690
  4. added this to the v1.4.0 milestone on Jan 24, 2020
  5. added 2 commits that reference this issue on Jan 30, 2020
    35caa6a
    32ba321
  6. added
    frozen-due-to-age
    on Jan 21, 2021
  7. locked and limited conversation to collaborators on Jan 21, 2021
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