GLIBC Error when running node application
See original GitHub issueConfirm by changing [ ] to [x] below to ensure that it’s a bug:
- [X ] I’ve searched for previous similar issues and didn’t find any solution
Describe the bug Installed sdk v2 along with aws-crt as per readme and getting error when running device-example.js
node device-example.js internal/modules/cjs/loader.js:807 return process.dlopen(module, path.toNamespacedPath(filename)); ^
Error: /lib64/libc.so.6: version `GLIBC_2.25’ not found (required by /home/ec2-user/aws/node_modules/aws-iot-device-sdk-v2/node_modules/aws-crt/dist/bin/linux-x64/aws-crt-nodejs.node) 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> (/home/ec2-user/aws/node_modules/aws-iot-device-sdk-v2/node_modules/aws-crt/dist/native/binding.js:53:19) 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)
SDK V1.0.3
Platform/OS/Hardware/Device What are you running the sdk on?
aws linux ec2
To Reproduce (observed behavior) npm install --save aws-crt npm install --save aws-iot-device-sdk-v2 node device-example.js (with reqd params)
Expected behavior Expected the app to connect to IoT using the certificates provided
Logs/output as above
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (9 by maintainers)

Top Related StackOverflow Question
Yeah, right now, we do not have an alpine target where we link against libmusl, if you attached a debugger what you would see is a crash because none of the glibc symbols can be found when loading our node binary. You would likely be able to get it working on alpine with https://github.com/sgerrand/alpine-pkg-glibc, but that’s obviously not ideal.
If you need alpine support, can you open a feature request issue just for that so people can vote for it and we can get it prioritized.
https://github.com/awslabs/aws-crt-nodejs/releases/tag/v1.1.3
Release should be on npm in an hour or so.