Skip to content

Fix/backup tab timeout - #21

Merged
wvcollenburg merged 2 commits into
masterfrom
fix/backup-tab-timeout
Nov 22, 2026
Merged

wvcollenburg merged 2 commits into
masterfrom
fix/backup-tab-timeout

Conversation

@wvcollenburg

Copy link
Copy Markdown
Owner

Release 1.7.4: the Backup tab stays while a cluster answers slowly

The problem

The Backup tab disappeared, for everyone, exactly when a cluster had trouble. To answer a status request, the backup service first asked the cluster about its update state and nodes, and waited for the reply. With a node down, the login to the cluster waits through timeouts, which took longer than the dashboard's 3-second limit. The dashboard then treated the backup service as switched off and hid the tab. A newly registered cluster whose nodes did not answer had the same problem; on the local test stack its tab took about 90 seconds to appear.

The fix

  • Backup service: /status answers immediately with the last known cluster check. When that is older than a minute, a fresh check runs in the background, one per cluster at a time. An unreachable cluster still gets an answer and never blocks backups.
  • Dashboard: a status that times out now means "slow", not "off": the tab stays. Only a refused connection (the backup service is not running) hides it. The time limit went from 3 to 5 seconds.
  • Page: if the status request itself fails (for example during a dashboard restart), the tab stays as it was. A slow answer does not overwrite the defaults or the warning banner.

Testing

  • 704 unit tests pass, including a new one for the background check: it never waits, runs one refresh at a time per cluster, returns the stale answer while refreshing, and returns a non-blocking answer when the cluster fails.
  • Live on the local stack, as a user with Backup Manager rights on one folder:
Situation Before After
New cluster whose nodes don't answer tab after ~90 s status in 0.13 s, tab 4 s after login
Backup service slow (container paused) tab hidden "available, slow" after 5 s, tab stays
Backup service stopped tab hidden tab hidden (correct)
Service started again tab comes back

William David van Collenburg added 2 commits November 22, 2026 14:09
…tus from the cached pre-flight, refreshed in the background; a timeout is not 'off')
@wvcollenburg
wvcollenburg merged commit 0d230a0 into master Nov 22, 2026
2 checks passed
@wvcollenburg
wvcollenburg deleted the fix/backup-tab-timeout branch November 22, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant