# Troubleshooting

Start with the exact HTTP status, response body, server logs, and active configuration. Preserve the data directory while investigating.

## Connection refused

Confirm the server is running, the address matches `bind`, and another process is not using the port. `127.0.0.1` refers to the caller's machine or container, not a remote database host.

```sh
curl -i http://127.0.0.1:9070/healthz
curl -i http://127.0.0.1:9070/readyz
```

## Readiness returns 503

The node may be recovering, draining, or have encountered a fatal storage error. Follow logs and recovery progress. Do not send a flood of retries or delete files to shorten recovery. Liveness can be 200 while readiness is still 503.

## Writes return 400 or 415

Check the content type, UTF-8, line escaping, field types, and presence of all dedup keys. `42i` is an integer; `42` is a float. Do not pass a timestamp-precision query parameter. Use `--data-binary` when sending a file.

## Writes return 413

Reduce body bytes, line size, or points per batch below configured limits. A single oversized point cannot be fixed by batching it alone. Check encoded bytes, not only the number of rows.

## Reads or writes return 429

Inspect queue admission, WAL bytes, buffer occupancy, file count, and memory budgets. Narrow query time ranges and projections. Close long readers that pin replaced files. Use bounded backoff for explicitly rejected work rather than raising all limits together.

## A write times out

The batch may have completed. A transport timeout and `outcome: unknown` require reconciliation. An append retry can duplicate rows; a dedup retry can replace a newer correction.

## A correction removed fields

Deduplication replaces the whole logical row. Send all intended non-key fields when correcting a point. Omitted values do not merge with the previous row.

## Startup fails after a config change

Verify the data path, persisted policy, format compatibility, and recovery budgets. A smaller buffer may be unable to replay the uncovered WAL. Restore the prior supported settings; do not discard identity, manifest, or segment files.

## Escalate with useful context

Include the source revision, operating mode, sanitized configuration, error status/outcome, reproduction steps, and relevant log excerpts. Exclude credentials and customer data. State whether the issue concerns a known acknowledged write or an uncertain response.
