chroma-core / chroma

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

[Bug]: An existing connection was forcibly closed by the remote host #2836

Closed fn-hide closed 1 week ago

fn-hide commented 1 week ago

What happened?

When insert data to collection I got this error httpx.ReadError: [WinError 10054] An existing connection was forcibly closed by the remote host

Code:

collection.add(
    documents=documents[i:i + bs],
    embeddings=embeddings[i:i + bs],
    metadatas=df_encode_i[[
        'FeatureB',
        'FeatureC',
        'FeatureD',
    ]].to_dict(orient='records'),
    ids=df_encode_i.FeatureID.apply(lambda x: f'J-{x}').tolist(),
)

Then, chromadb server stopped directly after DEBUG: [23-09-2024 11:25:05] Starting component PersistentLocalHnswSegment

Versions

Chroma v0.5.7

Relevant log output

(((((((((    (((((####
             ((((((((((((((((((((((#########
           ((((((((((((((((((((((((###########
         ((((((((((((((((((((((((((############
        (((((((((((((((((((((((((((#############
        (((((((((((((((((((((((((((#############
         (((((((((((((((((((((((((##############
         ((((((((((((((((((((((((##############
           (((((((((((((((((((((#############
             ((((((((((((((((##############
                (((((((((    #########

Running Chroma

Saving data to: .\dev\assets\chroma_data
Connect to chroma at: http://localhost:8000
Getting started guide: https://docs.trychroma.com/getting-started

WARNING:  [23-09-2024 11:19:27] chroma_server_nofile is not supported on Windows. chroma_server_nofile will not be set.
INFO:     [23-09-2024 11:19:27] Anonymized telemetry enabled. See                     https://docs.trychroma.com/telemetry for more information.
DEBUG:    [23-09-2024 11:19:27] Starting component System
DEBUG:    [23-09-2024 11:19:27] Starting component OpenTelemetryClient
DEBUG:    [23-09-2024 11:19:27] Starting component SqliteDB
DEBUG:    [23-09-2024 11:19:27] Starting component QuotaEnforcer
DEBUG:    [23-09-2024 11:19:27] Starting component Posthog
DEBUG:    [23-09-2024 11:19:27] Starting component LocalSegmentManager
DEBUG:    [23-09-2024 11:19:27] Starting component SegmentAPI
INFO:     [23-09-2024 11:19:27] Started server process [14148]
INFO:     [23-09-2024 11:19:27] Waiting for application startup.
INFO:     [23-09-2024 11:19:27] Application startup complete.
INFO:     [23-09-2024 11:19:27] Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)
INFO:     [23-09-2024 11:25:05] ::1:6627 - "GET /api/v1/tenants/default_tenant HTTP/1.1" 200
INFO:     [23-09-2024 11:25:05] ::1:6627 - "GET /api/v1/databases/default_database?tenant=default_tenant HTTP/1.1" 200
DEBUG:    [23-09-2024 11:25:05] Collection jobs_paraphrase_minilm_l6_v2 already exists, returning existing collection.
INFO:     [23-09-2024 11:25:05] ::1:6628 - "POST /api/v1/collections?tenant=default_tenant&database=default_database HTTP/1.1" 200
INFO:     [23-09-2024 11:25:05] ::1:6628 - "GET /api/v1/pre-flight-checks HTTP/1.1" 200
DEBUG:    [23-09-2024 11:25:05] Starting component PersistentLocalHnswSegment
fn-hide commented 1 week ago

Solved by downgrading to chromadb v0.5.3 After I found this issue