The WebUI dashboard shows 0 total accounts and domains
Expected Behavior
I expected the dashboard to show a non-zero values for total accounts and domains
Actual Behavior
The dashboard shows zero total accounts and and domains
Reproduction Steps
Go to the dashboard.
Stalwart Version
v1.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
The dashboard counts probably show 0 because the metric hasn’t been calculated yet. I haven’t confirmed that this is what’s happening on your server.
The dashboard’s account and domain totals come from the UserCount and DomainCount metrics. They are gauges that the server fills in from background queries against the registry, not values it reads live. In the source (crates/services/src/task_manager/scheduler.rs), a CalculateMetrics event runs every 5 minutes. It only refreshes the account and domain counts when a separate timer has elapsed, and that timer is set to once every 24 hours. The calculation also only runs on nodes whose cluster role includes metricsCalculate. The docs list that task as Enterprise.
The checks below might explain the zeros:
Time since startup: after a fresh start or restart, the gauges can stay at 0 until the first calculation runs. Give it a few minutes and refresh the dashboard.
Node roles: if you changed the roles on the node, check that it still has metricsCalculate enabled. Without it the gauges are never updated and stay at 0.
Logs: if the calculation is failing, the server logs “Failed to obtain account count” or “Failed to obtain domain count”. Search your logs for those strings.
Cross-check: compare against the actual counts in the WebUI under Accounts and Domains. If those lists are populated, the problem is only the metric.
If none of that explains it, please post the output of your log search and say whether you changed the cluster roles. I can’t tell from the docs or source whether this is a bug in your version.
Total Users and Total Domains are live cards: the WebUI reads them from the server’s live metrics stream (/api/live/metrics, server-sent events), not from the stored history. When that stream doesn’t reach the browser, the cards stay at 0.
Do the other live cards on the same dashboard, such as “HTTP active”, also show 0?
If they do, the stream is being blocked or buffered on the way, and the usual culprit is a reverse proxy that buffers responses (nginx does this by default for text/event-stream unless proxy_buffering off is set for that location). If the other live cards show real values and only users and domains are 0, please tell me the exact Stalwart version you’re running and I’ll dig into it.
Server Memory, Received Messages and Sent Messages come from the stored history, so they fill in even when the live stream never reaches the browser. On the Overview tab the live cards are Total Users, Total Domains and Pending Messages, and all three show 0 in your screenshot, which matches a blocked or buffered stream.
The quickest check is the Network tab: “HTTP active” is live, and it can’t be 0 while you’re looking at it, because your own browser session holds an HTTP connection. If it reads 0 too, the /api/live/metrics stream isn’t getting through.
Is there a reverse proxy in front of the container? With nginx, this in the location that proxies to Stalwart is usually enough: