mongodb-memory-server icon indicating copy to clipboard operation
mongodb-memory-server copied to clipboard

Can't launch on Debian 12 (bookworm) : missing or cannot be opened: "libcrypto.so.1.1"

Open BenjD90 opened this issue 2 years ago • 2 comments

Versions

  • NodeJS: 16.20.2
  • mongodb-memory-server-*: 8.15.1
  • mongodb(the binary version): 6.0.9
  • mongodb(the js package): 4.17.1 (the one used by mongodb-memory-server)
  • system: Linux, in a docker image based on node:16.20.2-bookworm package: mongo-memory-server

What is the Problem?

The mongodb can't be launched :

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

Code Example

await MongoMemoryServer.create({
	binary: {
		version: '6.0.9',
	},
});

Do you know why it happenes?

This seems related to this issue :shrug: https://github.com/nodejs/docker-node/issues/1915

Thanks in advance for any idea how I can fix this, may-be the same way it is done with Fedora ?

BenjD90 avatar Sep 11 '23 17:09 BenjD90

there are currently no binaries directly for debian 12, highest mongodb builds for is debian 11, i dont know which version changed openssl (i think debian 11?), so your options are:

  • manually install libcrypto1.1 (like for ubuntu #732)
  • use a lower debian version (like 11)
  • try to use the ubuntu binary (via config option DISTRO)

hasezoey avatar Sep 11 '23 18:09 hasezoey

Thanks, I think I'll have to switch to MongoDB 7 if I want to keep using Debian 12 : https://www.mongodb.com/docs/v6.0/administration/production-notes/#platform-support-matrix

image

BenjD90 avatar Sep 12 '23 08:09 BenjD90

debian 12 is now supported, thanks to #858, released in 9.1.8

just as a note, 7.0.3 binary is available and downloadable, even if not listed on the archive.

hasezoey avatar Mar 28 '24 18:03 hasezoey