MongoDB on AWS Linux 2 Community package install issue

Dear all,

New to community so please forgive me if placement is poor.

Had an issue following the community install of mongodb 3.6.23 on an Amazon Linux 2 AMI

after setting up the code /etc/yum.repos.d/mongodb-org-3.6.repo

[mongodb-org-3.6]
name=MongoDB Repository
baseurl=Index of x86_64
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc>

sudo yum install -y mongodb-org-3.6.23 mongodb-org-server-3.6.23 mongodb-org-shell-3.6.23 mongodb-org-mongos-3.6.23 mongodb-org-tools-3.6.23

Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
mongodb-org-server-3.6.23-1.am FAILED
https://repo.mongodb.org/yum/amazon/2/mongodb-org/3.6/x86_64/RPMS/mongodb-org-server-3.6.23-1.amzn1.x86_64.rpm: [Errno 14] HTTPS Error 404 - Not Found ] 0.0 B/s | 0 B --:–:-- ETA
Trying other mirror…
Blockquote

this happens for all the packages, I found that the url to the repo is incorrect and hence the issue

by installing the RPM direct the packages install without issue as a workaround (note the 2 just before .x86_64rpm) the package is using a 1, I think this either a repo or AWS issue?

repo.mongodb.org/yum/amazon/2/mongodb-org/3.6/x86_64/RPMS/mongodb-org-3.6.23-1.amzn2.x86_64.rpm

Please could someone direct me if this is my mistake or is the repo broken? I cannot see a fix in the config file and not sure if to log a case with AWS as this is a Mongo repo and Mongo instructions

Appreciate any help you can give

Hi @Nathan_Harris and welcome in the MongoDB Community :muscle: !

Well, first of all, MongoDB 3.6 reached end of life in April 2021, so it’s not supported anymore. This could be the issue here.

Can we start by upgrading all this to MongoDB 4.4? :slight_smile:

Looks like 3.6.22+ was compatible with Amazon Linux 2 at the time though.

More installation details here: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-amazon/

Also that’s not a typo?

Also looks like

yum install deltarpm

couldn’t hurt.
Source: centos - Do I need to do something about "Delta RPMs disabled"? - Unix & Linux Stack Exchange

Cheers,
Maxime.

Hi Maxime,

Thank you for the much needed help, the config file was a typo :wink: but only in the blog (must have hit the> key), the deltarpm has fixed the issue though, looking at the migration path now…

Thank you Nathan

1 Like