OpenError: IO error: lock ./mydb/LOCK: already held by process
avril-verhaeghen opened this issue · 2 comments
avril-verhaeghen commented
(node:36822) UnhandledPromiseRejectionWarning: OpenError: IO error: lock ./db-users/LOCK: already held by process at /Users/avrilverhaeghen/Development/Finance/OBBF-API/node_modules/levelup/lib/levelup.js:96:23
Running this issue now, can't seem to find a lot of documentation about this. How can I unlock the LOCK file? Thanks
vweevers commented
LevelDB can only be opened by one process at a time. When that process closes the db, the lock is released.
ralphtheninja commented
@vweevers Come to think of it, maybe we should put together a FAQ for level?