Dashboard unable to load

Issue Description

Hi folks,

I activated the enterprise feature. After reloading the server settings under Actions, the features were available.

However, when I access the Dashboard, I see the following error:
This server is temporarily unavailable. Attempting this same operation later may succeed.

Looking at the log I see the error store not configured with the text:

listenerId = "https", localPort = 443, remoteIp = 1xx.xxx.xxx.49, remotePort = 38931, causedBy = "crates/store/src/dispatch/store.rs:152", causedBy = "crates/jmap/src/registry/mapping/telemetry.rs:501", accountId = 1, causedBy = "x:Metric/query"

In settings under Storage , I have defined Use data store for both, Metrics Store and Tracing Store. The data store itself is SQLite. I’m running Stalwart in a Docker container. E-Mail services function flawless. What could possibly be wrong?

Best regards

Expected Behavior

Dashboard shows values.

Actual Behavior

It doesn’t show any values. It shows the error:
This server is temporarily unavailable. Attempting this same operation later may succeed.

Reproduction Steps

  1. Activate enterprise features

Stalwart Version

v1.x

Installation Method

Docker

Database Backend

SQLite

Blob Storage

SQLite

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.

on

Paths probably lack the “website/” prefix.

I can’t tell for certain what went wrong on your server, but I can explain what the error means and what to check.

store not configured is the server’s NotConfigured store error. It is returned when the store it tries to use is empty. For the dashboard, that store is the Metrics Store. The Metrics Store and Tracing Store are built from their settings when the server loads its configuration. If the setting is Disabled, or the build fails, the server ends up with no store and every Metric/query call fails with this error. If the build fails, the server records a warning against the MetricsStore or TracingStore object instead of stopping. Your mail keeps working, which fits this.

Things to check, roughly in order:

  1. Restart the container. Your store settings may have been saved while the license was still inactive. These two stores only exist in the Enterprise build path, and I couldn’t confirm in the source that ReloadSettings rebuilds them. A restart makes the server build them from scratch, and it costs little to try.
  2. Look for config warnings. After the restart, check the startup log and the WebUI for warnings about MetricsStore or TracingStore. A warning there would explain why the store came up empty.
  3. Check the license. Make sure the license matches the registered domain of SystemSettings.defaultHostname. The docs list this as a common reason a key is installed but its features don’t work. The log and the result of ReloadSettings show License issued to domain ... does not match ... in that case. See the “Activation problems” section of Enterprise edition | Stalwart.
  4. Check the stored values. Under Settings › Storage, confirm that the saved Metrics Store variant is Default, not Disabled, and that it was actually saved.

Metrics are only written once per collection interval, which is hourly by default (metricsCollectionInterval). Right after you enable the feature, the dashboard may therefore have little or no history to show. That would not cause the store not configured error, though.

Docs: History | Stalwart

If it still fails after a restart, please post any MetricsStore or TracingStore warnings from startup. A staff member can then look into it.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

Found a workaround: I disabled the recording of tracing and metrics data. After saving, I activated them again using `Use data store`. After saving I run the action to reload the server settings. Now, the error message is gone and it seems to work!