docker-node
docker-node copied to clipboard
Instance failed to start because a library is missing or cannot be opened: "libcrypto.so.1.1"
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"
I just simultaneously created a duplicate issue with a workaround #1916
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.
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
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 ?