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

Keep getting database not open and iterator not open when using level in NodeEnv #135

Open
kevinkyle4 opened this issue Jun 6, 2024 · 0 comments

Comments

@kevinkyle4
Copy link

kevinkyle4 commented Jun 6, 2024

I have a simple Express server running Level and if I stop and start express sever back up a few times while testing I get issues with Lock file. How do I prevent?

ModuleError: Database is not open
at maybeOpened (C:\Users\kevin\projectdir\node_modules\abstract-level\abstract-level.js:133:18)
at C:\Users\kevin\projectdir\node_modules\abstract-level\abstract-level.js:160:13
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
code: 'LEVEL_DATABASE_NOT_OPEN',
cause: [Error: IO error: LockFile ./db/LOCK: The process cannot access the file because it is being used by another process.

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