Closed 1N50MN14 closed 3 years ago
Is it possible that when upgrading lmdb-store, that it hasn't been recompiled (this should happen on npm install
, but not automatically if you just copying files)? getAddress
is a new native function in v1.6, so this error would happen if the v1.6 JS is running with the v1.5 built C++ code.
Oh you were totally right, removed node_modules
and reinstalled, it worked. Many thanks!
Just out of curiosity, did you previously upgrade with npm install, but it didn't work without removal node_modules? (I hope it doesn't require removal of node_modules to get it to rebuild)
Previously I had just bumped the version in my package.json and simply yarn install
... I can keep track on this and report back if I encounter a similar issue in the future. In production this should be ok since the container is going to be rebuilt anyway (Edit: at least for me, but I'll keep an eye on it).
Ok, interesting, I would certainly expect this to rebuild. I'll check out if maybe anything behaves differently with yarn.
Let me remove node_modules
, downgrade to 1.5.3 and upgrade again, once sec
Let me remove
node_modules
, downgrade to 1.5.3 and upgrade again, once sec
Ok so this worked, no issues this time, hopefully it was just an isolated cache glitch..
I performed another test, downgraded to 1.5.3 from 1.6.1 (without removing node_modules), this time it errored:
/home/am/dev/dfv/platform/database/main/node_modules/lmdb-store/build/Release/lmdb-store.node(+0x2bff7)[0x7f8860a16ff7]
/lib/x86_64-linux-gnu/libc.so.6(+0x37840)[0x7f8863286840]
/home/am/dev/dfv/platform/database/main/node_modules/lmdb-store/build/Release/lmdb-store.node(+0x2e94d)[0x7f8860a1994d]
/home/am/dev/dfv/platform/database/main/node_modules/lmdb-store/build/Release/lmdb-store.node(+0x373ce)[0x7f8860a223ce]
/home/am/dev/dfv/platform/database/main/node_modules/lmdb-store/build/Release/lmdb-store.node(+0x346e8)[0x7f8860a1f6e8]
/home/am/n/bin/node[0xbe369b]
/home/am/n/bin/node[0xbe4c46]
/home/am/n/bin/node(_ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE+0x16)[0xbe52c6]
/home/am/n/bin/node[0x13ff259]
Upgraded again to 1.6.1 and it worked fine again
Well thanks for giving it a try anyway!
Well thanks for giving it a try anyway!
Thanks for being patient and responsive, as always ;)
Yeah, I actually can reproduce this. If you update your package.json to a version that you have previously installed and run yarn install, yarn doesn't seem to properly recompile. It seems to be specific to yarn, going back and forth with versions with npm install
seems to work fine.
Ah great, then we know for future reference
FWIW, I think this is fixed in Yarn v2.
I'm currently on
1.5.3
, wanted to take1.6.1
for a spin usingbackup()
data prior to upgrading, the following error gets thrown:Running Debian 10 / Node 14.15.0 on my local machine.