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.

Failed to load gRPC lib in Docker

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

2reactions
StasPerekrestovcommented, Sep 24, 2020

There is a little issue with the fix, it makes the container exposed to CVE-2019-14697 with 7.5 score.

0reactions
StasPerekrestovcommented, Sep 24, 2020

@jskeet thank you for the update. I’ll leave a comment under that thread.

Read more comments on GitHub >

github_iconTop 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 >

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