Skip to content

Tray icon didn't show unpause on computer wake, while GUI icon did #5186

Open
@ts678

Description

@ts678
  • I have searched open and closed issues for duplicates.
  • I have searched the forum for related topics.

Environment info

  • Duplicati version: 2.0.8.1 Beta
  • Operating system: Windows 10
  • Backend: N/A

Description

After bringing the PC out of sleep today, I noticed that the tray icon was still paused despite a 0 second delay configured in Settings.
About --> System info pauseTimeRemain said it had 0 seconds left. The GUI icon at top of home screen showed the unpaused state.
Wireshark traces of the TrayIcon process to itself seem to agree. I couldn't trace the JavaScript, so instead I ran a backup and the icon went green and then back to the normal solid black (without the pause bars). I did another sleep/wake, and problem did not reoccur.
This Duplicati has no scheduled jobs, and no job was in progress overnight, as evidenced by the gap in the server profiling log below:

2024-05-12 15:57:53 -04 - [Information-Duplicati.Library.Main.Controller-CompletedOperation]: The operation Backup has completed
2024-05-13 09:48:08 -04 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Backup has started

This sort of problem gets mentioned occasionally in reports, but I'm not sure anyone has reported the differences in the two displays.
I'm almost certain nobody has provided Wireshark displays. I'm not sure if anyone tested a run to prove that it was just a bad display.

Steps to reproduce

  1. Have Duplicati sitting idle.
  2. Sleep the system.
  3. Wake the system.
  • Actual result:
    TrayIcon shows paused.
  • Expected result:
    TrayIcon shows ready.

Screenshots

Debug log

Wireshark during the odd paused TrayIcon:

...{
  "ProgramState": "Running",
  "UpdatedVersion": null,
  "UpdaterState": "Waiting",
  "UpdateReady": false,
  "UpdateDownloadProgress": 0.0,
  "ActiveTask": null,
  "SchedulerQueueIds": [],
  "ProposedSchedule": [],
  "HasWarning": false,
  "HasError": false,
  "SuggestedStatusIcon": "Ready",
  "EstimatedPauseEnd": "0001-01-01T00:00:00",
  "LastEventID": 3075,
  "LastDataUpdateID": 6,
  "LastNotificationUpdateID": 0

Wireshark during the run of next backup:

...{
  "ProgramState": "Running",
  "UpdatedVersion": null,
  "UpdaterState": "Waiting",
  "UpdateReady": false,
  "UpdateDownloadProgress": 0.0,
  "ActiveTask": {
    "Item1": 5,
    "Item2": "1"
  },
  "SchedulerQueueIds": [],
  "ProposedSchedule": [],
  "HasWarning": false,
  "HasError": false,
  "SuggestedStatusIcon": "Active",
  "EstimatedPauseEnd": "0001-01-01T00:00:00",
  "LastEventID": 3090,
  "LastDataUpdateID": 6,
  "LastNotificationUpdateID": 0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions