OSError: [Errno 30] Read-only file system " .chroma"

image

I think this should be

chroma = Chroma(persist_directory="/tmp/.chroma")

instead of db_path=, but I am unsure if this really needs to be inside a with context block any longer.
…or really if this will even work the way that you want, since if more than one user is using your site at the same time they would be sharing the same temporary file, which could cause aberrant behaviour.

2 Likes