question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenError: IO error: ( ... path ... ) LOCK: No such file or directory

See original GitHub issue

I am just trying to open a db through:

let LevelUP = require('levelup');
let LevelDown = require('leveldown');
let path = require('os').homedir() + '/keys.db';
let db  = LevelUP(LevelDown(path));

… and getting an error. The Error object traces as…

message: "IO error: /Users/myname/db/base.db/LOCK: No such file or directory"

OS: MacOS Sierra

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ralphtheninjacommented, Nov 28, 2017

Is there an automated way to do this?

leveldown doesn’t recursively create the path so you would have to do that some other way.

1reaction
vweeverscommented, Nov 28, 2017

Do you get the same error if you run your app with sudo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

leveldbjni IO error LOCK: No such file or directory
We're trying to use leveldbjni on redhat machines. It worked flawlessly on ubuntu. But on redhat it gives the following error:.
Read more >
Issue 167 in leveldb: Error if directory we're trying to create the ...
OpenError : IO error: ./db/root.db/LOCK: No such file or directory ... path will recursively be created or instead an error being thrown
Read more >
db_bench reports "open error: IO error: lock hold by current ...
I'm trying to run the mixgraph benchmark proposed in the FAST20 paper(https://www.usenix.org/system/files/fast20-cao_zhichao.pdf). According to the appendix of ...
Read more >
18.1 GroupWise Engine Error Codes
Source: GroupWise engine; file input/output. Explanation: Drive or path not found. Possible Cause: GroupWise cannot find the specified drive or ...
Read more >
List Of Mac OS X Error Codes - Krypted
portNotCf = -98 /*driver Open error code (parameter RAM not configured for this connection)*/ ... kENOENTErr = -3201, /* No such file or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found