-
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
Import error trying to run gRPC on alpine #6126
Comments
|
@bbassingthwaite-va Have you tried installing REF: https://pkgs.alpinelinux.org/contents?file=ld-linux-x86-64.so.2&path=&name=&branch=&repo=&arch= |
|
Adding a comment as found this error via Google and the solution worked for me. Had the same error, slightly different trace - but ultimately resolved by installing the My tracelog for reference: |
|
Closing; the question here seems to be satisfactorily answered. |
|
I feel this has not in fact been satisfactorily answered. This should not be necessary if gRPC would have an official alpine build. The error on the npm module was also very confusing. |
|
I'll admit I scratched my head when I first encountered this but I don't put the onus on the gRPC team to create builds for every exotic libc implementation people can conjure up. Alpine is very forthcoming with the use of musl libc. I think the onus is on us to understand what that means to the code we are trying to run. In this case it means we need to install a compatibility shim Alpine has an excellent tool for getting to the bottom of these issues https://pkgs.alpinelinux.org/contents For example you can find what, if any, packages may offer the missing |
|
Is the I just spun up the alpine docker image we use for testing I pip installed grpc, and was able to import grpc without running into the issue described above. To make sure we didn't transitively pull in libc6-compat into our alpine docker image, I did |
|
I agree in general that supporting other libc implementations is not necessarily a good idea, but in this case Alpine is quickly becoming the de facto Docker images base OS. While I do agree that the fix is easy, understanding why it doesn't work can be painful as demonstrated by the quantity of issues related to Alpine in this repo (and any other large project that doesn't support musl). Also note that I have no idea of the effort required to implement this directly in gRPC. I simply think it should at least be in the roadmap. |
|
@kpayson64 It is possible the entire glibc gets installed? Otherwise maybe an Alpine build does exist and is simply not being used by the npm module? |
|
@rochdev Alpine support was added this April, so probably wasn't there before gRPC 1.4. |
|
Indeed it seems that the I will open a PR there. Sorry for reviving this old thread! |
|
@murgatroid99 Why is this issue closed? This seems like something that should stay open until we make gRPC work out of the box on alpine. |
|
Well, it was originally closed because some solution had been provided. Now I believe it can stay closed because we have published precompiled binaries for alpine in gRPC 1.8. |
|
👏 this is awesome news! I didn't see that 1.8 went out! |
Hi, I am trying to run a gRPC server inside of a docker container and I am receiving the error:
My docker file is:
I am installing gRPC from PYPI and would not expect any other dependencies?
Thanks,
Braden
The text was updated successfully, but these errors were encountered: