chroma icon indicating copy to clipboard operation
chroma copied to clipboard

[Bug]: Error when loading chromadb collection froma docker container

Open SHUCHISMIT12 opened this issue 7 months ago • 4 comments

What happened?

I've created a docker container where I have kept my chromadb folder. While testing the docker locally the function works but when deploying on AWS Lamba it throws an error - ""errorMessage": "attempt to write a readonly database", "errorType": "OperationalError", "requestId": "43522161-5c70-4a9c-bc71-b8b828d1bb5d",

This is the code block where I'm getting the error -

client = chromadb.PersistentClient(path=os.getcwd() + "/chroma_db")

In the dockerfile I have copied the folder to cwd

COPY chroma_db ${LAMBDA_TASK_ROOT}/chroma_db Please suggest

Versions

Chromadb 0.5.0 Python 3.11

Relevant log output

errorMessage": "attempt to write a readonly database",
  "errorType": "OperationalError",
  "requestId": "43522161-5c70-4a9c-bc71-b8b828d1bb5d",

SHUCHISMIT12 avatar Jul 16 '24 12:07 SHUCHISMIT12