Failed to load gRPC lib in Docker
See original GitHub issueI’m running my app in Docker (linux x64 environment). And the service fails to start because of the error:
System.IO.IOException: Error loading native library \"/app/runtimes/linux/native/libgrpc_csharp_ext.x64.so\". Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /app/runtimes/linux/native/libgrpc_csharp_ext.x64.so)
So it is trying to load gRPC library from runtimes/....
folder. But whenever I publish the project locally (with Linux target) I see this library in the project output root. So it looks like it is trying to load the library from the wrong location.
Does anyone have the same issue?
The build command is nothing specific (tried with and without -r
flag.):
RUN dotnet publish -c Release [-r linux-x64]...
Issue Analytics
- State:
- Created 3 years ago
- Comments:15
Top Results From Across the Web
Dockerizing gRPC Server (Node) Issue: [Error: Failed to ...
Whenever I run my docker image, I keep getting an error in terms of incompatibility between systems/architecture for node.
Read more >Getting Failed to load gRPC binary error (with either node ...
Hi, I'm working on an application that runs fine locally, but when running through docker I constantly get this error. web_1 | Error:...
Read more >"Failed to load gRPC binary module" Error - Developer
If your Node.js environment is out of sync, you will get the "Failed to load gRPC binary module" error as shown below:
Read more >failed to dial gRPC: cannot connect to the Docker daemon ...
On Jul 22, 2019 6:36pm PDT, I got this error when trying to build a Linux Docker image using your hosted docker:latest image...
Read more >Failed to load gRPC binary module" error when running a ...
Coding example for the question "Failed to load gRPC binary module" error when running a Sails.js application inside a Docker container-node.js.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is a little issue with the fix, it makes the container exposed to CVE-2019-14697 with 7.5 score.
@jskeet thank you for the update. I’ll leave a comment under that thread.