Skip to content

[Bug]: Chroma CLI can’t connect to local server after client.reset() on a persistent DB #6030

@Navxihziq

Description

@Navxihziq

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 server

Recreating 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 chromadb

Creating 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 PATH

Output:

OpenTelemetry is not enabled because it is missing from the config.
Failed to connect to a local Chroma server

Versions

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 server

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions