Symptoms → facts → next action
Troubleshoot CoAkka Runtime without guessing
Start with the symptom you can observe. Capture structured facts before changing queues, retrying work or replacing infrastructure. Error text helps a human; stable status, outcome, generation and effective state drive the diagnosis.
Beginner · 01
Record identity and one terminal outcome first
package name + exact version
host runtime version + OS + CPU architecture
Core generation/build + ABI + loaded native image
requested config + accepted/effective snapshot
target + message_id + route generation + resolved endpoint
stable status / Deadletter reason / transport failure facts
Remove credentials, private keys, tokens and sensitive payloads. Keep the smallest reproduction and its expected result. Do not diagnose only from a free-form message when the connector exposes typed fields.
Beginner · 02 · Install and load
The package installs, but CoAkka Runtime does not load
Check
- Coordinate and version match the released package matrix.
- OS and CPU match the bundled native artifact.
- The running process loads the expected package path and native image, not a stale global copy.
- Archive and inner-library hashes match release metadata when an archive is used.
- Linux loader dependencies, Windows VC++ runtime or macOS system-library paths are present.
Meaning and next action
A loader failure happens before routing or application handlers. Select the exact artifact; do not rename a library, create compatibility symlinks or download individual DLL files from third-party sites.
Install system runtimes through the OS vendor's official channel. A missing non-system path inside a released package is a packaging defect: keep the loader output and report the exact tuple.
Beginner · 03 · Startup and configuration
Configuration is rejected or startup stops early
BAD_STATE- A connection/security option was applied after startup or after terminal stop. Create a new runtime for a live strategy change.
FEATURE_UNAVAILABLE- The mode or feature is not compiled in. Read capabilities; do not infer from an edition name.
FEATURE_NOT_ENTITLED- The feature exists but is not entitled for this distribution. Retrying as a network error cannot change it.
changed == 0- The proposal was rejected or already effective. Read apply status, reason, validation and returned effective state.
- Stale generation
- The proposed generation is not strictly newer. Keep one configuration writer and publish a higher monotonic generation.
Atomic apply. A rejected proposal preserves the previous active configuration. Do not call a getter afterward and describe the old active state as though the failed proposal had partially applied.
Beginner · 04 · Target and route
The target has no route or no local handler
Check
- Exact target spelling at caller, route and handler.
- An active route snapshot exists and its generation is the expected one.
- A local route has a registered local handler before requests arrive.
- A remote route resolves to an eligible endpoint rather than a drained/unavailable one.
- The recorded resolved endpoint belongs to the expected deployment.
Meaning and next action
ROUTE_MISS and NO_ACTIVE_SNAPSHOT are configuration outcomes. A handler miss is not repaired by increasing a timeout.
Fix the topology owner or registration order, publish a newer valid snapshot, then submit new work. Keep generation and endpoint in incident evidence.
Advanced · 05 · Direct peer connectivity
A peer refuses or cannot receive a connection
- Confirm the service actually reached started state and uses
NETWORK_NODE;OUTBOUND_ONLYopens no listener. - Check
bindas the local listening interface andadvertiseas the address peers can reach.127.0.0.1is only same-host. - Resolve DNS/IP from the caller's network namespace; then check firewall, container/VM boundary and port ownership.
- Confirm both peers use compatible transport and TLS/mTLS mode. Verify CA, peer identity, certificate validity and device clock readiness.
- Read the active connection/security snapshot, not only the submitted preference.
Kubernetes is not a prerequisite. Direct DNS or stable private IP works on LAN, VMs, bare metal and edge. Kubernetes may supply topology and lifecycle, but does not replace CoAkka Runtime's own accepted connection state.
Advanced · 06 · Terminal outcome
A caller timed out or received a Deadletter
- Deadletter
- A correlated terminal outcome. Read its stable reason, route generation, resolved endpoint and attempt count; do not parse prose.
- Caller timeout
- No matched terminal arrived inside the caller's wait budget. It does not prove the handler never ran.
- Automatic failover
- Only a pre-handoff endpoint failure with
certainty=NOT_DELIVEREDandscope=ENDPOINTpermits the same request to try another endpoint. - Application retry
- A new attempt with a new
message_id. Preserve a domain idempotency key and use a bounded retry budget.
Do not replay ambiguous side effects. For billing or another command, reconcile by the business idempotency key before retrying after a reply timeout or uncertain delivery.
Advanced · 07 · Monitor
Monitor produces no notification
- Monitor is OFF unless enabled before startup. Confirm the accepted effective value.
- No signal can mean no configured event occurred; it is not itself proof of failure.
- Use direct health and stats snapshots for point-in-time inspection instead of waiting for an event.
- Keep a bounded poll/wait interval and an application-owned stop signal.
- Do not run a blocking Monitor wait on a UI, Electron renderer, JavaScript event-loop or request thread.
When Monitor is enabled but quiet, create one known bounded event in a test environment and correlate it with health/stats. Continue at Operations & Evidence.
Advanced · 08 · Lifecycle
Shutdown hangs, or a callback arrives late
Ownership checklist
- One app scope owns each RuntimeHost and closes it exactly once.
- Stop accepting app work, signal app-owned loops/tasks, then close the runtime.
- Do not close the runtime from inside its own handler/callback.
- Do not hold borrowed payload or lane buffers after the callback returns.
Thread checklist
- Move blocking waits off UI/event-loop/request threads.
- Await or join app-owned work with a bound.
- Preserve both operation failure and close failure.
- Record the last lifecycle state and outstanding operation count.
Advanced · 09 · File Lane and Stream Lane
Data transfer stalls, rejects pressure or finishes differently on each side
- File Lane: verify immutable source, declared size, SHA-256, destination policy, progress bound and both sender/receiver terminal records.
- Stream Lane: verify frame-size/count limits, mailbox capacity, one publisher/one subscriber ownership and the terminal frame/outcome.
- Read owner grants and stable rejection/pressure status; do not bypass bounded admission by increasing every queue.
- Borrowed views are callback-scoped. Copy data before retaining it beyond the callback.
- After collecting a terminal record, call the connector's forget/release operation when its API requires it.
One side reporting success is not complete transfer evidence. Correlate both terminal outcomes and continue at the File Lane and Stream Lane reference.
10 · Escalation
Send a minimal, identity-complete reproduction
Include the facts from the first section, exact commands, expected versus observed behavior and the smallest runnable example. Keep secrets out. Security, credentials and artifact-integrity concerns belong in the private reporting channel, not a public issue.