node-lmdb icon indicating copy to clipboard operation
node-lmdb copied to clipboard

Program exit on Env.open

Open pgmillon opened this issue 2 years ago • 1 comments

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.

pgmillon avatar Oct 15 '22 07:10 pgmillon

i had to manually create the mydata directory myself. maybe it was a permissions error.

robert-king avatar Apr 20 '23 23:04 robert-king