-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Description
Hi, cool project. I tried using it, but got an error. I googled for some ways to install libcrypto, but nothing worked. I'm using Ubuntu 22.04
Here's the error:
Determining test suites to run...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"
at MongoInstance.checkErrorInLine (/home/michael/casefile/node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:368:62)
at MongoInstance.stderrHandler (/home/michael/casefile/node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:290:14)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
● Test suite failed to run
Jest: Got error running globalSetup - /home/michael/casefile/node_modules/@shelf/jest-mongodb/lib/setup.js, reason: Instance failed to start because a library is missing or cannot be opened: "libcrypto.so.1.1"
at MongoInstance.checkErrorInLine (../node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:368:62)
at MongoInstance.stderrHandler (../node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:290:14)
This repo is a good reproduction of the libcrypto problem on Ubuntu 22.04. I tried changing the version to 5.0.14 and same-same.
https://github.com/renatops1991/clean-code-api
What am I missing?
I have mongo running in a docker instance - that would be so much easier and more secure to deploy than downloading the images - is that a possibility?
Thank you!
p.s. I cross posted here: https://www.mongodb.com/community/forums/t/jest-mongo-and-ubuntu-22-04/208722
armujahid, bryan-hoang and olof-nord
Metadata
Metadata
Assignees
Labels
No labels