> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chowder.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

> Fix common installation, model, query, and connection problems.

Most fixes apply to Python, the `chowder sql` CLI, and the local MCP server, since all three use the same engine. The Python examples use Polars and `chowder.display(result)`. See the [Quickstart](https://docs.chowder.ai/quickstart.md) for setup.

## A model cannot be downloaded

Check that:

* Your network can reach the model host.
* `HF_TOKEN` is available if your environment requires Hugging Face authentication.
* `CHOWDER_ARTIFACT_SOURCE`, if set, points to a reachable artifact root. See [Configuration](https://docs.chowder.ai/reference/configuration.md#runtime-and-deployment-details).

Model downloads happen lazily. A source-only query may succeed while the first `infer`, `embed`, PDF parse, or transcription query fails.

## A model does not fit memory

Set `CHOWDER_API_URL` and `CHOWDER_API_TOKEN` to configure the remote fallback. Start a fresh Python session with `CHOWDER_REMOTE=0` so the first attempt runs locally. With your query in `SQL`, catch `chowder.ModelMemoryError` to retry on remote compute.

```python theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
import chowder

try:
    relation = chowder.sql(SQL)
    result = relation.to_polars()
except chowder.ModelMemoryError:
    engine = chowder.Engine(remote=True)
    try:
        relation = engine.sql(SQL)
        result = relation.to_polars()
    finally:
        engine.close()

chowder.display(result)
```

When remote compute is unavailable, reduce concurrent model use, for example by lowering `LlamaCppConfig(parallel=...)` or running fewer AI queries at once.

## A query plans but no work happens

`chowder.sql(SQL)` returns a lazy `Relation` for read-only SQL. Materialize it before displaying:

```python theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
import chowder

SQL = """
SELECT *
FROM read_text('hf://buckets/chowderai/chowder-demo/text/data/amazon-reviews/*.txt')
"""

relation = chowder.sql(SQL)
result = relation.to_polars()

chowder.display(result)
```

Iteration and materialization with `to_arrow_table()`, `to_polars()`, or `to_pandas()` trigger execution. Displaying a `Relation` in a notebook shows its schema and execution choices without reading rows or loading models.

## An `infer` Boolean filter fails to type-check

`infer(..., BOOL)` returns an AI envelope, not a bare Boolean. Select `output`:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
WHERE infer(content, 'Is this review relevant?', BOOL).output
```

## A source glob returns no rows

* Verify the path relative to the working directory of the process.
* Use the explicit reader when the file extension is ambiguous.
* Confirm that the reader supports the file type.
* For remote globs, confirm credentials and that the part of the path before the first wildcard exists.
* Start with a literal file or URI before expanding to `**` patterns.

## Media transcripts are empty

Check the transcription status in `engine.status()`. A local engine reports it under `["local_runtime"]["transcription"]`, and a remote engine under `["transcription"]`. Confirm that the managed whisper.cpp runtime and model resolved. If you configured an override, verify `LocalTranscriptionConfig` and `WhisperCppConfig`. A query must project `transcript` to request transcription.

Silent windows legitimately return an empty transcript list.

## Progress output interferes with logs

Use plain or JSON progress for captured processes:

```python theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
engine = chowder.Engine(progress="plain")
engine = chowder.Engine(progress="json")
engine = chowder.Engine(progress=False)
```

Progress goes to stderr, so it doesn't mix with query results that the CLI writes to stdout.

## A source build fails to import

**Symptom:** importing Chowder fails for `chowder._native`, or Python loads an older build after source changes.

Rebuild the mixed Python/Rust package in the active uv environment:

```bash theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
uvx maturin==1.15.0 develop
uv run python -c "import chowder; print(chowder.__version__)"
```

Confirm that `uv run` and `uvx maturin` target the same project environment, and that you loaded the reader build environment described in [Build from source](https://docs.chowder.ai/installation.md#build-from-source).

## A source build cannot find a native tool

Source builds need a C/C++ toolchain with libclang, make, CMake, pkg-config, curl, and NASM. Linux also needs the zlib and bzip2 development headers. Install the missing tool, then rerun the steps in [Build from source](https://docs.chowder.ai/installation.md#build-from-source).

## A remote client cannot connect

Check the client and server together:

* Use the same Chowder version on both sides.
* Match `grpc://` with plaintext loopback and `grpc+tls://` with TLS.
* Opt in with `remote=True`, `CHOWDER_REMOTE=1`, or an explicit `location=`. Setting the API URL and token alone keeps an engine local.
* Set the client credential with `CHOWDER_API_TOKEN` or `token=`. For a direct self-hosted connection, it must match the server’s `CHOWDER_FLIGHT_TOKEN`.
* Set `CHOWDER_FLIGHT_TLS_ROOT` when the certificate uses a private CA.
* Confirm that the server is listening on the advertised host and port.
* For a self-hosted server, [configure its AI routes](https://docs.chowder.ai/guides/self-host-ai-compute.md#configure-ai-routes) before running remote AI functions.

The client refuses to send credentials over plaintext to a non-loopback host by default.

## Inspect the plan and engine state

Use plan-only and status helpers before running expensive work:

```python theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
relation = chowder.sql(SQL)
print(relation.explain())
print(chowder.default_engine().status())
```

`explain()` doesn't read rows or run models.

## Report a reproducible problem

Include the exact Chowder version, platform, Python version, query, projected columns, source type, engine mode, and relevant non-secret configuration. Never include access tokens, private source contents, or model credentials. Open an issue at [github.com/chowderai/chowder/issues](https://github.com/chowderai/chowder/issues).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.