Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory #7

Open
wtang2019 opened this issue Jun 24, 2021 · 4 comments

Comments

@wtang2019
Copy link

Hi guys, I am trying to do the newrelic-snowflake integration but it seems that the images provided by NR newrelic/infrastructure:latest and newrelic/infrastructure-k8s:2.6.0

has some missing libraries which does not support this integration discussed here
https://github.com/newrelic/newrelic-snowflake-integration
I have attached the error in file. If I try to install these libraries this error (in file) disappears but we end up in the new error which is:

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
nr-snow-error.txt

@star3am
Copy link

star3am commented Jul 15, 2021

We found that if we use the image FROM newrelic/infrastructure:latest-centos we do not get the glibc errors - hope this helps

Regarding the errors, we tried
FROM newrelic/infrastructure:latest RUN apk add build-base

but we then get new errors
Error relocating ./snowflakeintegration-linux: gnu_get_libc_version: symbol not found Error relocating ./snowflakeintegration-linux: __register_atfork: symbol not found Error relocating ./snowflakeintegration-linux: __strdup: symbol not found Error relocating ./snowflakeintegration-linux: setcontext: symbol not found Error relocating ./snowflakeintegration-linux: makecontext: symbol not found Error relocating ./snowflakeintegration-linux: backtrace: symbol not found Error relocating ./snowflakeintegration-linux: getcontext: symbol not found

@duncaan
Copy link

duncaan commented Jul 26, 2021

I built a debian version of the newrelic/infrastructure container and that seemed to work. I can try to add a Dockerfile to this repo in hopes that others might find it useful. #11

@hhmahmood
Copy link

hhmahmood commented Sep 6, 2021

@star3am I am also trying newrelic/infrastructure:latest-centos but I can't see this folder automatically created on path /etc/newrelic-infra/integrations.d/ which is required to execute step-8 in the documentation. How did you make it work?

Also when I try to execute ./snowflakeintegration-linux . I get this error

Error reading config.yaml file Error: EISDIR: illegal operation on a directory, read at Object.readSync (fs.js:564:3) at Object.fs.readSync (pkg/prelude/bootstrap.js:554:32) at tryReadSync (fs.js:349:20) at Object.readFileSync (fs.js:386:19) at Object.fs.readFileSync (pkg/prelude/bootstrap.js:683:36) at Object.<anonymous> (/snapshot/newrelic-snowflake-integration/snowflake.js:20:13) at Module._compile (pkg/prelude/bootstrap.js:1320:22) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10) at Module.load (internal/modules/cjs/loader.js:984:32) at Function.Module._load (internal/modules/cjs/loader.js:877:14) { errno: -21, syscall: 'read', code: 'EISDIR' }

@aidan-melen
Copy link
Contributor

you could try: apk add libc6-compat gcompat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants