Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: sqlite3.OperationalError: database or disk is full (Not really) #2247

Open
barrybriggs opened this issue May 23, 2024 · 3 comments
Open
Labels
bug Something isn't working deployment

Comments

@barrybriggs
Copy link

What happened?

Have approx 450,000 sentences I am putting into ChromaDB; the database is on my F: drive which has about 7TB free, so plenty. I put 20,000 sentences at a time into the db and made it about halfway through when I received the SQLite error above. I have tons of memory and the database drive is practically empty...then I (almost by accident) noticed that the C: drive was down to about 34k of space available!

are there temp files I should be aware of and if so how do I point them at the f: drive?

Versions

Anaconda Python 3.10.10, Chroma latest (yesterday), Windows 11, Intel i9, 64GB RAM

Relevant log output

No response

@barrybriggs barrybriggs added the bug Something isn't working label May 23, 2024
@tazarov
Copy link
Contributor

tazarov commented May 24, 2024

@barrybriggs, we've had a similar recent problem. Can you check how much storage you have under /tmp? SQLite uses it to store large queries in temp.

@barrybriggs
Copy link
Author

barrybriggs commented May 24, 2024

Unfortunately I just cleared out my \temp (Windows) folder (situation was a bit critical as space on C: drive went to zero). Does SQLite use the TMP or TEMP environment variable? -- if so, I could point it somewhere else and see if that works better. (Maybe I'll just try it anyway :-)).

EDIT: looks like SQLite uses an internal pragma to set the tmp directory -- maybe you have to force it to use the environment variable value.

@tazarov
Copy link
Contributor

tazarov commented May 24, 2024

We're tracking this issue here too #1693 (comment).

Soon we'll either put in a guidance or directly fix it.

Here's the sqlite3 docs on the temp usage and pragmas - https://www.sqlite.org/tempfiles.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deployment
Projects
None yet
Development

No branches or pull requests

4 participants
@tazarov @atroyn @barrybriggs and others