Chroma Data Disappears After Restart (Persistence Fix)

Share
Workaround available Python, JavaScript, Docker Updated November 15, 2026Based on 3 user reportsHow we research

Quick answer

chromadb.Client() is in-memory only. Use PersistentClient with a path so data survives restarts.

Most likely fix: Use a persistent client

How to fix it

Try these in order — the most common fix is first.

  1. 1. Use a persistent client

    1. Replace chromadb.Client() with chromadb.PersistentClient(path="./chroma_db")
    2. Use an absolute path to avoid cwd changes
    Did this fix it?
  2. 2. Docker

    1. Mount a volume to the Chroma data directory
    2. Confirm the same volume is reused on restart
    Did this fix it?

Symptoms

Collections and documents are gone after restarting your script or container.

Why it happens

  • Using chromadb.Client() which is ephemeral
  • Docker container without a mounted volume
  • Different relative path on each run

This guide also covers

  • chromadb data lost after restart
  • chroma persist directory
  • chromadb persistent client

Still not working?

If Chroma keeps failing, you're not alone. See every Chroma problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All missing or lost data guides →

Other Chroma errors

All 11 Chroma errors and fixes →