Installing MongoDB Percona 7.0 on Amazon Linux 2023

Hi,

We are trying to move from Amazon Linux 2 to Amazon Linux 2023, which includes migrating our Percona MongoDB. We have been unsuccessful in installing Percona MongoDB (7.0.2), even though we are able to install the community version 7.0.2 (and 7.0.4) of MongoDB.

With this version of a YUM repository:

[psmdb-70-release-x86_64]
name = Percona Server for MongoDB 7.0 release/x86_64 YUM repository
baseurl = Percona Repo
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY

we are getting these dependency errors when trying to install:

root@ip-10-0-133-251 tasks]# yum install percona-server-mongodb.x86_64
Last metadata expiration check: 0:01:13 ago on Tue Nov 14 20:22:09 2023.
Error:
Problem: package percona-server-mongodb-7.0.2-1.el9.x86_64 requires percona-server-mongodb-server = 7.0.2-1.el9, but none of the providers can be installed

  • conflicting requests
  • nothing provides liblber.so.2()(64bit) needed by percona-server-mongodb-server-7.0.2-1.el9.x86_64
  • nothing provides liblber.so.2(OPENLDAP_2.200)(64bit) needed by percona-server-mongodb-server-7.0.2-1.el9.x86_64
  • nothing provides libldap.so.2()(64bit) needed by percona-server-mongodb-server-7.0.2-1.el9.x86_64
  • nothing provides libldap.so.2(OPENLDAP_2.200)(64bit) needed by percona-server-mongodb-server-7.0.2-1.el9.x86_64
    (try to add ‘–skip-broken’ to skip uninstallable packages)

Has anyone had success in getting a version of MongoDB Percona (server) running on Amazon Linux 2023?

Thank you.

Hello cloudops1, I hope your are doing great.

The error you see is related to OpenLDAP libraries, namely libldap and liblber. That means these libraries should be installed on your Amazon Linux 2023 instance.

PSMDB was likely not tested as this is a recent release. For instance, KVM on-premise ISO images were published 2 weeks ago.
reference:

https://github.com/amazonlinux/amazon-linux-2023/issues/102

If you which to run PSMDB on Amazon Linux 2023, please make sure to install all necessary libraries, either from repositories or compiling them.

Note that this distribution is based on Centos 9 and other Fedora distributions, you may find more info here:

https://docs.aws.amazon.com/linux/al2023/ug/compare-with-al2.html

Please let us know how this works out for you.

Cheers.

2 Likes

Hi Arlindo,

Thank you for the reply.

We do understand the dependency issue, what is not clear to us is why there is a dependency at all for Percona Mongo DB 7.0.2, when the same mongo-org community version (7.0.2) installs and runs fine.

Are you able to elaborate a bit on what Percona adds to the mongodb-org that would require these dependencies?

Thanks again for the reply.

Hi Arlindo,

Some additional information - I just learned that Percona adds the ldap functionality (over the mongodb-org community version) and hence this is why we see the dependancy issue with the ldap database.

Secondly, it turns out that AWS currently does NOT support these dependency libraries that are required by Percona MongoDB. In writing to AWS support about this, they indicated to us that AL 2023 currently does not support the libraries, but they are “considering” adding the missing libraries to AL 2023. (it turns out that AL2023 has dropped many librariy support that AL2 used to support).

Thanks

1 Like