chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
14.74k stars 1.23k forks source link

[Bug]: Failed to send telemetry event ClientStartEvent using client/server mode #2640

Closed CodiTrixta closed 1 month ago

CodiTrixta commented 1 month ago

What happened?

Im trying to run chroma in client/server mode but everytime I connect I get this message. It doesnt stop me from using Chroma, its just annoying seeing it everytime I restart.

The below code is how im making the connection where the .env values are: _CHROMA_SERVERHOST=localhost _CHROMA_SERVER_HTTPPORT=8886 _SENTENCE_TRANSFORMER_MODELNAME=all-MiniLM-L6-v2

from chromadb import HttpClient
from chromadb.utils import embedding_functions
from decouple import config

client = HttpClient(host=config('CHROMA_SERVER_HOST'), port=config('CHROMA_SERVER_HTTP_PORT'))
sentence_transformer = embedding_functions.SentenceTransformerEmbeddingFunction(model_name=config('SENTENCE_TRANSFORMER_MODEL_NAME'))

Versions

Chroma version installed: chromadb-client - 0.5.6.dev0

My chroma docker image is the latest: chromadb/chroma:latest

Relevant log output

Failed to send telemetry event ClientStartEvent: You are using a deprecated configuration of Chroma.

If you do not have data you wish to migrate, you only need to change how you construct
your Chroma client. Please see the "New Clients" section of https://docs.trychroma.com/deployment/migration.
________________________________________________________________________________________________

If you do have data you wish to migrate, we have a migration tool you can use in order to
migrate your data to the new Chroma architecture.
Please `pip install chroma-migrate` and run `chroma-migrate` to migrate your data and then
change how you construct your Chroma client.

See https://docs.trychroma.com/deployment/migration for more information or join our discord at https://discord.gg/8g5FESbj for help!
tazarov commented 1 month ago

@CodiTrixta, thanks for reporting this. Nothing in your Python code suggests this error. Can you check in your env vars if you have chroma_db_impl?

CodiTrixta commented 1 month ago

This makes no sense, now today when trying again with 0 changes, not a single line change. That error is gone. Im wondering if it wasnt some cache causing some issues. Maybe from vs code?

Anyways thanks for the help :)