Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

OpenError: IO error: lock ./mydb/LOCK: already held by process #667

Closed
avril-verhaeghen opened this issue Aug 13, 2019 · 2 comments
Closed

Comments

@avril-verhaeghen
Copy link

(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
Copy link
Member

LevelDB can only be opened by one process at a time. When that process closes the db, the lock is released.

@ralphtheninja
Copy link
Member

@vweevers Come to think of it, maybe we should put together a FAQ for level?

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

No branches or pull requests

3 participants