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

# Troubleshoot Quivr

> Find why searches or imports fail and reprocess documents held after a plugin failure.

Start with the error code and the step that failed. If Quivr held a document after a plugin failure, fix or roll back the plugin, then reprocess the held documents.

## Find the failing step

| Symptom | Check |
| - | - |
| `503 model_unavailable` | Check the ingestion plugin that encodes queries and its provider, or the legacy inference service if your index still uses it. |
| `503 search_unavailable` | Check the API’s search admission refusals in `quivr_search_admission_refused_total`. Then check retrieval plugin and index availability. |
| `422 unsupported_profile` | Check the deployment's [profile list and aliases](https://docs.quivr.thevibecompany.co/operate/search-profiles.md#see-and-call-the-profiles). |
| `rebuild_required` after a recipe change | [Rebuild the collection](https://docs.quivr.thevibecompany.co/operate/vector-model.md#rebuild-a-collection) with the active settings. |
| Import stalls while the source is healthy | Check [queue age and downstream capacity](https://docs.quivr.thevibecompany.co/operate/scale.md#find-the-bottleneck). |
| Plugin activation or rollback fails | Read the background task's `errors` and check the exact manifest and endpoint for the build Quivr expects. |

For an individual document revision, use `GET /v0/admin/documents/{version_id}/timeline` with `observability:read` and the Corpus grant. The timeline shows where processing stopped. A [Corpus](https://docs.quivr.thevibecompany.co/overview/glossary.md) is a collection of documents.

## Reprocess quarantined documents

Quarantine holds a document revision with its failure reason so you can retry it after fixing the cause. Use a key with `plugins:admin` from the Corpus's Organization and with a grant on the Corpus. Use `operations:read` to follow the reprocess. Pausing, resuming and rerunning require `operations:write` and `plugins:admin`. Canceling requires `operations:write`. On a deployment with split listeners, list quarantine and start the reprocess on the [private listener](https://docs.quivr.thevibecompany.co/operate/manage-plugins.md#steps). Read and control the operation on the regular API.

**1. Fix the plugin and list the affected revisions**

[Activate the fix or roll back](https://docs.quivr.thevibecompany.co/operate/manage-plugins.md). Read `GET /v0/admin/quarantine`. Filter with `corpus_id`, `code`, `plugin`, `quarantined_after` or `quarantined_before`. Pass the returned `next_page_cursor` as `page_cursor` to continue. Check `stage` and `reason` on the affected revisions.

**2. Count the revisions first**

Send `POST /v0/admin/quarantine/reprocess` with `corpus_id`, a fresh `idempotency_key`, any scope filters, and `dry_run: true`. Quivr reports how many revisions match, grouped by stage and reason code. An omitted filter widens the scope within the Corpus.

Quivr normally retries the failed step. If ingestion failed because it received bad output from the format reader, include `from_stage: "normalization"` in both requests. Quivr can reread the saved source file where it can publish a replacement. Ineligible revisions stay quarantined.

**3. Start and check recovery**

Repeat the same body with `dry_run: false`. Follow `Location` to see `versions_recovered`, `versions_quarantined` and `versions_skipped`. A repeated start with the same key and scope returns the same task. Changes to the filters or starting stage need a new key and dry run.

List the Corpus's quarantined revisions again and try searches for recovered documents. Revisions that failed again show their latest reasons.

Only one reprocess per Corpus can run at a time. Use `POST /v0/operations/{operation_id}/pause`, `/resume` or `/cancel` with an `idempotency_key` to manage it. To retry the revisions still held in the same scope with the plan now active, use `/rerun` on the finished task. See the [API reference](https://docs.quivr.thevibecompany.co/reference/api.md) for the request fields.

If a previous change stranded a rebuild with `pinned_plugin_unavailable`, cancel the stalled task, wait for it to finish canceling, and [start a new rebuild](https://docs.quivr.thevibecompany.co/operate/vector-model.md#rebuild-a-collection) under the active plan. Dry-run and reprocess with a new key, the affected Corpus and `code: "pinned_plugin_unavailable"`.

## Reset and reload an installation

> [!WARNING]
>
> Reset deletes the dedicated PostgreSQL, file-store and vector-index data volumes. It also removes connector credentials and terminates running workflows in Temporal’s `default` namespace. Use reset only when you intend to discard that data.

Use a checkout of the revision you run, Python 3.12 or later and access to the dedicated Compose or Railway installation. Set `"dedicated": true` in your private declaration to assert that the selected volumes hold only this installation’s data. Check the repository's [installation examples](https://github.com/The-Vibe-Company/quivr/tree/main/deploy/examples) for its shape. The helper checks volume ownership and refuses external or unverifiable vector indexes before changing state.

For example, preview your private declaration with `python3 deploy/reset.py -f /private/installation.json`. Inspect the selected deployment, services and volume IDs. Execution requires `--confirm` and `--deployment-name` with the exact name from the declaration. Preserve any checkpoint if reset fails and inspect it before continuing. Railway creates replacement volumes at the provider’s default capacity. Check `volume_sizes` and grow the replacements in the Railway dashboard to the capacity you need before applying sources or importing data.

Use `quivr apply` with a private source declaration and state file to recreate Corpora and connectors. Preview first, then repeat with `--confirm` to apply the changes. See the [CLI reference](https://docs.quivr.thevibecompany.co/reference/cli.md) for flags and [Connect a source](https://docs.quivr.thevibecompany.co/guides/connect-a-source.md) for connector setup.

## Next

* [Check the active plugin plan](https://docs.quivr.thevibecompany.co/operate/manage-plugins.md).
* [Watch a large import](https://docs.quivr.thevibecompany.co/operate/scale.md#run-a-large-import).


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