Skip to content

Event log: one place for system events, with errors pointed to instead of listed in cards #4431

Backlog
0 of 4 issues completed

Description

@pithead-architect

What's the problem

Owner request (2026-11-24): "an event log section like we have config and access". It should hold system events such as payouts, shares, "payout hit wallet", XvB switches and errors, "whatever other system events happen". Errors should not be listed inside status cards. Instead, the dashboard should say that errors exist and point to the event log, filtered by an error label.

Today:

  • The current UI lists errors inside a status card. The Stack topology and egress card shows each of the last 8 monitoring-ping failures, with a timestamp and an exception name ("Tor proxy ConnectionError", "HTTP status HTTP 408"). In the owner's screenshot they filled most of the card. The code, on develop only: ping_failures (dashboard/mining_dashboard/service/storage_schema.py:254, newest 50 kept), served as state.ping_failures with 8 rows (web/views/views.py:390), rendered by web/static/network/health.mjs:32-53.
  • Most events leave no durable record.
    • Hashrate events: the generic events table (ts, type, detail) is a chart-marker store. Its only writer is StateManager.add_event, called only for hashrate_loss and hashrate_recovered (service/data_service.py:464).
    • Alert edges: node down, disk, DB unhealthy or reset, wallet changed, worker offline, container unhealthy, clearnet exposed, XvB and others go to the notification channels. The only other trace is an in-memory per-day count for the daily digest. With no channel on (the default), nothing durable is kept.
    • XvB switches are log lines, and xvb_history samples about every 5 minutes.
    • Rig presence changes have no history.
    • Egress and Tor state changes keep only the latest state.
  • What is recorded is split:
    • payouts, shares, blocks, raffle_wins, audit_events (settings changes and results) and the access log each have their own table.
    • On develop-v2.1.0 the Overview Activity list merges some of them (web/views/overview_views.py:72 build_mining_activity, browser fallback web/static/sovereign/overview-model.mjs:200). It has only a coarse source (Mining, Settings, Access) and no error entries.

What it impacts

  • Every dashboard user, on appliance and DIY.
  • An operator cannot answer "what happened overnight?" or "when did the errors start?" without reading container logs.
  • A notification that fails, or one never sent because no channel is on, leaves no trace in the dashboard.

How I found it

How important is it

Medium. It gives every health and attention item one place to link to, and it keeps error lists out of status cards. It is not a release blocker. The work is split into the issues below, all in v2.1.0. PRs target develop-v2.1.0.

Acceptance criteria

Possible solutions

  • The split above (recommended): a dedicated event_log table with labels, severity and error episodes, kept apart from the chart-marker events table. Existing tables are read, not copied. The full Activity view becomes the Event log.
  • A fifth top-level page instead of an Advanced section: closer to "a section like config and access" in the current UI, but it breaks v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566's four pages and its limit of 10 controls outside Advanced. This is the owner's call.
  • A 2.0.x stopgap in the current UI: collapse the ping-failure list in the topology card to a count. This needs the owner to allow one current-UI change. Otherwise the current card stays until the lean UI replaces it.
  • Not in this tracker, follow-up when wanted: host-side events (miner watchdog restarts, upgrades, rollbacks); these need a new host-to-dashboard path and a security review. Also Tari merge-mined blocks, which have no data source today, since only a confirmed Tari payout is stored.

Sub-issues

Sub-issues

0 of 4 Issues completed
Loading 4 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    dashboardenhancementtracker

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions