Skip to content

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

@MichaelJCole

Description

@MichaelJCole

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions