Ai-OPs
ai-ops.com
Docs
/
Troubleshoot
/

Collecting Diagnostics for Support

Collecting Diagnostics for Support

When you open a support case, the fastest resolutions come from tickets that already include the version, the logs, and the exact error. This page is the checklist to run through before you reach out. Other troubleshooting pages link here instead of re-describing how to set Debug or dump logs.

1. Koios version

Support needs to know exactly which build you are running. In the interface, open the Version card on System > Overview and click it — the popover lists the individual version of each internal service and the release date. Include that whole list in the ticket, not just the platform version.

From the container, read it out of the environment file:

docker exec koios grep KOIOS_VERSION /var/www/koios/environment/.env

If you recently upgraded, note the version you upgraded from as well — many issues trace back to the upgrade step.

2. Container status

Confirm whether the koios container is healthy or restart-looping. On the machine running Koios (or over SSH):

docker ps

Find the koios container. A healthy server shows a status like Up 2 minutes (healthy). A status that keeps resetting to Restarting, or shows (unhealthy), means the server is failing to start — capture that too. If Koios runs as a service, check it directly:

sudo systemctl status docker.koios

3. Logs

Logs are where the failure actually reports itself. There are two useful sources.

Set Debug and capture the affected service

Before reproducing the problem, raise the log level of the relevant service to Debug for maximum detail, reproduce the issue, then stream or download the log. This is all done from the interface — see Logs for selecting a service, setting the level, streaming live output, and downloading archived log files. Return the service to Info or Warning afterward to reduce noise.

Dump the container logs to a file

For startup problems or when the interface isn't reachable, write the container's log stream straight to a file you can attach:

docker logs --tail 500 koios > koios-diagnostics.log

To read a specific service's log file from inside the container instead:

docker exec koios tail -n 200 /var/www/koios/logs/services/django.log

When reading through a dump, scroll to the end and read upward to the first error or traceback — the last error before a restart is almost always the real cause.

4. The error Code, Message, and Detail

Every failing entity surfaces three diagnostic fields — a numeric Code, a short Message, and a longer Detail. Copy all three verbatim from the affected device, tag, model, binding, or scan group. The code alone tells support which layer failed and which service log to read.

For what each field means, the full status and quality legend, the auto-clear behavior, and the master code lookup, see Reading Status, Quality & Errors. A few of the most common codes to have on hand when you write the ticket:

EntityCodeMeaning
Device1 — Failed To ConnectThe device could not reach the industrial endpoint
Tag104 — Bad: Configuration ErrorThe tag has a bad address, type, or settings
Tag105 — Bad: No ValueNo value was returned for the tag
Binding1 — Not Enough Historical DepthThe bound tag lacks enough history for the model's lookback
Model2 — No File FoundNo model file is loaded, or the file present would not load
Model6 — Bindings Invalid StateThe model's configuration failed the load-time check; the detail names the reason
Any999 — UnlicensedThe entity is not covered by a valid license

Include the entity's name and status alongside the three fields so support can locate it.

5. A recent backup

If the issue may require restoring or inspecting configuration and data, take a backup before you make any changes, and note whether one already exists from before the problem started. See Backup & Restore for how to create and download one.

6. The request ID and audit record

If the problem is a change that didn't take effect, or an action that was denied, the request ID is the highest-signal evidence you can send.

  1. Reproduce the failing action with your browser's developer tools open, on the Network tab.
  2. Select the failing request and copy the X-Request-Id value from its response headers. Every response carries one.
  3. Open System > Audit Log and narrow the trail to the failing action — filter by Actor and by the Time range around your reproduction, plus Action or Outcome if you know them. The request ID is neither a column nor a search term: it appears when you open an individual record's detail panel, which also shows the source IP and user agent.
  4. Export the filtered view as CSV or JSON, then search the export for the request ID to pin down the exact record. Attach the export alongside the ID.

See Audit Log for filtering and exporting.

Diagnostics checklist

ItemWhere to get it
Koios version, per-service versions, and prior version if upgradedThe Version card on System > Overview (click to expand), or docker exec koios grep KOIOS_VERSION /var/www/koios/environment/.env
Container statusdocker ps / systemctl status docker.koios
Service log at Debug for the failing serviceLogs
Container log dump (koios-diagnostics.log)docker logs --tail 500 koios > koios-diagnostics.log
Error Code, Message, and Detail from the affected entityThe entity's detail panel — see Reading Status, Quality & Errors
Request ID of the failing request, and the matching audit recordX-Request-Id response header (browser Network tab) + an export from Audit Log
A recent backupBackup & Restore

What's Next

  • Reading Status, Quality & Errors: the three diagnostic fields, the status and quality legend, and the master error-code lookup
  • Troubleshooting Koios: the symptom router for finding the right layer to investigate
  • Server Won't Start: recover a container that won't finish starting
  • Logs: set the Debug log level, stream live output, and download archived log files
  • Audit Log: filter the trail, open a record's detail panel, and export the filtered view
  • Backup & Restore: create a backup to attach or to protect the failing state