docker-node icon indicating copy to clipboard operation
docker-node copied to clipboard

Instance failed to start because a library is missing or cannot be opened: "libcrypto.so.1.1"

Open alex4512 opened this issue 1 year ago • 4 comments

Environment

  • Platform: K8s
  • Node.js Version: 18.x
  • Image Tag: node:lts-hydrogen

Expected Behavior

Noticed the bug while trying to execute unit tests with the MongoMemoryServer module MongoDB "5.0.9"

Starting the MongoMemoryServer Instance failed, enable debug log for more information. Error: StdoutInstanceError: Instance failed to start because a library is missing or cannot be opened: "libcrypto.so.1.1"

alex4512 avatar Jun 13 '23 13:06 alex4512

I just simultaneously created a duplicate issue with a workaround #1916

steven-supersolid avatar Jun 13 '23 13:06 steven-supersolid

Although this is for Debian the same should work for others. Can also use dpkg instead of gdebi, just find a place to get the correct libssl1.1 package from.

# To handle dependency installations
RUN apt-get install gdebi-core -y

# Download libssl1.1
RUN wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1n-0+deb11u4_amd64.deb

# Install libssl1.1
RUN gdebi --non-interactive libssl1.1_1.1.1n-0+deb11u4_amd64.deb

Hope this helps.

MandarDevarshi avatar Jun 13 '23 14:06 MandarDevarshi

adding more: also happening for openssl. had similar issues in k8s and reverted to older node builds (node:18.15.0-slim)

reference: https://github.com/prisma/prisma/issues/19729

morpig avatar Jun 13 '23 16:06 morpig

Hello,

Does anyone know if this is related to the end of life of OpenSSL V 1.1 that end today, as Node 16 ? If so, it doesn't look like a good idea to install it manually in the image, isn't it ?

BenjD90 avatar Sep 11 '23 16:09 BenjD90