Cant deploy on chromadb

I am having the issue: ValueError: Could not connect to tenant default_tenant. Are you sure it exists?
from chromadb import Settings, HttpClient

client = HttpClient(
host='https://chroma-production-<server>.up.railway.app/api/v1/tenants/default_tenant',
port=443,
ssl=True,
)
from chromadb import Settings, HttpClient

client = HttpClient(
host='https://chroma-production-<server>.up.railway.app/api/v1/tenants/default_tenant',
port=443,
ssl=True,
)
How I can fix it?
9 Replies
Percy
Percy7mo ago
Project ID: N/A
Brody
Brody7mo ago
does chromadb communicate over http or tcp?
CostaLima
CostaLima7mo ago
http On the server env I setted these variables
HOST=chroma-production-<enderess>.up.railway.app
PORT=8000
HOST=chroma-production-<enderess>.up.railway.app
PORT=8000
Brody
Brody7mo ago
what port does chromadb run on internally?
CostaLima
CostaLima7mo ago
I am not very sure, but I think it is 8000 Here is the deployment log:
2023-12-18 20:51:47 DEBUG chromadb.config Starting component System

2023-12-18 20:51:47 DEBUG chromadb.config Starting component Posthog

2023-12-18 20:51:47 DEBUG chromadb.config Starting component SqliteDB

2023-12-18 20:51:47 DEBUG chromadb.config Starting component LocalSegmentManager

2023-12-18 20:51:47 DEBUG chromadb.config Starting component SegmentAPI

2023-12-18 20:51:47 INFO uvicorn.error Started server process [13]

2023-12-18 20:51:47 INFO uvicorn.error Waiting for application startup.

2023-12-18 20:51:47 INFO uvicorn.error Application startup complete.

**2023-12-18 20:51:47 INFO uvicorn.error Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)**

2023-12-18 20:52:40 INFO uvicorn.access 192.168.0.2:46502 - "GET /api/v1/tenants/default_tenant HTTP/1.1" 404

2023-12-18 20:53:35 INFO uvicorn.access 192.168.0.2:57344 - "GET / HTTP/1.1" 404
2023-12-18 20:51:47 DEBUG chromadb.config Starting component System

2023-12-18 20:51:47 DEBUG chromadb.config Starting component Posthog

2023-12-18 20:51:47 DEBUG chromadb.config Starting component SqliteDB

2023-12-18 20:51:47 DEBUG chromadb.config Starting component LocalSegmentManager

2023-12-18 20:51:47 DEBUG chromadb.config Starting component SegmentAPI

2023-12-18 20:51:47 INFO uvicorn.error Started server process [13]

2023-12-18 20:51:47 INFO uvicorn.error Waiting for application startup.

2023-12-18 20:51:47 INFO uvicorn.error Application startup complete.

**2023-12-18 20:51:47 INFO uvicorn.error Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)**

2023-12-18 20:52:40 INFO uvicorn.access 192.168.0.2:46502 - "GET /api/v1/tenants/default_tenant HTTP/1.1" 404

2023-12-18 20:53:35 INFO uvicorn.access 192.168.0.2:57344 - "GET / HTTP/1.1" 404
Another thread here in the server said to do so.
Brody
Brody7mo ago
and can you connect to chroma locally
CostaLima
CostaLima7mo ago
I didn´t tried to use localhost, as I have to setup a localhost server, but I can use the chromadb normally creating a normal client
Brody
Brody7mo ago
try connecting to the chromadb on railway locally
Kikkert
Kikkert7mo ago
Did you solve it, I seem to have the same problem, cant use a Railway Chroma container, not even from my computer