Blizzard / Blizzard/node-rdkafka
invalid ELF header
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 403
- PR merge metrics
- No merged PRs in 30d
Description
**Environment Information**
- OS [e.g. Mac, Arch, Windows 10]: RHEL 7
- Node Version [e.g. 8.2.1]: v14.8.2
- NPM Version [e.g. 5.4.2]: 6.14.15
- node-rdkafka version [e.g. 2.3.3]: 2.7.4
**Steps to Reproduce**
Getting this error when trying to start kafka feed
**Additional context**
```
2022-03-15 21:17:41,608 - app-ctop - INFO - stderr: /ctoc/app-ctop/node_modules/bindings/bindings.js:121
throw e\;
^
Error: node_modules/node-rdkafka/build/Release/node-librdkafka.node: invalid ELF header
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at bindings (node_modules/bindings/bindings.js:112:48)
at Object. (node_modules/node-rdkafka/librdkafka.js:10:32)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32) {
code: 'ERR_DLOPEN_FAILED'
}
```
Also checked for:
```
readelf -a node_modules/node-rdkafka/build/Release/node-librdkafka.node
readelf: /ctoc/app-ctop/node_modules/node-rdkafka/build/Release/node-librdkafka.node: Error: Not an ELF file - it has the wrong magic bytes at the start
```
Contributor guide
Research direction
Start with node_modules/bindings/bindings.js and node_modules/node-rdkafka/librdkafka.js, then reproduce the Kafka feed startup on the reported RHEL 7 and Node v14.8.2 environment. Inspect node_modules/node-rdkafka/build/Release/node-librdkafka.node with readelf; done means the module loads without ERR_DLOPEN_FAILED and the feed starts successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, kafka, node.js
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100