Issue Description
When our Enterprise license lapsed, the metrics and tracing history stores went away at runtime. The web admin dashboard then showed only “This server is temporarily unavailable. Attempting this same operation later may succeed.” After the invoice was paid, the license renewed, but the stores stayed off until a restart. ReloadSettings did not bring them back.
Setup: 1.0.0 when this happened, the official aarch64-unknown-linux-gnu build, single node, RocksDB data store. MetricsStore and TracingStore are both Default, so they live in the data store, with 90 days of metrics history and 30 days of tracing history. We are on 1.0.3 now. I can’t reproduce a lapse on purpose, and the 1.0.1–1.0.3 notes mention only the tracing-index part (see below), so I assume the rest is unchanged.
Expected Behavior
- On expiry, the server falls back to the Community feature set, as documented. The dashboard should say that metrics and tracing history need an Enterprise license, or hide those panels. It should not show a generic “temporarily unavailable” error, which reads like an outage of the whole server. (The repeating tracing-index error is already fixed in 1.0.2: “spans are discarded when no tracing store is configured”. Thank you!)
- On a successful renewal, Enterprise features come back without a restart: the metrics and tracing stores in particular, or at least after
ReloadSettings. If a restart is required, the renewal should log that, and log its success.
Actual Behavior
2026-10-31, times in UTC:
- The trial license expired at 07:05:20. The server kept trying to renew it and failed because the invoice was unpaid. That was a billing mix-up on our side and is sorted now.
- From 07:45 on, the dashboard showed only “This server is temporarily unavailable. Attempting this same operation later may succeed.”
x:Metric/queryandx:Trace/getfailed withstore.not-configured. Mail itself was not affected. - After the invoice was paid, a renewal ran at 08:49:44 (
Attempting to renew Enterprise license from license.stalw.art). It logged no outcome and scheduled no further retry. In theRenewLicensehandler only a failure is logged (“renewal failed, retrying”), so it succeeded. The web UI showed the renewed license. - The Metric and Trace queries still failed with
store.not-configuredat 09:33:20. AReloadSettingsaction did not help. - A restart at 09:34:48 fixed it. The license was reported valid until 2027-10-31, and the dashboard worked again.
Reproduction Steps
- Run with an Enterprise license and MetricsStore/TracingStore set to
Default. - Let the license expire without a successful renewal (here: an unpaid invoice).
- Open the web admin dashboard: “temporarily unavailable”; the log shows
store.not-configuredforx:Metric/query. - Make the renewal succeed (pay the invoice), let the renewal task run, optionally run
ReloadSettings. - The dashboard still fails with
store.not-configureduntil the server is restarted.
Relevant Log Output
07:45:14Z WARN registry.build-warning objectType = "Enterprise", reason = "Failed to renew license: ... Invoice #… for subscription has not been paid"
07:45:14Z INFO server.licensing details = "Enterprise license renewal failed, retrying", nextRetry = 07:50:14Z
07:45:49Z ERROR store.not-configured index = "tracing", details = "Failed to build document for indexing" (repeats every few minutes)
08:49:44Z INFO server.licensing details = "Attempting to renew Enterprise license from license.stalw.art" (no outcome logged after this)
08:51:25Z ERROR store.not-configured listenerId = "https", causedBy = "crates/jmap/src/registry/mapping/telemetry.rs:501", causedBy = "x:Metric/query"
09:33:20Z ERROR store.not-configured listenerId = "http", causedBy = "crates/store/src/dispatch/store.rs:44", causedBy = "x:Trace/get"
09:34:48Z INFO server.shutdown causedBy = "SIGINT"
09:34:50Z INFO server.licensing details = "Stalwart Enterprise Edition license key is valid", validTo = "2027-10-31T07:05:20Z"
Stalwart Version
v1.x
Installation Method
Binary (Linux)
Database Backend
RocksDB
Blob Storage
Filesystem
Search Engine
Internal
Directory Backend
Internal
Additional Context
Related: topic 907 (July, a cluster, before 1.0). The staff reply there (#6) says a manual restart “isn’t strictly required”: a successful renewal reloads the enterprise config and metrics recording resumes. Here, on a single 1.0.0 node, the renewal did run and succeed, but the metrics and tracing stores stayed off until the restart.
A pointer, from reading v1.0.3. It is unverified, so please correct me:
metrics_store()(crates/common/src/storage/mod.rs) returnscore.storage.metricswithout any license check. So the store handle itself wasNonein the running core: storage had been rebuilt while the license was invalid.- The
RenewLicensehandler (crates/services/src/task_manager/scheduler.rs, about line 596) callsreload_registry(RegistryChange::Reload(ObjectType::Enterprise)). That brings backcore.enterprise, but apparently notcore.storage.metrics/core.storage.tracing. Those are built inStorage::parse→Store::build_metrics/build_tracing(crates/common/src/config/storage.rs,crates/store/src/build/data.rs), which seems to happen only at a full start.
Happy to provide more log detail if useful.
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