RuntimeError: Chroma is running in http-only client mode #902
Replies: 9 comments 12 replies
-
The issue: Starting chromadb 0.40 the chroma_db_impl is no longer a supported parameter, it uses sqlite instead. Removing the line |
Beta Was this translation helpful? Give feedback.
-
I am exactly stuck at this error since 2 hours, removing the above mentioned line is not solving the error. Is there any other possible solution for it ? Thanks @Andrej0909 |
Beta Was this translation helpful? Give feedback.
-
I get this error with just
|
Beta Was this translation helpful? Give feedback.
-
I am also stuck with this error:
I am using: import chromadb
chroma_client = chromadb.HttpClient(host='localhost', port=8000) And the code works well on my macbook but not on my windows or linux. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
-
I am getting this error when running chroma:
Error: Error is thrown here: [main.py, lines 259 - 264]:
Update this [main.py line 89] |
Beta Was this translation helpful? Give feedback.
-
I faced the same error. and then I run command and it wasn't accepting any other clients as the http-only mode got on. Then I run following commands in terminal of Jupyter
Then I restart my PC and environment Then I reinstalled chromadb and then the error got fixed Steps: -
Special thanks to Mr.taz from Chromadb Discord Community for suggestion. |
Beta Was this translation helpful? Give feedback.
-
in my case the issue was that i'm using a proxy , the issue was resolved after i disabled it |
Beta Was this translation helpful? Give feedback.
-
I faced the same error.. the issue with mine was I was doing it as pip install whereas it needed pip3... and then it kept saying: chroma run --host localhost --port 8000 --path chromadb.api.fastapi.FastAPI --path .../db_path compared to the suggestion I found at many places which was |
Beta Was this translation helpful? Give feedback.
-
it seems to be a conflict between chromadb, chroma-client and chroma-hnswlib; uninstall all and install either the client or chromadb depending on your usecase. Can confirm This fixes the issue. |
Beta Was this translation helpful? Give feedback.
-
I got this error message and I just don't get the solution how to fix it:
Traceback (most recent call last):
File "c:\Users\Administrator\Desktop\Chatgpt\A320privatGPTv5\ingest.py", line 166, in
main()
File "c:\Users\Administrator\Desktop\Chatgpt\A320privatGPTv5\ingest.py", line 158, in main
db = Chroma.from_documents(texts, embeddings, persist_directory=persist_directory, client_settings=CHROMA_SETTINGS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\langchain\vectorstores\chroma.py", line 578, in from_documents
return cls.from_texts(
^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\langchain\vectorstores\chroma.py", line 533, in from_texts
chroma_collection = cls(
^^^^
File "C:\Program Files\Python311\Lib\site-packages\langchain\vectorstores\chroma.py", line 109, in init
self._client = chromadb.Client(client_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\chromadb_init.py", line 107, in Client
system = System(settings)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\chromadb\config.py", line 168, in init
raise RuntimeError(
RuntimeError: Chroma is running in http-only client mode, and can only be run with 'chromadb.api.fastapi.FastAPI' as the chroma_api_impl. see https://docs.trychroma.com/usage-guide?lang=py#using-the-python-http-only-client for more information.
Does anybody know the solution?
Thx!
Beta Was this translation helpful? Give feedback.
All reactions