Appearance
The security analyst (offline AI)
The analyst is never in the request path, so none of these problems affects traffic. First check: waap analyst status, or Monitor, Analyst, Settings and status.
The analyst answers "disabled" (503, code disabled)
- Symptom: every question, Explain button or CLI call says the analyst is turned off. The Dashboard shows no digest card.
- Cause:
analyst.enabledis false, which is the default. - Check:
waap analyst statusshowsEnabled: no. - Fix: install the runtime and the model (see Set up the analyst), then run
waap settings set analyst enabled=true managed.binary=... managed.model_file=.... This needs a global administrator.
"The analyst's model is not reachable" (503, code model_unavailable)
- Symptom: questions fail at once with
model_unavailable. Status showsReachable: noand a "Problem" line. - Cause (managed runtime): the
llama-serverpath is wrong or not executable, the model file is missing or unreadable, the port inendpointis already used by another program, the process crashes at start (for example for lack of memory), or it has not finished loading yet. A large model takes a minute. - Check:
waap analyst status(Process: running, healthy, restarts, last problem). Runls -lon the two paths, andlsof -i :8091(or your port) to see which program holds it. In the control plane log (JSON), look for the lines "starting the analyst runtime" and "analyst runtime started". After a change, runwaap analyst test. - Fix: correct
managed.binaryandmanaged.model_file(absolute paths). Pick a free loopback port inendpoint; a port held by another program shows as "port in use" in the status. Free memory, or use a smaller model. - Cause (external runtime): the server is down, the endpoint is wrong, or the address is not loopback and is plain http. Start the server with
--jinja, and usehttps://withca_filefor another host.
Every answer ends at once with "Stopped because: error. Took 0.0 s"
- Symptom: any question, including the two summary buttons, stops in under a second with no text.
waap analyst statusstill says reachable and healthy. (Before 2026-11-11, the Settings and status tab showed "Cannot read properties of undefined (reading 'toFixed')" in this case. That is fixed.) - Cause: the model server cannot get graphics memory. Its log lines (component
llama-server) sayInsufficient Memory (...kIOGPUCommandBufferCallbackErrorOutOfMemory)andfailed to compute graph. This is typical on a 16 GB Mac when a second model server, virtual machines or other heavy programs run beside it. The health check passes because the model is loaded, but it cannot compute. - Check:
grep 'Insufficient Memory' <log>, andpgrep -fl llama-server(are there more servers than the analyst's own?). Check Activity Monitor, Memory. - Fix: stop the other model server or programs, then ask again. Restart the product if the errors continue. Or use a smaller model or context (
managed.context), or an external or cloud provider.
Analyst look-ups fail with "events_group failed: timeout"
- Symptom: the answer shows one or more lines such as
events_group failed: timeout, and the model says it could not get the data. - Cause: one data look-up took longer than
limits.tool_timeout(10 s). Before 2026-11-08, oneevents_groupcall ran six grouped queries and read the detect-mode "would block" flag from every event document. On a store of about 180,000 events, that took about 10 s. It now runs two queries on an indexed column, about 1 to 4 s on the same store. A busy host, where the model server shares the CPU, makes it slower. - Check: the answer's tool lines in the Analyst page (each shows its time and error), and the Events page for the store size. Timeouts are not written to the node log. Only internal errors are, as
analyst tool failed. - Fix: ask about one application and one time window first, using the Ask form's Application and Time window. Lower event retention. Raise
limits.tool_timeoutin Settings and status, Limits, or withwaap settings set analyst limits.tool_timeout=30s. The first start after an upgrade adds the column and fills it from the stored events (about 7 s for 180,000 events). The node serves requests once that is done.
Analyst answers are only a few lines, or "elaborate" finds no data
- Symptom: answers stop after a few lines. Asking "elaborate a bit more" as a new question gives "Not enough data", although the previous answer had data.
- Cause: before 2026-11-08, the analyst was told to answer in about 150 words with a 1024-token limit, and each question started from nothing, so "elaborate" had no subject. The model now answers as fully as the question needs (up to 4096 tokens, and 5 minutes), and follow-ups carry the conversation.
- Check: reload the page after an upgrade, since an open tab keeps the old screens. Check that the question was asked with Follow-up question under the answer (on the Ask tab, or in an opened conversation in History), or with
-follow-up IDin the CLI. It must not be asked in the main Question box. Check Settings and status, Limits, "Answer length". - Fix: ask the follow-up from the follow-up box. Raise
limits.answer_tokensif a stored configuration still sets 1024 (waap settings set analyst limits.answer_tokens=4096). An answer cut by the length limit shows "Stopped because: answer_limit".
"configuration invalid ... managed.binary" or "model_file": fill in the absolute path
- Symptom: saving the analyst settings fails with
analyst.managed.binaryoranalyst.managed.model_file, and a message to fill in a path. - Cause: the managed runtime is on (the default), but the
llama-serverprogram or the.gguffile is not set. - Check:
waap analyst detectshows what is on the control node. - Fix: set both paths with
waap settings set analyst managed.binary=... managed.model_file=.... Install llama.cpp and fetch a model (waap analyst model fetch qwen3-8b), or choose another provider.
A cloud provider is refused without the opt-in
- Symptom: saving fails with
analyst.cloud.opt_in: set it to true ..., or questions fail with "cloud provider ... is not allowed: analyst.cloud.opt_in is false". - Cause: a cloud provider sends questions and event data (with secrets masked) outside the installation. An administrator must agree to that explicitly.
- Check:
waap settings get analyst(provider,cloud.opt_in), and the status line "Running on". - Fix: read the warning on the settings page and tick it, or run
waap settings set analyst cloud.opt_in=true. Or pick a local provider. The opt-in has no effect for a local provider, and it is refused there.
The API key file is missing or unreadable
- Symptom:
analyst.api_key_file: needed for ..., "must be an absolute file path", or a model error naminganalyst api_key_file. - Cause: the path is empty, relative, missing, or holds no key, or the Spalto user cannot read it.
- Check: run
ls -lon the file on the control node (not on the machine you browse from). The first line that is not blank or a#comment is the key. - Fix: put the key in a file with mode 0600, owned by the Spalto user, and enter its absolute path. A managed runtime does not use this setting.
The model list is empty
- Symptom: the model dropdown shows no suggestions, or Detect finds no models.
- Cause: the local server is not running or has no model loaded. A cloud provider's models come from the catalog, not from Detect. Or the endpoint needs
ca_fileor a key. - Check:
waap analyst detect -endpoint HOST:PORTprints the server's models, or why it did not answer. - Fix: start the server and load a model (Ollama:
ollama pull MODEL). Add-ca-fileor-api-key-file, or type the model name by hand.
The provider is unreachable
- Symptom: Test connection fails, and status shows
Reachable: nowith a provider ID. - Cause: no route to the vendor from the control node (a proxy or firewall), a wrong or revoked key, an exhausted free tier, or a model name the vendor does not know.
- Check: the error text of Test connection and of
waap analyst test, and the vendor's console for the key and quota. - Fix: open the vendor's address from the control node, replace the key file, pick a model from the catalog, or switch to a local provider. Azure OpenAI, AWS Bedrock and Google Vertex are not supported yet.
"Open the analyst settings" link does nothing
- Symptom: an analyst message offers a link to the settings, but the page stays on the other tab.
- Cause: an old tab runs a build from before the link followed its address. Non-administrators see "Ask an administrator" instead, because Settings is for global administrators.
- Check: the address ends in
#tab=settings, and you are signed in as a global administrator. - Fix: reload the page, and sign in as an administrator.
"The analyst is busy: the queue is full" (429, code queue_full)
- Symptom: a question is refused with a "try again shortly" message (Retry-After 10 s).
- Cause: more questions are waiting than
limits.queue(4) allows. By default, one answer is generated at a time. - Check:
waap analyst status, the Queue line. - Fix: wait and retry. Raise
limits.queue. Raiselimits.parallelonly if the host has the memory, since each parallel answer holds the whole context. Or use a faster model or hardware.
Answers are slow
- Symptom: the first words take many seconds, or the whole answer takes close to the time limit.
- Cause: a small machine. The model first reads the question and the look-up results (about 300 tokens/s on an M1 Pro with the 8B model), then writes about 20 tokens/s. A big model, a big context, big look-up results, other virtual machines using the memory (swap makes it far slower), or no GPU all add to the time. Incident summaries and digests are the longest tasks.
- Check:
waap analyst status, the Last line (seconds and tokens/s). Check the host's free memory and swap use (vm_stat,free -h).make analyst-evalon the same hardware compares withdocs/analyst-eval.md. - Fix: lower
limits.tool_bytesandlimits.rows(defaults 8 KiB and 25; raise them only on fast hardware). Lowermanaged.context, stop other memory users, use the 4B model on weak hardware, or move up a hardware tier. Answers that hitlimits.timeoutend early and say so. Raise it only if you accept the wait.
The model server keeps restarting, or the machine runs out of memory
- Symptom: status shows a growing restart count and a last problem. The host swaps heavily, or the system kills processes.
- Cause: the model plus its context does not fit in memory, or
limits.parallelis more than one, and each slot holds the whole context. - Check:
waap analyst status(restarts), the log lines "analyst runtime", memory use ofllama-server(ps, Activity Monitor), and the model size inwaap analyst model list. - Fix: use a smaller model, lower
managed.context, setlimits.parallelto 1, stop other virtual machines on the host, or run the model on another host as an external runtime. Spalto restarts the process with a delay that grows from 1 s to 1 min. Turninganalyst.enabledoff stops it.
An answer is marked "unverified", or a citation is unverified
- Symptom: the Analyst page shows an "Unverified answer" banner, or a citation in warning style. The CLI prints
NOT VERIFIED. - Cause: the model cited an event, version, audit record or issue that it was not shown in that conversation (it invented or mistyped the identifier), or one outside your application scope. Small models do this occasionally.
- Check: hover over the citation for the reason, and open the cited ID yourself.
- Fix: do not act on the unverified statement. Ask again with a narrower question (one application and one time window), or read the events directly. If the problem recurs, the model is probably too small. Measure it with
make analyst-eval.
"Not enough data" although events exist
- Symptom: the analyst says it cannot find the data, or does not have enough of it, but you can see the events.
- Cause: the question's window or application excludes them. Or events were kept only for the retention period (
events.retention), or your account's scope hides them, or a small model gave up after one look-up. The country is not recorded unless GeoIP is set up. - Check: ask with
-appand-since, for examplewaap analyst ask -app shop -since 24h .... Look at the events list with the same filters. Open the conversation's tool lines (look-ups and row counts) in History. - Fix: give the application and a window, ask about one thing at a time, or use a larger model. An answer that says the data cannot answer the question is correct behavior.
Model fetch or import: "SHA-256 ... does not match"
- Symptom:
waap analyst model fetchends with "does not match the pinned ...; the file was discarded". Orimportsays the file is not one of the known models, or has another SHA-256. - Cause: a truncated or corrupted download, a different quantization or build of the model than the pinned one, or a proxy that changed the file. Spalto accepts only the exact files it pins.
- Check:
waap analyst model listshows the expected name, size and SHA-256. Runshasum -a 256 FILE. - Fix: download again (the file was discarded, so no cleanup is needed), or fetch the exact file named in the table (
Qwen3-8B-Q4_K_M.gguf). To use a different model, run it as your own server (an external runtime, or pointmanaged.model_fileat it). The pin applies only tofetchandimport.
An https external endpoint is refused
- Symptom: saving the analyst settings fails with an endpoint error, or the status says the model cannot be reached over https.
- Cause:
https://host:portneedsca_file, the CA that signed the server's certificate. Plainhttp://is allowed only on loopback. A managed runtime must use a loopback TCP port. - Check: the validation message under the field. Run
openssl s_client -connect host:port -CAfile CA.pem. - Fix: set
ca_fileto an absolute path of a PEM file that Spalto can read. Or put a loopback port, or a Unix socket (unix:/abs/path), in front of the server.
llama-server is still running after Spalto was killed (macOS)
- Symptom: after
kill -9or a crash ofwaapon macOS,llama-serverkeeps running and holds memory and the port. After the restart,waap analyst statusshowsProcess: running no ... port in use by another process, and questions answermodel_unavailable. Spalto does not start a second server and does not restart in a loop. It checks the port again every minute. - Cause: macOS has no way to tell a child process that its parent is gone (Linux does). A normal stop of Spalto stops the server, and only a hard kill leaves it. The leftover server was started with the old run's API key, so the new Spalto cannot use it either. This is a known open item.
- Check:
pgrep -fl llama-server, andlsof -i :8091. - Fix: run
pkill llama-server(only the one you started). Within a minute Spalto starts its own, or restart Spalto.
"Port in use by another process" in the analyst status
- Symptom:
waap analyst status, or the Settings and status card, shows the model server as not started: "port N is in use by another process that this product did not start". The restart count does not grow. - Cause: something other than this Spalto holds the loopback port in
endpoint. It may be a leftoverllama-server(see above), a model server you started by hand, or an unrelated program. - Check:
lsof -i :PORT, orss -ltnp | grep PORTon Linux. - Fix: stop that program, or choose another free loopback port in
endpoint(waap settings set analyst endpoint=127.0.0.1:8092). If you meant to run the server yourself, useruntime=external, withapi_key_fileif the server wants a key.
The model server is restarted although it was running ("health checks in a row" or "did not become healthy")
- Symptom: the restart count grows, and the last problem is "the runtime failed 3 health checks in a row" or "did not become healthy within 2m0s of starting".
- Cause: the process runs but stops answering
/health(it hangs, or it swaps hard). Or loading the model takes longer than 120 s, which happens with a large model on a slow disk or with too little memory. - Check: the control plane log line "analyst runtime not healthy; restarting", memory and swap use, and how long
llama-server -m FILEtakes to load by hand. - Fix: free memory, or use a smaller model or a faster disk. On hardware where loading takes longer than two minutes, run the model as an external runtime.
An external model server answers 401 (API key)
- Symptom: with
runtime=external, questions fail, and the status orwaap analyst testreports a 401 or "invalid API key". - Cause: the server wants a key (for example,
llama-server --api-key-file), andapi_key_fileis not set, points to the wrong file, or the file holds another key. A file that is missing, empty, larger than 4 KiB, or holds spaces or control characters in the key is refused with anapi_key_fileerror. The key itself is never shown. - Check:
waap settings get analyst(the path). Runls -lon the file: it must be readable by the Spalto user, ideally 0600. Compare the first non-comment line with the server's key. - Fix: run
waap settings set analyst api_key_file=/etc/waap/llm.keyas an administrator. A replaced file is used at the next question. A failed client build is retried at most every 30 s.
"This node is the standby of a pair" (503, code not_active)
- Symptom: a question, an Explain button or Run digest on one node of an HA pair answers
not_active, with the active node's management address in brackets when it is known. - Cause: the analyst answers questions and writes digests on the active node only, because the model server runs there.
- Check:
waap ha statuson this node. - Fix: open the UI, or point the CLI, at the active node's management address. Past conversations and digests are still readable on the standby.
A digest shows as failed
- Symptom: the Dashboard card or the Daily digests tab says "The digest failed: ...".
waap analyst digests listshowsfailed (N tries). - Cause: the model was reachable but gave no digest. It timed out, the stream broke, or it answered nothing. The schedule tries again at most twice that day, 30 minutes apart, then stops until the next day so that it does not hold the analyst.
- Check: the reason in the digest,
waap analyst status, and the control plane log ("analyst digest failed"). - Fix: fix the model (see "Answers are slow" and "keeps restarting"; raise
limits.timeoutif digests time out). Then runwaap analyst digests runas an operator. A manual run is always allowed, and a good digest replaces the failed one.
A non-admin sees no endpoint or error in the analyst status
- Symptom:
waap analyst status, with a viewer or operator token, prints only Enabled, Model, Reachable and Queue. - Cause: by design. The endpoint, error messages, process details and the last answer's timing are for administrators.
- Fix: ask an administrator, or use an administrator token.
An Explain button is missing on an assessment issue, or explain -issue answers 403
- Cause: assessment issues are for global administrators, and the analyst follows the same rule.
- Fix: sign in as a global administrator.
Applying a configuration is refused: "changing analyst requires the admin role"
- Symptom: an operator's apply, import, preview, rollback or pull is refused with 403, naming
analyst,managementorhaand the changed path. - Cause: those sections are administrator-only on every route, not only in their settings forms. An operator cannot change who reaches the management listener, the pair settings, or the program the analyst starts.
- Check: the path in the message, and
waap config diffagainst the active version. - Fix: leave those sections as they are in the active version, or ask an administrator to apply the change.
No daily digest was written
- Symptom: the Daily digests tab and the Dashboard card are empty or stale.
- Cause: any of these:
digest.enabledis off; the time has not come yet (digest.atis the control plane's local time);digest.appslists none of your applications; this node is a standby (only the active node writes digests, and it moves on failover); or the model was down at that time. Nothing is stored in that case, and the schedule tries again every minute. The Dashboard card is also hidden when the analyst is off. A digest the model failed to write is stored as failed (see "A digest shows as failed"). - Check:
waap settings get analyst,waap analyst digests list,waap analyst statuson the active node, and the control plane log. - Fix: enable it, correct the time and the applications, and fix the model. Then run
waap analyst digests runas an operator to write today's digests now.
An application cannot be deleted: it is listed in digest.apps
- Symptom: deleting an application is refused with an error naming
analyst.digest.apps. - Cause:
digest.appsmust name existing applications, so a listed application cannot be removed. - Check:
waap settings get analyst. - Fix: remove the application from the list first, with
waap settings set analyst digest.apps=other1,other2(ordigest.apps=for all applications), then delete it.