Troubleshooting
Is everything running?
Section titled “Is everything running?”| Service | Check | Healthy answer |
|---|---|---|
| The API | GET /healthcheck (through the app: /backend/healthcheck) |
{} |
| The app | GET /api/healthcheck |
{"status":"ok", …} with a timestamp |
| Live updates | GET /health on the realtime service |
OK |
| MSN | GET /health on port 8090 |
ok; degraded names what is wrong (a stale checkpoint, refused forwarding) |
docker compose ps shows each container’s state, and docker compose logs <service> its log.
Signing in
Section titled “Signing in”The sign-in page comes back again and again.
- Check that
AUTH_TYPEis the same, in capitals, on the backend and the frontend (DB, notdb). - Check that
NEXTAUTH_URLis the address users open, withhttps://in production. - Without
NEXTAUTH_SECRETthe frontend makes a new one at every start, which signs everyone out.
“Invalid username or password” although the password is right. After five failed attempts for one username from one address, or twenty for one username, within 15 minutes, the API refuses further attempts (“Too many failed sign-in attempts, try again later” in its answer), and the sign-in card shows this message. Wait 15 minutes; restarting the backend also clears the count.
With single sign-on, HTTP 403 or “No valid role found”. The user is in none of the groups in ADMIN_GROUPS,
NOC_GROUPS or WEBHOOK_GROUPS. With Entra ID, those must be group object IDs. See
Users, API keys and SSO.
“AUTH_TYPE=… is not supported. Use AUTH_TYPE=OAUTH2PROXY”. AUTH0, KEYCLOAK and AZUREAD go through the
SSO proxy instead.
A NOC user sees the administrators’ menu. With single sign-on, see the note on Roles.
The Overview
Section titled “The Overview”“The overview could not be loaded.” The app cannot reach the API. Check the API’s health, and the frontend’s
API_URL. Then press Try again.
No root-cause analysis
Section titled “No root-cause analysis”The Root cause tab says No root cause analysis — only the evidence was collected, with a reason:
| Reason | What to do |
|---|---|
| AI is not set up (OPENAI_API_KEY), so only the evidence was collected. | Set OPENAI_API_KEY (AI model and key); check that AVACOM_RCA_AI is not false |
| the AI service failed (RateLimitError) | The AI provider refused: too many requests, or no credit left on the account. Check the account’s balance and limits, then Analyze again |
| the AI service failed (AuthenticationError) or similar | The key is wrong or revoked |
| The limit of N AI analyses per hour is reached; analyze again later. | Wait, or raise AVACOM_RCA_MAX_PER_HOUR |
| the AI service sent no answer / the AI’s answer could not be read / the AI declined to write the analysis | Try again; if it repeats, try another model (AVACOM_RCA_MODEL) |
The analysis failed (red), or The analysis was interrupted (the server restarted). Analyze again.: press Analyze again. A run that has not finished after 15 minutes counts as interrupted.
“An analysis of this incident is already running”. Wait for it; the tab refreshes by itself.
The RCA has little or no evidence
Section titled “The RCA has little or no evidence”The Evidence section explains why. The usual reasons:
| The tab says | What to do |
|---|---|
| No evidence source is installed (MSN, Elastic or Splunk). | Connect one (MSN, Elastic and Splunk) |
| The incident’s alerts name no host, service or user, so no source was asked. | Make the alerts carry host or service (what the RCA needs) |
| source did not answer: … | The source is down, the key is wrong, or the address is unreachable from the AVACOM server |
| Returned as many records as asked for: it may hold more | Not an error: the source had more than the limit |
| No source had records for the same window a day earlier… | No baseline: every warning counts as new. It fills in after a day of logs |
The MSN provider will not connect (“… targets a blocked host” or “resolves to a blocked address”). AVACOM
does not call localhost, 127.0.0.1 or link-local addresses unless they are in AVACOM_OUTBOUND_ALLOWED_HOSTS.
Use MSN’s internal name, for example http://msn:8090.
The cause chain stops at the first host. Correlation follows the Service Topology. Add the services and their dependencies there.
| Message | Meaning |
|---|---|
| Someone who neither prepared the fix nor changed its steps must approve it. | Four eyes: another administrator must approve |
| The steps changed since you loaded them… | Someone edited the plan: reload and review it again |
| No SSH provider for host allows approved fixes. | Add an SSH provider for that host with Allow approved fixes (Hosts for approved fixes) |
| Commands do not run over SSH while the server runs without sign-in. | Use AUTH_TYPE=DB or SSO |
| The audit trail in MSN could not be written; step N did not run. | MSN is unreachable or the audit key is wrong. Fix it, then prepare the fix again |
| Step N failed; the later steps did not run. | Read the step’s output, fix the cause by hand, then prepare a new fix |
| Nothing has happened for a while: the run may have been interrupted | Check the hosts, then Stop the fix and prepare a new one |
| The incident has no root cause analysis with fix steps yet. | Analyze the incident first |
Sending RCAs
Section titled “Sending RCAs”| Message | Meaning |
|---|---|
| There is no RCA to send yet: analyze the incident first. | No RCA was written (above) |
| This RCA was just sent to route; send it again in a minute. | The same RCA goes along a route at most once a minute |
| The limit of N RCA deliveries per hour is reached; send it later. | Raise AVACOM_RCA_MAX_SENDS_PER_HOUR if needed |
| The provider … is no longer installed: change or remove the route. | The route’s provider was removed |
| Channel did not answer within 60 s; it may still arrive. | Check the channel before sending again |
If links in sent RCAs point to app.avacom.example, set AVACOM_PLATFORM_URL.
Alerts do not arrive
Section titled “Alerts do not arrive”- 401 “Missing API Key” or “Invalid API Key”. Send a valid key in
X-API-KEY. - 403. The key’s role cannot send alerts: use a
webhook(oradmin) key. - Accepted (202) but not in the feed. Processing failed: the badge at the top of the feed lists failed events with their errors.
- “Webhooks are disabled because Avacom is not accessible from the internet”. Set
AVACOM_API_URLto an address the tools can reach. Dynatrace refuseslocalhostaddresses for the same reason. - A tool’s alerts arrive but are never grouped or analyzed well. Check that they carry
hostandservice.
- MSN does not start after a reboot. It needs OpenSearch to be healthy first. Compose orders this, but a
container started by hand may come up too early: start
msnagain oncemsn-opensearchis healthy. - “OpenSearch did not become available”. The bootstrap gave up waiting. Check OpenSearch’s log; Compose gives it a 1 GiB heap and up to 2 GiB of memory.
- “MSN_OPENSEARCH_PASSWORD is not set”. Run
python scripts/generate_secrets.py --missing-from .env >> .env. - MSN refuses to start because its signing key is missing. Restore
/statefrom backup. If the key is lost, start withMSN_ALLOW_NEW_SIGNING_KEY=trueand put the old public key inMSN_TRUSTED_KEYS_DIR, so the old checkpoints still verify. Tell your auditors about the new key. - “MSN_AVACOM_URL is set but MSN_AVACOM_API_KEY is not”. Forwarding needs an AVACOM key with the
webhookrole. - A stream is flagged by the integrity check. Records in it were changed or removed after they were written. A critical alert names the stream and what was found. Treat it as a security incident.
Live updates do not appear
Section titled “Live updates do not appear”Pages refresh their data on their own, but changes appear faster with live updates.
- The backend needs
PUSHER_APP_ID(a number),PUSHER_APP_KEYandPUSHER_APP_SECRET. Without them live updates are off. - The browser’s origin must be in
REALTIME_ALLOWED_ORIGINS, or the connection is closed (code 4003).
The server refuses to start
Section titled “The server refuses to start”With AVACOM_ENV=production, a missing or weak secret or an unsafe setting stops the service with a list of
problems. See Production checks.