this post was submitted on 28 May 2025
1 points (100.0% liked)

MongoDB

149 readers
1 users here now

founded 2 years ago
MODERATORS
 

Hello all,

I'm deploying an Amazon EC2 instance of RHEL and attempting to install MongoDB via yum.

Following the guide provided by MongoDB, if I place only the repo file for either mongodb 7 or 8, the install fails. If I place both repo files, it still fails.

If only 7's repo file is present, it fails with 7's GPG key.

MongoDB Repository                                                                      434  B/s | 1.6 kB     00:03
Importing GPG key 0x1785BA38:
 Userid     : ""
 Fingerprint: E588 3020 1F7D D82C D808 AA84 160D 26BB 1785 BA38
 From       : https://pgp.mongodb.com/server-7.0.asc
error: Certificate 160D26BB1785BA38:
  Policy rejects 160D26BB1785BA38: No binding signature at time 2025-05-28T14:23:03Z
Key import failed (code 2). Failing package is: mongodb-database-tools-100.12.1-1.x86_64
 GPG Keys are configured as: https://pgp.mongodb.com/server-7.0.asc
Public key for mongodb-mongosh-2.5.1.x86_64.rpm is not installed. Failing package is: mongodb-mongosh-2.5.1-1.el8.x86_64
 GPG Keys are configured as: https://pgp.mongodb.com/server-7.0.asc
Public key for mongodb-org-mongos-7.0.20-1.el9.x86_64.rpm is not installed. Failing package is: mongodb-org-mongos-7.0.20-1.el9.x86_64
 GPG Keys are configured as: https://pgp.mongodb.com/server-7.0.asc
Public key for mongodb-org-server-7.0.20-1.el9.x86_64.rpm is not installed. Failing package is: mongodb-org-server-7.0.20-1.el9.x86_64
 GPG Keys are configured as: https://pgp.mongodb.com/server-7.0.asc
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED

If only 8's repo file is present, it fails with libssl and libcrypto errors:

Excerpt:

[...]
 - cannot install the best candidate for the job
  - nothing provides libcrypto.so.1.1()(64bit) needed by mongodb-org-server-8.0.0-1.el8.x86_64 from mongodb-org-8.0
  - nothing provides libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) needed by mongodb-org-server-8.0.0-1.el8.x86_64 from mongodb-org-8.0
[...]

If both 7 and 8's repo file is present, it fails on 7's GPG key again.

I've tried manually importing both 7 and 8's GPG keys with:

rpm --import "https://pgp.mongodb.com/server-8.0.asc"

and

rpm --import "https://pgp.mongodb.com/server-7.0.asc"

The 8 import seems to work but the 7 import fails.

The thing is, last week, I successfully installed MongoDB on RHEL 9 using these exact same steps. I'm just doing it again now to capture documentation for work and it's failing.

So my questions are: What the hell?

Seriously though, what can I do to fix this? Is this a problem with MongoDB? Do they need to update their keys?

Thanks

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here