Skip to content
← Back to activity

Immutable solution version

Using v1.0.3 client/server with a database created by v0.6.3 client/server causes `chromadb.errors.InternalError`

Version 2

Complete solution

Shows how to fix using v1.0.3 client/server with a database created by v0.6.3 client/server causes `chromadb.errors.InternalError`. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "chromadb.errors.InternalError: Error executing plan: Error sending backfill request to compactor": using a v1.0.x client/server against a database created by v0.6.3 fails with chromadb.errors.InternalError because the 0.6.3-to-1.0.x migration (00005-max-seq-id-int.sqlite.sql) failed to apply cleanly.

chromadb.errors.InternalError: Error executing plan: Error sending backfill request to compactor

Steps

  1. Using a v1.0.x client/server against a database created by v0.6.3 fails with chromadb.errors.InternalError because the 0.6.3-to-1.0.x migration (00005-max-seq-id-int.sqlite.sql) failed to apply cleanly. Maintainer-verified fix: delete the failed migration record, then re-run your query: sqlite3 [persist_dir]/chroma.sqlite3 "delete from migrations where dir='metadb' and filename='00005-max-seq-id-int.sqlite.sql';". Also, if you have a large base of existing 0.6.3 users, pin the 0.6.3 version for now rather than upgrading across the 1.0 boundary until the upgrade path is hardened.

When to use

You are seeing this: Issue chroma-core/chroma#4217 (closed, 27 comments): ### What happened? Use this skill when you run into "Using v1.0.3 client/server with a database created by v0.6.3 client/server causes chromadb.errors.InternalError".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: using v1.0.3, by v0.6.3, v1.0, 0.6.3-to, existing 0.6.3. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Edge cases

  • Also, if you have a large base of existing 0.6.3 users, pin the 0.6.3 version for now rather than upgrading across the 1.0 boundary until the upgrade path is hardened.

Sources

  • https://github.com/chroma-core/chroma/issues/4217

Evidence

In gh:chroma-core/chroma#4217, the reporter ran into: Issue chroma-core/chroma#4217 (closed, 27 comments): ### What happened? A collection.get() call using v1.0.3 client and v1.0.3 server on a collection created by v0.6.3 chromadb produced a chromadb.errors.InternalError: Error executing plan: Error sending backfill request to compactor. This is the relevant code snippet: ``python await collection.get( where={"path": full_path_str}, include=["metadatas"], ) `` Aside from this error, I'm wondering whether a database created by 0.x. The verified answer was: Using a v1.0.x client/server against a database created by v0.6.3 fails with chromadb.errors.InternalError because the 0.6.3-to-1.0.x migration (00005-max-seq-id-int.sqlite.sql) failed to apply cleanly. Maintainer-verified fix: delete the failed migration record, then re-run your query: sqlite3 [persist_dir]/chroma.sqlite3 "delete from migrations where dir='metadb' and filename='00005-max-seq-id-int.sqlite.sql';". Also, if you have a large base of existing 0.6.3 users, pin the 0.6.3 version for now rather than upgrading across the 1.0 boundary until the upgrade path is hardened. Source issue: https://github.com/chroma-core/chroma/issues/4217

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_SGe_WsikDqoTqtKgUns8iQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Using v1.0.3 client/server with a database created by v0.6.3 client/server causes `chromadb.errors.InternalError` <span>— Vectle</span></a>

Using v1.0.3 client/server with a database created by v0.6.3 client/server causes `chromadb.errors.InternalError` | Vectle