-
Notifications
You must be signed in to change notification settings - Fork 899
dotcore issue #1484
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
Comments
…t2sharp#1484 Added !about to help text.
Are you sure you're loading the native library correctly? What does |
Yeah it works on windows the exact same code on Linux fails. |
This error occurs when the native library cannot be loaded.
|
Yeah I'm just setting up a test environment for the strace |
I assume I just start my app threw strace. If that's so then that is the only thing returned when stracing it. |
@Jimmy062006 Which linux distro are you using? |
CentOS 7 |
@Jimmy062006 That's the problem then. The native linux binary that is included in the latest native binaries package is built on unbuntu, so it won't work on CentOS 7. The work being done in libgit2/libgit2sharp.nativebinaries#51 is set to address that, but it's not been finished yet. |
Hi @bording, does the same occur with Debian distros such as the microsoft/dotnet docker image? |
@cmendible The primary dependency that matters is the version of libssl available. The binary we currently ship is built against libssl.so.1.0.0, so that version needs to be available. I haven't tried the microsoft/dotnet images, so I'm not sure if a version is installed, or what version might be available to include. I'll try them and out see what I can learn. |
@bording ok so I checked with a quick:
So the required version is not available in the microsoft/dotnet docker image. |
@cmendible It would be worth checking to see if a 1.0.0 package is available to be installed. If it is, you could add a line in your dockerfile to install it. Which version of the image did you try? Based on the versions you're seeing, I suspect it is the 9.0/stretch image. It would also be worth checking the 8.0/jessie versions of the image to see what versions are in it by default. |
@bording image tag 2.0.5-runtime-jessie did the trick! Thanks!!! |
Thats quite unfortunate that libgit2sharp is not compatible with the latest tag of microsoft/dotnet images. It took me hours to diagnose why my builds were crashing. IMHO it would be better to make it work for microsoft/dotnet:latest |
That's the plan. At this point I'm just waiting for a 2.0.x patch release of .NET Core to be able to support every distro that .NET Core runs on. Once the changes I made ship, then I can finish up libgit2/libgit2sharp.nativebinaries#51 |
Has there been any progress on this issue? .NET Core is now at 2.2 |
Yes, the latest versions of the package support a lot more distros now, so I'm going to close this as done. |
Things work fine in Windows but the moment I use linux it fail with this stack trace.
This was the same error I got in windows when the path was incorrect but it is actually correct now on both systems. Thanks
The text was updated successfully, but these errors were encountered: