node-lmdb
node-lmdb copied to clipboard
Program exit on Env.open
node-lmdb 0.9.7 Node v18.9.1 Alpine 3.16.2 with g++, make, gcompat
Simple Node app using the examples from the README:
import lmdb from 'node-lmdb';
const env = new lmdb.Env();
env.open({
path: "/opt/mydata",
mapSize: 2*1024*1024*1024, // maximum database size
maxDbs: 3
});
console.log('done')
The lock.mdb file is created within the mydata folder. This simple program exit with code 0 on env.open. No messages in the output.
i had to manually create the mydata directory myself. maybe it was a permissions error.