Hello. I am getting an OpenSSL error after Mongosh package upgrade from mongodb-mongosh-1.10.6-1.el8.x86_64 to mongodb-mongosh-2.0.0-1.el8.x86_64. The error is exactly this:
got the same error. started yesterday. I am on fedora 38 workstation. What I did was I uninstalled mongodb and the delete mongodb repo from /etc/yum.repos.d/. And then I manually installed the previous rpms version of mongosh shell which is 1.10.6: MongoDB Repositories.
PS.
I tried installing the mongodb-mongosh-2.0.0.x86_64.rpm from the same repo and got the same openssl config error.
If you are going to follow this workaround, install this first mongodb-mongosh-1.10.6.x86_64.rpm. It will override the installation of other files otherwise.
Once installed:
sudo systemctl start mongod
sudo systemctl enable mongod
- if failed:
sudo systemctl daemon-reload
- then restart again…
sudo systemctl status mongod
after that I was able to use mongo shell once again.
Hope that helps. If not, please submit your workaround.
Instead of mongodb-mongosh, try installing mongodb-mongosh-shared-openssl3
or mongodb-mongosh-shared-openssl11 that fits for your running environment.
For Amazon Linux 2023 where OpenSSL v3 is bundled with, it solved the problem:
$ # This will do
$ dnf install -qy mongodb-mongosh-shared-openssl3
Installed:
mongodb-mongosh-shared-openssl3-2.0.0-1.el8.aarch64
$ if `mongosh --help 1>/dev/null`; then echo 'OK'; else echo '!!!NG!!!'; fi
OK
$ # This WILL NOT do
$ dnf install -qy mongodb-mongosh
Installed:
mongodb-mongosh-2.0.0-1.el8.aarch64
$ if `mongosh --help 1>/dev/null`; then echo 'OK'; else echo '!!!NG!!!'; fi
mongosh: OpenSSL configuration error:
20B0BFA4FFFF0000:error:030000A9:digital envelope routines:alg_module_init:unknown option:../deps/openssl/openssl/crypto/evp/evp_cnf.c:61:name=rh-allow-sha1-signatures, value=yes
!!!NG!!!
$ dnf erase -qy mongodb-mongosh
Removed:
mongodb-mongosh-2.0.0-1.el8.aarch64