garethgeorge / backrest

Backrest is a web UI and orchestrator for restic backup.
GNU General Public License v3.0
1.17k stars 37 forks source link

Compute stats failing is impossible to debug, as it doesn't show up as operation #393

Open Thinkscape opened 2 months ago

Thinkscape commented 2 months ago

Describe the bug

Compute stats doesn't show up as operation and if it fails, it fails silently and there's no way to see it.

To Reproduce

  1. Go to repo.
  2. Click [Compute stats]
  3. Wait a moment...
  4. The command fails (for whatever reason)

Expected behavior

The Compute stats operation shows up under Operation list and I can see its progress and status. If it failed, I can see the logs for it.

Actual

If it fails it triggers hooks, the repo icon changes to failed ❗ but it's impossible to inspect the failure.

Screenshot

image

Platform Info

garethgeorge commented 1 month ago

Forgot to include this in 0.14.0 but agreed that this is a bug, stats operations should probably show up in the operation list (but perhaps not the tree view).