import-js icon indicating copy to clipboard operation
import-js copied to clipboard

SQLITE_BUSY: database is locked

Open lencioni opened this issue 7 years ago • 1 comments

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 avatar Feb 01 '18 19:02 lencioni

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.

lencioni avatar Feb 01 '18 21:02 lencioni