Skip to content
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

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

Open
alex4512 opened this issue Jun 13, 2023 · 4 comments

Comments

@alex4512
Copy link

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"

@steven-supersolid
Copy link

steven-supersolid commented Jun 13, 2023

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

@MandarDevarshi
Copy link

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.

@morpig
Copy link

morpig commented Jun 13, 2023

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

reference: prisma/prisma#19729

@BenjD90
Copy link
Contributor

BenjD90 commented Sep 11, 2023

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants