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" #772

Closed
lostcodingsomewhere opened this issue Jun 22, 2023 · 2 comments

Comments

@lostcodingsomewhere
Copy link

lostcodingsomewhere commented Jun 22, 2023

Versions

  • NodeJS: 18
  • mongodb-memory-server-*: 8.13.0
  • mongodb(the binary version): 0.0.0
  • mongoose: 7.3.1
  • system:

package: mongo-memory-server

What is the Problem?

Docker (github actions) running into error when starting up the server for tests -- specifically "libcrypto.so.1.1".

Only became an issue this week. No issue when running outside of docker. Have tried to downgrade versions

Debug Output

Debug Output
Starting the MongoMemoryServer Instance failed, enable debug log for more information. Error:
test_1        |  StdoutInstanceError: Instance failed to start because a library is missing or cannot be opened: "libcrypto.so.1.1"
test_1        |     at MongoInstance.checkErrorInLine (/app/node_modules/mongodb-memory-server-core/src/util/MongoInstance.ts:678:11)
test_1        |     at MongoInstance.stderrHandler (/app/node_modules/mongodb-memory-server-core/src/util/MongoInstance.ts:563:10)
test_1        |     at Socket.emit (node:events:513:28)
test_1        |     at Socket.emit (node:domain:489:12)
test_1        |     at addChunk (node:internal/streams/readable:324:12)
test_1        |     at readableAddChunk (node:internal/streams/readable:297:9)
test_1        |     at Socket.Readable.push (node:internal/streams/readable:234:10)
test_1        |     at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

Do you know why it happenes?

no

@hasezoey
Copy link
Member

from what i can tell, this issue is a duplicate of #732

i dont know why it started happening this week, but the TL;DR is that ubuntu 22.04 (ex ubuntu:latest) does not ship libraries for libcrypto 1.1 anymore and the default binaries are currently 5.0.x, which dont have a native version for ubuntu 22.04, only 6.0.4 or higher have builds for this ubuntu version

see config option VERSION on how to configure a binary version

@lostcodingsomewhere
Copy link
Author

thanks @hasezoey -- switching to node:lts-bullseye worked, as suggested by @sagrawal31

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

No branches or pull requests

2 participants