Problem with re2.node module

Alex Kapunov kapunov81 at gmail.com
Sat Feb 6 19:47:56 UTC 2021


Hi!
I encountered a problem with KIbana7 port, namely with timelion
visualizations in netflow dashboards. Timelion expressions have regex
function for labeling, that accesses binary file re2.node, and this binary
module does't work as expected:
[image: 2.jpg]

Result of testing this module with verify-build.js:
#:/usr/local/www/kibana7/node_modules/re2/scripts# node ./verify-build.js
internal/modules/cjs/loader.js:807
return process.dlopen(module, path.toNamespacedPath(filename));
^

Error: /usr/local/www/kibana7/node_modules/re2/build/Release/re2.node:
invalid file format
at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/www/kibana7/node_modules/re2/re2.js:3:13)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)

It seems that this module is for MacOS:
# file /usr/local/www/kibana7/node_modules/re2/build/Release/re2.node
/usr/local/www/kibana7/node_modules/re2/build/Release/re2.node: Mach-O
64-bit x86_64 bundle,
flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|HAS_TLV_DESCRIPTORS>

I will be grateful for any help.

Best regards, Alex.


More information about the freebsd-elastic mailing list