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

SQLITE_BUSY: database is locked #482

Open
lencioni opened this issue Feb 1, 2018 · 1 comment
Open

SQLITE_BUSY: database is locked #482

lencioni opened this issue Feb 1, 2018 · 1 comment

Comments

@lencioni
Copy link
Collaborator

lencioni commented Feb 1, 2018

Sometimes when I run importjs from the command line, I get this message

SQLITE_BUSY: database is locked

importjs word foo path/to/foo.js

re-running it will sometimes give me a response and other times tell me that the database is locked. This is the first time I've started it up after a while, so it is possible that it is just starting to read everything and fill up the database still, but it is hard for me to know exactly what might be happening here.

@lencioni
Copy link
Collaborator Author

lencioni commented Feb 1, 2018

Yeah I think this happened during initial startup and filling up the cache. After waiting long enough it seems to work okay now. FWIW, my DB is now ~15 MiB.

There is probably an opportunity here to improve the experience through better error messaging or perhaps throttling the database writes or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant