question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GLIBC Error when running node application

See original GitHub issue

Confirm by changing [ ] to [x] below to ensure that it’s a bug:

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:closed
  • Created 4 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
justinboswellcommented, May 6, 2020

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.

1reaction
justinboswellcommented, Apr 29, 2020

https://github.com/awslabs/aws-crt-nodejs/releases/tag/v1.1.3

Release should be on npm in an hour or so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NVM installed, getting GLIBC err on node install #2142 - GitHub
I was able to get the app functioning on local and heroku but unable to run the start command without NPM. I am...
Read more >
lib64/libc.so.6: version `GLIBC_2.14' not found. Why am I ...
I am using this package for modifying the pdf files. While downloading the pdf I am calling hummus. Onclick of download I am...
Read more >
NVM installed, Getting GLIBC and GLIBCXX Error on Linux
SOLUTION: FOR GLIBCXX NOT FOUND​​ Install the following rpm package, which include the GLIBCXX library after installed. Run it using sudo command to...
Read more >
version `GLIBC_2.27` not found (required by node) | bobbyhadz
The error "node: version GLIBC_2.27 not found (required by node)" occurs when the node binary you're trying to install was build on a...
Read more >
'node' or 'npm' CLI commands on a Plesk server fail: version ...
Symptoms Running 'node' or 'npm' commands via CLI results in error: # /opt/plesk/node/18/bin/node -v/opt/plesk/node/18/bin/node:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found