Troubleshooting

Troubleshooting

This page gives starting points for common production and development issues.

Message Did Not Reach Target System

Check:

  1. The transaction on Run → Logs: search its correlation ID and open it to see every route it passed and where it stopped (Logs). klok.dev follows tenant klok's transactions today; another tenant's are in OpenSearch Dashboards (frontend-klok-dev#51). When the flow runs as a task, its run is also on Run → Process runs, tab Runs, filtered by correlation ID.
  2. Onramp logs for successful publish.
  3. Topic backlog and subscriptions, on Run → Broker in klok.dev (The Broker In klok.dev).
  4. Processing route logs.
  5. Offramp retries and target response.
  6. DLQ for poison messages.
  7. Target system availability and rate limits.
  8. Service principal and ACL permissions.

A Route Is Held, Or A Service Does Not Start: TOPIC_MISSING Or TOPIC_ACCESS_DENIED

The broker creates no topics by itself, and a service checks every topic it uses when it starts. From klok-quarkus-extension 3.14.0, a missing or ungranted topic does not stop the service: the routes that need it are held (not started) and the rest of the service runs. The pod log has one report from KlokTopicCheck at WARNING, and one console line per problem at ERROR starting with KLOK_TOPIC_PROBLEM, repeated at every recheck (klok.broker.verify-topics.retry-seconds, 60 seconds by default); /q/health's klok-broker-topics lists the held routes. A service on an older extension version, or with klok.broker.verify-topics.fail=true, instead logs the report at ERROR and does not start at all; its pod restarts.

  1. Read each entry, or the KLOK_TOPIC_PROBLEM line: the topic, publish or consume, and the routes that need it.
  2. Open its request link in klok.dev, or add the line it names to the owning tenant's Pulsar file in a merge request.
  3. Wait until the request is applied (Broker → Requests). A held route starts by itself at the next recheck, no restart needed; a service that failed to start (an older extension version, or verify-topics.fail=true) needs its deployment restarted.

./gradlew klokTopicCheck gives the same answer before a deploy. The walk through is Topics On The Klok Broker.

Message Is In DLQ

Check:

  1. Error category and route ID.
  2. Payload validity.
  3. Data model version.
  4. Target system response.
  5. Whether replay is safe.
  6. Whether code or data needs correction.

Open an issue in the owning project if the same failure repeats or if the cause requires a model or route change.

Topic Has Growing Backlog

Possible causes:

  • Consumer is down.
  • Consumer is too slow.
  • Target system is throttling.
  • Retry storm.
  • Ordering key creates a hot partition.
  • Processing route is blocked on external dependency.

Check Broker → Health for a backlog that no consumer reads, then consumer logs, target status, and rate limits.

Integration Context Looks Stale

Check:

  • Latest CI/CD context snapshot.
  • Documentation generation status.
  • Ingest errors.
  • Project repository path.
  • Whether route IDs or class names changed without metadata updates.

Kloker Suggestion Looks Wrong

Check:

  • Tenant and domain scope.
  • Source documents used.
  • Whether the right data model was selected.
  • Whether the prompt included constraints.
  • Whether the suggestion violates information model design rules, naming, security, or route pattern rules.

Reject or revise the suggestion and record the reason.

Authentication Or Authorization Failure

Check:

  • User role and domain scope for GUI actions.
  • Keycloak groups and normalized access claims.
  • Runtime client for integration project.
  • Vault secret path.
  • Pulsar namespace and topic grants: the Grants tab of the topic's page on Run → Broker in klok.dev, and the owning tenant's Pulsar file (pulsar_tenant_<tenant>.yml in klok-environment-setup).

ODL Object Not Found Or Search Returns Nothing

Check:

  • Whether the write was fire and forget and has not been stored yet (use persistSync when the next step reads it).
  • The type: it is the generated class name, so a model in a new package is a new type and a new index.
  • The filter: string filters are exact and case-sensitive, and sorting or EQ on some number and date fields does not work yet.
  • Whether a synchronous call answered ERROR; the typed get reports that as "not found" today.
  • Whether an ODL service runs for the tenant (UPSTREAM_TIMEOUT on every synchronous call).

Using Datamodels In The ODL has the full list, with the known limitations and their issues.