Mongo2Go / Mongo2Go

Mongo2Go - MongoDB for .NET integration tests
MIT License
383 stars 69 forks source link

Missing libcrypto.so.1.1 in mcr.microsoft.com/dotnet/sdk:8.0 #149

Open badokun opened 1 year ago

badokun commented 1 year ago

When using the latest sdk:8.0 any instantation of Mongo2Go will fail with a message like below:

/root/.nuget/packages/mongo2go/3.1.3/tools/mongodb-linux-4.4.4-database-tools-100.3.1/bin/mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

To get around that install the library inside the container by running these commands:

wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
ph1l1pF commented 11 months ago

I have the same problem under Debian. I had to install the library manually in my Dockerfile to circumvent the error. Downloaded the lib from here http://ftp.uni-kl.de/pub/linux/debian-security/pool/updates/main/o/openssl/ as my package manager could not find it

JudaB commented 10 months ago

I solved it with the following code in Dockerfile

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS prepare_restore
RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb
RUN dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb && rm libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb
mikebarber1 commented 8 months ago

Same issue for me, the package name/version is a moving target. As of today this fixes it...

` RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb

RUN dpkg -i libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb && rm libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb `

If that doesn't fix it for you the go to http://security.ubuntu.com/ubuntu/pool/main/o/openssl and find the latest package version.

korzanov commented 6 months ago

Not good way, but quick solution for Debian 12 is to install library of Debian 11:

apt-get update
apt-get install -y gdebi-core
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb
gdebi --non-interactive libssl1.1_1.1.1w-0+deb11u1_amd64.deb

Probably ought to update the binary tool mongod that added from version 4.4.3 of MongoDB Server, see #109

Current version of MongoDB Server is 7 and will be 8 soon.

victor-fialkin-paylocity commented 2 months ago

Hi, any update on that?