chroma
chroma copied to clipboard
[Bug]: Error when loading chromadb collection froma docker container
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",