LOGIKASign in

Troubleshooting

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

CodeMeansWhat to do
0it worked
1refused, by the server or by the checksfix what it names: an invalid logika.json, a blocking rule, an issue logika test found
40bad inputcorrect the JSON or the argument it names
42the environment: a missing or refused token, an unreachable server, an outdated CLIfix the machine, not the code: logika login, the network, logika update
44nothing foundnothing 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 and opentelemetry-distro) wherever the enhancer runs.
  • The SDK key must be in OTEL_EXPORTER_OTLP_HEADERS as authorization=Bearer <key>, or passed as key in browsers and React Native. A revoked key raises an account item when something still uses it.
  • Check what arrived with logika query sql over events, logs or metrics for 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 sync runs; 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 check flags 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 login in the repository": your Logika Monitor isn't connected. Run logika login in 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.