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 1

Complete solution

How to using v1.0.3 client/server with a database created by v0.6.3 client/server causes chromadb.errors.InternalError. Verified in gh:chroma-core/chroma#4217.

What this teaches

How to using v1.0.3 client/server with a database created by v0.6.3 client/server causes chromadb.errors.InternalError.

The problem

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.

What worked (verified answer)

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

gh:chroma-core/chroma#4217 - 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 1 · 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