Fix problems with Tocharian AI
For administrators and users who see an error or a missing feature in Tocharian AI.
Find the message or symptom you see; each entry gives the cause and the fix. Messages are quoted as the product shows them. In a conversation, an error during a question appears as the answer Something went wrong: <message>.
- Install and startup
- The model connection fails
- API keys and the encryption key
- Privileges
- License, masking and read-write mode
- Time limits and interrupted questions
Install and startup
Section titled “Install and startup”Plugin tocharianAi [<version>] is incompatible with Kibana [<version>]
Section titled “Plugin tocharianAi [<version>] is incompatible with Kibana [<version>]”Cause: the zip was built for another Kibana version. A Kibana plugin only installs into the exact version it was built for.
Fix: run bin/kibana --version in the Kibana home directory and install the zip whose name ends in that version: tocharianAi-<plugin version>-kibana-<Kibana version>.zip. Supported versions are 8.17.0 to 9.5.7; see Kibana versions.
Plugin tocharianAi already exists, please remove before installing a new version
Section titled “Plugin tocharianAi already exists, please remove before installing a new version”Cause: a version of the plugin is already installed.
Fix: remove it first, then install the new zip and restart Kibana:
bin/kibana-plugin remove tocharianAibin/kibana-plugin install file:///path/to/tocharianAi-<plugin version>-kibana-<Kibana version>.zipSettings, API keys, conversations and profiles are kept.
Kibana does not start after a Kibana upgrade
Section titled “Kibana does not start after a Kibana upgrade”Symptom: the Kibana log shows Failed to initialize plugins: followed by Plugin "tocharianAi" is only compatible with Kibana version "<old version>", but used Kibana version is "<new version>".
Cause: Kibana was upgraded, and the plugin installed for the old version is still there.
Fix: run bin/kibana-plugin remove tocharianAi, install the zip for the new Kibana version, and start Kibana.
Kibana does not start after the plugin was removed
Section titled “Kibana does not start after the plugin was removed”Symptom: the Kibana log shows Migration failed because some documents were found which use unknown saved object types: and lists tocharian-ai-config, tocharian-ai-secret, tocharian-ai-license or tocharian-ai-conversation.
Cause: Kibana refuses to start when its .kibana indices hold saved objects of a type that no installed plugin registers. The plugin was removed before its saved objects were deleted.
Fix:
-
Install the same plugin zip again and start Kibana.
-
In Dev Tools → Console, as a superuser, delete the plugin’s saved objects:
POST .kibana*/_delete_by_query{ "query": { "terms": { "type": ["tocharian-ai-config", "tocharian-ai-secret", "tocharian-ai-license", "tocharian-ai-conversation"] } } }This deletes the settings, the model API keys, the license and every user’s conversations. It cannot be undone.
-
Run
bin/kibana-plugin remove tocharianAiand restart Kibana.
The full procedure is in Remove in the administrator guide.
The app, header button and settings page are missing after installing a zip you built
Section titled “The app, header button and settings page are missing after installing a zip you built”Cause: the zip has no browser code. Kibana’s build can report success and still produce a zip without it, for example when its bundler stops early.
Fix: check the zip:
unzip -l tocharianAi-<Kibana version>.zip | grep target/public/tocharianAi.plugin.jsIf the line is missing, rebuild as described in Build Tocharian AI from source: the build log must not contain ERROR. Released zips always contain the browser code.
The app and the header button are missing for one user
Section titled “The app and the header button are missing for one user”Cause: the user’s roles do not grant the Tocharian AI feature privilege. Without it, Kibana hides every entry point of the plugin.
Fix: in Stack Management → Roles, give one of the user’s roles the Tocharian AI feature privilege: read to ask questions, all to also manage settings. See Give users access.
The model connection fails
Section titled “The model connection fails”Test the model in Stack Management → Kibana → Tocharian AI → Models with Test connection. On success it shows Connected · <n> ms; otherwise it shows one of the messages below. The test sends one short prompt to the model and waits four times the Query timeout (seconds) setting, at least 10 seconds.
No model is configured yet. Ask an administrator to set it up in Stack Management → Kibana → Tocharian AI.
Section titled “No model is configured yet. Ask an administrator to set it up in Stack Management → Kibana → Tocharian AI.”Cause: no model is saved, or the default model points at a hosted service (OpenAI, Anthropic, OpenRouter) and has no API key. In a question the message is No model configured. Ask an administrator to set it up in Stack Management → Tocharian AI.
Fix: an administrator adds a model and its API key in the settings, as in Get started.
Host <host> is not allowed by xpack.actions.allowedHosts in kibana.yml
Section titled “Host <host> is not allowed by xpack.actions.allowedHosts in kibana.yml”Cause: Tocharian AI follows Kibana’s outbound rules for connectors. xpack.actions.allowedHosts in kibana.yml is set and does not include the model’s host.
Fix: add the host name of the Base URL to the list and restart Kibana:
xpack.actions.allowedHosts: ["<existing hosts>", "<model host>"]The default of xpack.actions.allowedHosts allows any host.
Invalid URL: <url>
Section titled “Invalid URL: <url>”Cause: the Base URL is not a complete URL.
Fix: enter it with the scheme and the API path, for example https://api.openai.com/v1, https://api.anthropic.com/v1 or http://localhost:11434/v1. Tocharian AI adds /chat/completions (OpenAI format) or /messages (Anthropic format) itself.
Model API error <status>: <message from the model server>
Section titled “Model API error <status>: <message from the model server>”The model server answered with an error. The status tells you which:
| Status | Likely cause | Fix |
|---|---|---|
| 401, 403 | The API key is missing, wrong or not allowed to use this model. The key can also be ignored; see API keys and the encryption key. | Select Replace next to API key, paste the key and select Save API key. |
| 404 | The Base URL lacks a path such as /v1, the Model name is unknown to the server, or the API format does not match the server. | Check the three fields against the model server’s documentation. |
| 429 | The model service’s rate limit or quota is reached. | Wait, raise the quota with the provider, or set a Fallback model. |
| 500 and higher | The model server failed. | Try again; set a Fallback model so answers can finish on another model. |
Model API returned no choices: <response>
Section titled “Model API returned no choices: <response>”Cause: the server answered, but not in the OpenAI format. Usually the API format is wrong for this server.
Fix: choose Anthropic (messages) for Anthropic’s API and OpenAI (chat/completions) for OpenAI-compatible servers.
connect ECONNREFUSED <address>, getaddrinfo ENOTFOUND <host> or timeout of <n>ms exceeded
Section titled “connect ECONNREFUSED <address>, getaddrinfo ENOTFOUND <host> or timeout of <n>ms exceeded”Cause: the Kibana server cannot reach the model. The call is made by the Kibana server, not by your browser: localhost in the Base URL means the Kibana host (inside a container, the container itself). Many networks only allow outbound traffic through a proxy.
Fix:
- Check that the model server runs and listens on that address, from the Kibana host.
- If outbound traffic needs a proxy, enter it in the model’s Proxy field, for example
http://<user>:<password>@<proxy host>:3128. When the field is empty, Tocharian AI usesxpack.actions.proxyUrlfromkibana.yml, if set, and honoursxpack.actions.proxyBypassHostsandxpack.actions.proxyOnlyHosts.
TLS errors such as self-signed certificate, unable to verify the first certificate or Hostname/IP does not match certificate's altnames
Section titled “TLS errors such as self-signed certificate, unable to verify the first certificate or Hostname/IP does not match certificate's altnames”Cause: the model server, or the proxy in front of it, uses a certificate that Kibana does not trust or that does not match its host name. Verify TLS certificates is on by default.
Fix: give the server a certificate that matches its host name and comes from a trusted authority. If that is not possible, turn off Verify TLS certificates for that model only. The setting also applies to the connection to the model’s proxy.
API keys and the encryption key
Section titled “API keys and the encryption key”xpack.encryptedSavedObjects.encryptionKey is not set; API keys cannot be saved
Section titled “xpack.encryptedSavedObjects.encryptionKey is not set; API keys cannot be saved”Symptom: the settings page shows this under Status → Encryption key, and Replace next to API key is disabled. Saving a key through the API returns xpack.encryptedSavedObjects.encryptionKey is not set in kibana.yml; secrets cannot be stored.
Cause: Kibana has no encryption key, so Tocharian AI cannot store API keys encrypted.
Fix: generate a key with bin/kibana-encryption-keys generate, add the xpack.encryptedSavedObjects.encryptionKey line to kibana.yml and restart Kibana. For the default model only, you can instead put the key in the Kibana keystore:
bin/kibana-keystore add tocharianAi.modelApiKeyThe settings then show Preconfigured in kibana.yml / keystore for the default model.
The API key badge says The base URL changed; enter the API key again
Section titled “The API key badge says The base URL changed; enter the API key again”Cause: an API key is bound to the API format and base URL it was saved with. After either changes, the old key is no longer sent, so the model server usually answers Model API error 401.
Fix: select Replace, paste the key and select Save API key.
Calls fail with Model API error 401 after the encryption key changed
Section titled “Calls fail with Model API error 401 after the encryption key changed”Symptom: the key badge still says Set, but every call is refused. The Kibana log shows tocharian-ai: cannot decrypt model API key.
Cause: xpack.encryptedSavedObjects.encryptionKey changed, so the stored keys can no longer be decrypted.
Fix: put the previous key back, or list it under xpack.encryptedSavedObjects.keyRotation.decryptionOnlyKeys in kibana.yml. Otherwise enter each model’s API key again.
Privileges
Section titled “Privileges”A request fails with … is unauthorized for user, this action is granted by the Kibana privileges [tocharianAi-use]
Section titled “A request fails with … is unauthorized for user, this action is granted by the Kibana privileges [tocharianAi-use]”Cause: the user has no Tocharian AI feature privilege in this space. [tocharianAi-manage] in the message means the action needs the all privilege.
Fix: grant read (ask questions, data catalog, knowledge for yourself) or all (also settings, shared knowledge, confirming field meanings and knowledge, sensitivity rules) in the user’s role.
The settings page says You can view these settings but not change them.
Section titled “The settings page says You can view these settings but not change them.”Cause: the user has the read feature privilege, not all.
Fix: grant all to administrators who change settings.
A dataset is missing from the data catalog, or opening it shows No read privilege for this dataset
Section titled “A dataset is missing from the data catalog, or opening it shows No read privilege for this dataset”Cause: the catalog and every query follow the user’s Elasticsearch privileges. A user only sees datasets their roles can read.
Fix: grant read on the indices or data streams in the user’s role, if they should see them.
Adding knowledge fails with Only an administrator can add notes for everyone. Add a personal note instead.
Section titled “Adding knowledge fails with Only an administrator can add notes for everyone. Add a personal note instead.”Cause: knowledge visible to everyone or to a space goes into every user’s questions, so only users with the all feature privilege may add it. The same applies to Share on a Remember this? card: Only an administrator can share knowledge with everyone. Save it for yourself instead.
Fix: choose Only me under Visible to, or Only for me on the card, or ask an administrator to add it.
A confirmed change ends in Error with a Kibana message
Section titled “A confirmed change ends in Error with a Kibana message”Cause: changes run with the user’s own Kibana privileges. A user without the right privilege for cases, rules or alerts gets Kibana’s own refusal on the card. Cases are not available in this Kibana and Alerting rules are not available in this Kibana mean the Cases or Alerting feature is not available to this user in this space, or is turned off.
Fix: grant the user the Kibana feature privilege for the object they change, for example all for Cases.
This model is not available.
Section titled “This model is not available.”Cause: the chosen model is no longer shared with users, or was removed.
Fix: pick another model in the menu next to the input. An administrator can share a model with Users can pick this model.
License, masking and read-write mode
Section titled “License, masking and read-write mode”The Read-write switch is greyed out
Section titled “The Read-write switch is greyed out”Point to the switch to see why:
Read-write mode is disabled by an administrator: Allow read-write mode is off in the settings.Read-write mode is not enabled for your role: an administrator limited read-write mode to roles you do not have.Read-write mode allows no changes: an administrator cleared every kind of change under Changes it can propose.
Tocharian AI says it cannot make a change of some kind
Section titled “Tocharian AI says it cannot make a change of some kind”Cause: an administrator cleared that kind of change under Changes it can propose, for example documents. It is not offered to the model.
Fix: ask an administrator to allow it, or make the change yourself in Kibana.
A confirmed card ends in Error · not allowed by the read-write settings or Error · read-write disabled by the administrator
Section titled “A confirmed card ends in Error · not allowed by the read-write settings or Error · read-write disabled by the administrator”Cause: the read-write settings changed between the proposal and the confirmation: the switch was turned off, or that kind of change or your role is no longer allowed.
Fix: ask an administrator to allow it again, then ask again.
A confirmed card ends in an Elasticsearch or Kibana privilege error
Section titled “A confirmed card ends in an Elasticsearch or Kibana privilege error”Cause: the change runs with your own privileges, and you are not allowed to make it, for example to write to that index.
Fix: ask an administrator for the privilege, or for someone who has it to make the change.
The license expired
Section titled “The license expired”| Message | What happens | Fix |
|---|---|---|
The license has expired; enterprise features keep working for <n> more days. Please renew. | 14-day grace period: everything still works. | Install the renewed license. |
The license has expired: enterprise features are off. Masking keeps applying its current rules, which can no longer be changed. | The built-in dashboards can no longer be installed or updated. Read-write limits keep their last values and can only be removed. Masking stays on with its last rules; the masking switches are disabled and marked frozen. | Install a new license. |
The trial has ended: enterprise features are off. Masking keeps applying its current rules, which can no longer be changed. Install a license to continue. | The 30-day trial has no grace period. Same effect as an expired license. | Install a license. |
While masking is frozen, changing a field’s sensitivity fails with Masking rules need an active Tocharian AI license., and installing the built-in dashboards fails with The built-in dashboards need a Tocharian AI license.
A license or the trial cannot be installed
Section titled “A license or the trial cannot be installed”| Message | Cause | Fix |
|---|---|---|
Not a valid license file (JSON), Not a license file or License field "<name>" is missing | The file is not a complete license file. | Upload the .json file you received, unchanged. |
Invalid license signature | The file was changed or is not signed by Tocharian OÜ. | Upload the original file. |
License not valid: version <plugin version> > <n>.x | The license covers an earlier major version of the plugin. | Ask for a license for this version. |
A license is already active. | The trial cannot start while a license is active. | Nothing to do. |
The trial has already been used on this cluster. | Each Elasticsearch cluster gets one trial. | Install a license. |
Cannot read the Elasticsearch cluster id; the trial cannot be started. | Kibana could not reach Elasticsearch to read the cluster id. | Try again when Elasticsearch is available. |
The stored license is not valid (signature or version), running as the free edition. on the settings page means the stored license fails these checks; install a valid one.
Time limits and interrupted questions
Section titled “Time limits and interrupted questions”The answer says what it could not determine, or ends early
Section titled “The answer says what it could not determine, or ends early”Cause: a question has 5 minutes and at most 8 model calls; a background investigation has 15 minutes and at most 16. In the last fifth of that time Tocharian AI runs no more queries and answers with the evidence it has.
Fix: ask a narrower question, name the dataset and time range, or turn on Background investigation.
Something went wrong: The model did not answer in time (<n> s timeout)
Section titled “Something went wrong: The model did not answer in time (<n> s timeout)”Cause: one model call took longer than the time left for the question. Slow local models and long conversations make this more likely.
Fix: use a faster model, set a Fallback model (a call then gets half of the time left, at least 2 minutes, so the fallback can still finish), or start a new conversation.
The model returned no answer.
Section titled “The model returned no answer.”Cause: the model sent an empty or cut-off reply, and again when asked once more.
Fix: select Regenerate. If it happens often, choose another model; small local models are the usual cause.
A question is still being answered in this conversation.
Section titled “A question is still being answered in this conversation.”Cause: a conversation runs one question at a time.
Fix: wait for the running question, or select Stop.
The conversation changed meanwhile. Ask again.
Section titled “The conversation changed meanwhile. Ask again.”Cause: the conversation was changed in another tab or by a confirmed card while the question was starting.
Fix: send the question again.
This question was interrupted by a Kibana restart.
Section titled “This question was interrupted by a Kibana restart.”Cause: Kibana restarted while the question ran. A question whose progress has not been saved for 90 seconds is marked interrupted.
Fix: select Ask again.
This change is already being confirmed
Section titled “This change is already being confirmed”Cause: the card was confirmed twice, for example by a double click or in two tabs.
Fix: wait a moment and reopen the conversation; the card shows the result.
The dashboard was changed by someone else since this was proposed; ask again.
Section titled “The dashboard was changed by someone else since this was proposed; ask again.”Cause: the dashboard was saved after Tocharian AI proposed the change.
Fix: ask for the change again, so the proposal starts from the current dashboard.