Skip to content

Show if devices have not connected in a long time #7703

Closed

Description

@SixFive7

Currently folders that are up to date are shown like this:
image

However, the second folder has not been syncing for at least a year!
A problem that is not directly apparent from the overview. Only after inspecting the list of devices synced with this folder and then opening each device to look at the "last seen" value might it become clear that this folder has not been synced in a long time.

To help get trustworthy status update at first glance (something that instills trust in Syncthing) I suggest the above to be changed to:
image

The threshold for when a folder is considered possibly stale could be some high value by default but editable in the advanced settings of the folder. Let's say a default of 14 days as not all use cases have at least 1 devices online always every second. However, if a folder has not synced (not seen a single device) for weeks; I'd consider that something most people would want to know.

Update: This warning would align with the other similar orange warning when Syncthing knows it can't ever be synced:
image

Activity

  1. added
    enhancement
    needs-triage
    on May 21, 2021
  2. bt90 commented on May 21, 2021

    @bt90
    Contributor

    Not really a fan of this concept as the duration for something to be considered stale is highly subjective. This could be anything between minutes and months.

    And it's not a useful information in a multi node cluster. The real source could have been long gone and the other nodes would happily keep it synced.

    An additional timestamp detail like "last modified" would probably have more value.

  3. SixFive7 commented on May 21, 2021

    @SixFive7
    Author

    I agree the timing is highly subjective. However I still think any information is better then nothing. To clarify in light of a multi node cluster scenario:

    • The warming should not show if a folder has at least 1 peer that has been online (syncing or not).
    • The warning should not appear on a folder if there is a problem with just one of it's peers.
    • The warning should only appear on a folder if that folder on that device has not synced with any of its peers in weeks (adjustable).
    • Maybe we can even extend this and show a stale warning on the peers gui if a peer has not been seen in weeks?

    A real life example from one of my setups. For a folder I had the topology:
    image

    Then my computer had to be replaced and I went about reinstalling everything. Syncthing was not my only priority at the time so I made a mistake and forgot the link to the storage server for this folder:
    image

    I do check the health of my storage server by glancing oer the 30+ folders on the syncthing dashboard of my storage server once in a while. However, because I forgot to replace the link the storage server kept showing "Up to Date" for this folder even though it had not seen my old PC (and thus any peer) in almost a year. As a consequence I've not enjoyed file versioning for that year.

    Now I do realize that on the storage server I could see my old pc be "offline". However, there are many peers (more so than folders) all sometimes online, offline or unused and with different naming schemes making it not really useful to look at and quickly get a feel of the state. And even when I do notice the peer it will just be offline. In practice one looks at the page scanning for warnings (in color) to determine the health of the system. Is there something red or something yellow; then I'll take a look at it. Only this would have draw attention.
    Thus it would have been really helpful if Syncthing would have notified me with such warning if it hadn't seen any peer for a long time. It has the information readily available already.

    Maybe something like this:
    image

    Update: Maybe tombstoned is the wrong wording here. What about this:
    image

  4. AudriusButkevicius commented on May 21, 2021

    @AudriusButkevicius
    Member

    To be honest, I feel this is your observability issue due to nature of your setup (a lot of devices yada yada), and not syncthing Issue.

    If you have a large setup, I'd expect you to invest time into monitoring it or building tools that help you monitor it.

    As it stands I feel you to asking us to solve your observability problems.

    I am not against the idea, but I feel it will be of no use or even an annoyance for most users, and seems implementing like that would have a non-trivial engineering.

  5. SixFive7 commented on May 21, 2021

    @SixFive7
    Author

    You misunderstand. I don't expect anybody to solve my observability problems. And laying out this feature request in detail and in good faith is my attempt at investing time in better tools to help monitor Syncthing.

    If my humble suggestion resonates with other power users and is accepted by the team I'd even put in the time to get acquainted with Go to try and make a good pull request.

    If not, consider the issue closed.

  6. imsodin commented on May 31, 2021

    @imsodin
    Member

    A label for devices we haven't seen in ages seems reasonable. I think this could/should live entirely in the web UI code, as you have all the needed info there (last connected time), no need to expand the API. If configuration is necessary, that can also be stored in local storage on the web UI.

    And it should clearly happen at device level: For folders there's no clear criterium, as any amount of devices are involved (and they might get up-to-date via a third device we don't know about, and possible other cases). I took the liberty to rename the issue.

  7. added
    ui
    and removed
    needs-triage
    on May 31, 2021
  8. changed the title [-]Show if folders are stale[/-] [+]Show if devices have not connected in a long time[/+] on May 31, 2021
  9. AudriusButkevicius commented on May 31, 2021

    @AudriusButkevicius
    Member

    But isn't this the same thing as the existing "last seen" row?

    I think this needs a better proposal fleshed out, as an outright "I have not seen a device for 7 days lets start flashing warnings" is definitely just going to cause a ton of noise with zero value.

  10. imsodin commented on May 31, 2021

    @imsodin
    Member

    But isn't this the same thing as the existing "last seen" row?

    I basically interpret this as a way to make that more discoverable, respectively pull attention to it.

    Changing the folder status to orange/warning and then maybe highlighting the last seen row somehow (or whatever else) doesn't seem that noisy to me. I do personally agree it doesn't add much value (at least it wont for me), but it seems some people want it enough to get their hands dirty, and I don't see it as detrimental/noisy. Just my stance, I don't have much investment in this question beyond liking (good) contributions :)

  11. AudriusButkevicius commented on May 31, 2021

    @AudriusButkevicius
    Member

    What happens if I startup my device after 7 days? Everything is orange?

  12. bt90 commented on May 31, 2021

    @bt90
    Contributor

    IMHO adding a Last change timestamp is less noisy and we don't need to come up with an arbitrary threshold for a warning. I know that we already have that information but it's hidden in the mouseover of the Latest change and suffers from bad discoverability.

  13. imsodin commented on May 31, 2021

    @imsodin
    Member

    What happens if I startup my device after 7 days? Everything is orange?

    Yep. Until the device connects. Doesn't seem so bad to me, but that's something better discussed between you and @SixFive7 - I really don't mind if it's this variant, no change at all or another variant (well here I might mind depending on what it turns out to be).

    And I don't see how last change has anything to do with this.

  14. added 6 commits that reference this issue on Sep 11, 2022
    7ba1c48
    23887d4
    0069716
    b420b24
    71d49c8
    ca04e9e
  15. tomasz1986 commented on Sep 11, 2022

    @tomasz1986
    Member

    I've given this a shot in #8530. I deliberately haven't changed device state colour though, as I didn't really feel that it was necessary, and I rather just added "(Stale)" to the "Disconnected" state instead (similarly to the already used "Disconnect (Unused)"). This way it seems much less intrusive for those that don't care about the information while still providing the necessary tip for the concerned users.

    Please let me know what you think and if this is enough.

  16. added a commit that references this issue on Sep 19, 2022
    c87604e
  17. added a commit that references this issue on Nov 8, 2022
    db49472
  18. added this to the v1.22.2 milestone on Nov 9, 2022
  19. added a commit that references this issue on Nov 22, 2022
    4ee1015
  20. added
    frozen-due-to-age
    on Nov 3, 2023
  21. locked and limited conversation to collaborators on Nov 3, 2023
  22. added a commit that references this issue on Jan 30, 2024
    d8296ce
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

    enhancementfrozen-due-to-ageui

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions