-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
I installed Chroma via pip. The CLI worked once against a local persistent DB + collection, but after calling client.reset() in a Python script, the CLI stopped working and now prints:
OpenTelemetry is not enabled because it is missing from the config.
Failed to connect to a local Chroma serverRecreating a fresh venv and reinstalling chroma did not fix it. I also can’t use a globally installed binary on this machine due to a GLIBC version mismatch, so I’m relying on the venv install.
(From docs, I understand reset() is destructive and clears the DB; I’m not expecting data to persist but only that the CLI remains usable afterward.)
Steps to Reproduce
Creating virtual env and installing
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install chromadbCreating Demo local collection
# repro_create.py
import chromadb
from chromadb.config import Settings
PATH = "[/absolute/or/relative/persist/dir]"
client = chromadb.PersistentClient(path=PATH, settings=Settings(allow_reset=True))
col = client.get_or_create_collection("test")
col.add(ids=["1"], documents=["hello"])
print("count:", col.count())Reset
# repro_reset.py
import chromadb
from chromadb.config import Settings
PATH = "[same persist dir as above]"
client = chromadb.PersistentClient(path=PATH, settings=Settings(allow_reset=True))
client.reset()
print("reset ok")CLI Test
chroma browse test --path PATHOutput:
OpenTelemetry is not enabled because it is missing from the config.
Failed to connect to a local Chroma serverVersions
Chroma: v1.3.6
Python: 3.10/12
OS: Ubuntu 22.04.5 LTS
Relevant log output
OpenTelemetry is not enabled because it is missing from the config.
Failed to connect to a local Chroma serverMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working