-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
alpine-node docker image and google-cloud equals error loading ld-linux-x86-64.so.2 #8528
Comments
|
The line that's failing, |
|
I did some more investigating...and googling....and got it working. Sorry to have polluted your board. But for posterity... I found this: http://blog.kontena.io/docker-for-mac-glibc-issues/ which pointed out that Alpine Linux uses musl libraries and by default doesn't have the glibc libraries installed or something like that....so I found a package in the Alpine Linux repository, lib6compat, and installed it when building my docker image based on mhart/alpine-node:6.9.1 and it solved the problem. My node app now works just like with the debian based node image. |
|
Unfortunately, I am also experiencing this issue with a recent version of Alpine leveraged by official Node.js image: node:8.7.0-alpine. So I don't believe the fix is either live or resolving. Here is the stack I see when building my Docker image: `[nodemon] starting node dist/server.js Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/app/svc-email-prelaunch/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64/grpc_node.node) Any recommendations to move forward? |
|
@chrisalexander55 Did you find any solution? |
|
I used the repeated keyword on a type containing members string key; string
value;
…On Fri, Nov 24, 2017 at 4:51 AM Ray Ch ***@***.***> wrote:
@chrisalexander55 <https://github.com/chrisalexander55> Did you find any
solution?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8528 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABpcfG61jCEXHjXM0jlmb6BFeuwrbr6Pks5s5pGDgaJpZM4Khw-Y>
.
|
|
@chrisalexander55 mind elaborating? |
|
Same issue here with alpine-node:8, any idea? |
|
Can you elaborate? What version of gRPC are you using? Are you seeing the same |
From @Rich-amoebaWare on October 26, 2016 22:39
Linux 4.4.20-moby (a docker image from mhart/alpine-node:6.9.1
6.9.1 (and back to at least 6.7.0)
3.10.8
0.43.0
I started using the google-cloud sdk a few weeks ago and was using the mhart/alpine-node image for its "slenderness". When I introduced google-cloud into my code I went to build my docker file using alpine-node to discover the following error:
module.js:597
return process.dlopen(module, path._makeLong(filename));
^
Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/src/node_modules/google-cloud/node_modules/grpc/src/node/extension_binary/grpc_node.node)
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/src/node_modules/google-cloud/node_modules/grpc/src/node/src/grpc_extension.js:38:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
npm ERR! Linux 4.4.20-moby
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "test-env"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! enabled@0.4.0 test-env:
export NODE_ENV=test&&node index.jsnpm ERR! Exit status 1
I switched to using the normal node docker image based on debian and of course I don't get the error and everything works well.
However, I would like to switch back to alpine-node to get rid of all the weight...
How can I fix this error?
Thanks
Copied from original issue: googleapis/google-cloud-node#1754
The text was updated successfully, but these errors were encountered: