Most problems are one of a few. Start with the CLI's exit code: it says whether the code, the input or the machine is wrong.
Exit codes
| Code | Means | What to do |
|---|---|---|
0 | it worked | |
1 | refused, by the server or by the checks | fix what it names: an invalid logika.json, a blocking rule, an issue logika test found |
40 | bad input | correct the JSON or the argument it names |
42 | the environment: a missing or refused token, an unreachable server, an outdated CLI | fix the machine, not the code: logika login, the network, logika update |
44 | nothing found | nothing to do: logika claim with no open issues, for one |
No data arrives
- The enhancer must be initialised in every process that sends: ingest requires its handshake and headers, so plain OpenTelemetry exporters pointed at Logika are refused.
- Another tracer provider is installed. If Sentry's or
ddtrace's setup installs an OpenTelemetry provider of its own, the enhancer refuses to start beside it, and says so. Remove the old SDK setup (its providers, exporters andopentelemetry-distro) wherever the enhancer runs. - The SDK key must be in
OTEL_EXPORTER_OTLP_HEADERSasauthorization=Bearer <key>, or passed askeyin browsers and React Native. A revoked key raises an account item when something still uses it. - Check what arrived with
logika query sqloverevents,logsormetricsfor the last hour, bounded by_environment.
Data arrives but nothing is judged
- The ledger was never synced. Code that ships with a ledger nobody synced is stored as usual but held from judgement, and the console says so until
logika syncruns; then the held data is judged by it. - The ledger declares nothing yet. Then only failures are judged: a span ending in an error, a log record with an exception or an ERROR or FATAL severity. Rules come from reflection.
- A name doesn't match.
logika checkflags span names and attributes the ledger doesn't declare;logika test "<command>"shows what the code really emits.
429s and dropped data
Ingest is limited by bytes per second, at about five times the tier's average rate. A batch over the limit is answered 429 with Retry-After, and the exporter retries within its deadline; what it drops is counted as loss and shows in evidence and in the nightly feedback. A sustained 429 means the project sends more than its tier carries: see Storage, retention and limits.
No email, or no agent
- No email: you are emailed only about environments you follow (Settings, beside your name), once per new issue, never again for repeats. An address that bounced or unsubscribed is no longer emailed; Settings → Email lists every email sent and its delivery.
- "Run
logika loginin the repository": your Logika Monitor isn't connected. Runlogika loginin the repository; it installs and starts the monitor. - "Your agent couldn't start": the agent's own words are quoted. Most often it isn't signed in; start it on your computer and ask it to fix the issues.
- "Your agent hit its limit": your monthly spending limit in the project was reached. Raise it in Settings, or wait for the month to turn.
- A wake that waits: a Wake my agent your monitor doesn't take within 5 minutes is given up, and you're emailed.
Telling us
When something in Logika is broken or confusing, logika report "<text>" sends it to the people who build it, with the CLI's version and your OS, and nothing from your repository unless your text includes it.