ephemeral-mongo: Doesn't work on Linux systems without OpenSSL 1.1

OpenSSL 1.1 is going EOL in September and is being gradually removed from Linux systems:

  1. Ubuntu 22.04 only has OpenSSL 3
  2. Gentoo switched to OpenSSL 3 last week
  3. Arch switched to OpenSSL 3 in Nov 2022

mongod bundled in EphemeralMongo simply doesn’t start on such systems:

$ ~/.nuget/packages/ephemeralmongo6.runtime.linux-x64/1.1.0/runtimes/linux-x64/native/mongodb/bin/mongod 
/home/marat/.nuget/packages/ephemeralmongo6.runtime.linux-x64/1.1.0/runtimes/linux-x64/native/mongodb/bin/mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Thank you for your feedback, I really appreciate it. I anticipate this issue may become more frequent in the future as the adoption of Ubuntu 22.04 increases. That’s why I am considering creating a new package targeting the ubuntu.22.04-x64 .NET runtime identifier (docs, source).

The new package would be named EphemeralMongo6.runtime.ubuntu.22.04-x64. It won’t be a dependency of the all-in-one metapackage EphemeralMongo6. Developers will need to manually install this new package along with EphemeralMongo.Core.

I’m not a Linux expert, so I don’t what are the possible side effects, but if I run these commands than it works:

echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
sudo apt-get update
sudo apt-get install libssl1.1

This is the source.