Troubleshoot
The process will not start
Section titled “The process will not start”Fanout validates its whole configuration before opening any listener, so a startup refusal is a configuration message rather than a crash. Read the error: it names the setting.
The one that surprises people is an unrecognised variable. Fanout rejects any
FANOUT_-prefixed name it does not know, so a typo — or a setting renamed in a
release — stops the process instead of being ignored. That is deliberate; see
configuration.
An unresolved compaction blocks startup
Section titled “An unresolved compaction blocks startup”One startup refusal is not about configuration. If a compaction was interrupted
and Fanout can neither finish nor undo it, recovery fails closed and the error
names telemetry/COMPACTION.json.
That is deliberate. The marker lists the batches the compaction retired, and
recovery must not guess whether the original batches or their replacement are
authoritative. A wrong guess could delete the only surviving copy of some rows,
so Fanout stops instead and leaves things where they are: the replacement is
either staged under telemetry/compaction/ or already published as
telemetry/parquet/batches/<output id>.batch, and the retired inputs sit under
telemetry/parquet/batches/, named <id>.retired-<output id>.
A publish that failed partway through may already have removed some of those retired inputs, so the rollback set is not guaranteed to be complete. That is what step 2 below checks, and why it has to be checked before anything is deleted.
Usually the interruption was transient — a full disk, or the process killed mid-swap. Clear the underlying cause and start Fanout again. Recovery re-runs on its own and needs no manual step.
If recovery keeps failing, roll the compaction back by hand. With the process
stopped, use telemetry/parquet/batches/ as the batch directory:
- Read
telemetry/COMPACTION.json. It is JSON, with anoutputobject and aninputslist of batch ids. - Back up
telemetry/, then check every id ininputs. Each must exist in exactly one form:<id>.batch(never retired) or<id>.retired-<output id>(retired, restorable). If an id exists in both forms or neither form, stop here. Both forms make the authoritative copy ambiguous; neither means its rows may survive only inside the replacement. Reconcile the batch from the backup, or complete the compaction instead of rolling it back. - Rename each
<id>.retired-<output id>back to<id>.batch. - Delete
telemetry/compaction/<output id>if it exists. - Delete
telemetry/parquet/batches/<output id>.batchif it exists. Leaving a published replacement beside the restored inputs duplicates its rows; a corrupt replacement continues to block startup. - Delete
telemetry/COMPACTION.json. - Start Fanout.
Deleting the whole telemetry/ directory also clears the refusal, and discards
exactly the telemetry the refusal was protecting. Neither step above needs it.
An unreadable telemetry batch blocks startup
Section titled “An unreadable telemetry batch blocks startup”Fanout also refuses to start when an authoritative .batch directory has
invalid metadata, a corrupt Parquet file, a missing signal file, or a damaged
trace index. First stop Fanout and back up telemetry/, then verify the full
authoritative set:
fanout --config /etc/fanout/fanout.yaml repair verifyThe command is read-only and names every unreadable batch. Restore each named batch from backup when possible. If one cannot be recovered and discarding only its telemetry is preferable to leaving the instance offline, set it aside explicitly:
fanout --config /etc/fanout/fanout.yaml repair quarantine --batch <id>Quarantine is an atomic rename beside the authoritative batch set, not a
deletion. It refuses a batch that validates successfully and refuses any input
or output protected by a live compaction marker. Preserve the reported
quarantine directory for later recovery, run repair verify again, and only
then restart Fanout.
An exporter is rejected
Section titled “An exporter is rejected”Work down this list in order:
- Has setup finished? Before the first administrator exists there is no ingest token to check against, and ingest rejects everything. A collector started ahead of setup fails until you complete it.
- Is it the right credential, in the right header? The ingest token is
fo_-prefixed and goes inAuthorization: Bearer. Browser sessions and MCP tokens are not ingest credentials. - Is the listener reachable? The native binary binds ingest to loopback. From another host, that is a connection failure rather than an auth one.
- Right port for the protocol? gRPC on
4317, HTTP on4318. An HTTP exporter pointed at the gRPC port fails in a way that does not obviously say so.
For OTLP/HTTP, set the exporter protocol to http/protobuf and give it the base
endpoint — http://fanout:4318. Exporters derive /v1/traces, /v1/metrics
and /v1/logs from it themselves.
Someone cannot sign in and SMTP is not configured
Section titled “Someone cannot sign in and SMTP is not configured”SMTP is optional. Creating a local user without it succeeds and reports
invite_delivery: "not_configured" with login_link_required: true. An
operator with shell access to the same configuration and data directory then
mints a link directly:
The link expires after 15 minutes, works once, and is recorded in the
authentication audit history. It is available in local auth mode only.
A configured SMTP relay that fails delivery is reported as an error rather than silently claiming an invitation arrived — so “no error” and “not configured” are distinguishable.
Telemetry arrives but queries look empty
Section titled “Telemetry arrives but queries look empty”Check the namespace. Fanout reads service.namespace from the OTLP resource and
falls back to FANOUT_DEFAULT_NAMESPACE, so telemetry exported without one
lands in default.
An unscoped query spans every namespace, so this is only a problem when
something has scoped the query — a dashboard filter, or an MCP call passing
namespace. Clear the scope before concluding the data is missing.
Rollups also lag ingest by design — the alert engine and the overview read aggregates, so the newest few seconds of data are not immediately reflected in them even though the raw telemetry is queryable.
What to watch in production
Section titled “What to watch in production”/healthz— liveness./readyz— storage readiness and resolved runtime sizing./-/metrics— Prometheus metrics. Keep it private or setFANOUT_METRICS_TOKEN. Do not make it public merely to simplify scraping.
Alert on repeated restarts, readiness failures, ingest authentication failures, telemetry drops, sustained query latency, and free disk space.