[SERVER-32437] Platform Support: add Amazon Linux 2 Created: 21/Dec/17  Updated: 30/Oct/23  Resolved: 04/Apr/18

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 3.7.4, 3.6.22

Type: New Feature Priority: Major - P3
Reporter: Davenson Lombard Assignee: Zakhar Kleyman
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by TOOLS-1973 Platform Support: add Amazon Linux 2 Closed
Documented
is documented by DOCS-11565 Docs for SERVER-32437: Platform Suppo... Closed
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: Build 2018-04-09
Participants:
Case:
Linked BF Score: 0
Story Points: 8

 Description   

On December 13th, Amazon released Amazon Linux 2. The installation of our current package for AMZL fails:

[ec2-user@ip-172-31-32-108 ~]$ sudo yum install -y mongodb-enterprise
Loaded plugins: langpacks, update-motd
amzn2-core                                                                                                                                                                                               | 2.0 kB  00:00:00     
https://repo.mongodb.com/yum/redhat/2017.12/mongodb-enterprise/3.6/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package mongodb-enterprise.x86_64 0:3.6.0-1.amzn1 will be installed
--> Processing Dependency: mongodb-enterprise-tools = 3.6.0 for package: mongodb-enterprise-3.6.0-1.amzn1.x86_64
--> Processing Dependency: mongodb-enterprise-shell = 3.6.0 for package: mongodb-enterprise-3.6.0-1.amzn1.x86_64
--> Processing Dependency: mongodb-enterprise-server = 3.6.0 for package: mongodb-enterprise-3.6.0-1.amzn1.x86_64
--> Processing Dependency: mongodb-enterprise-mongos = 3.6.0 for package: mongodb-enterprise-3.6.0-1.amzn1.x86_64
--> Running transaction check
---> Package mongodb-enterprise-mongos.x86_64 0:3.6.0-1.amzn1 will be installed
--> Processing Dependency: libsasl2.so.2()(64bit) for package: mongodb-enterprise-mongos-3.6.0-1.amzn1.x86_64
---> Package mongodb-enterprise-server.x86_64 0:3.6.0-1.amzn1 will be installed
--> Processing Dependency: libsasl2.so.2()(64bit) for package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64
--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64
--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64
--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64
---> Package mongodb-enterprise-shell.x86_64 0:3.6.0-1.amzn1 will be installed
--> Processing Dependency: libsasl2.so.2()(64bit) for package: mongodb-enterprise-shell-3.6.0-1.amzn1.x86_64
---> Package mongodb-enterprise-tools.x86_64 0:3.6.0-1.amzn1 will be installed
--> Processing Dependency: libsasl2.so.2()(64bit) for package: mongodb-enterprise-tools-3.6.0-1.amzn1.x86_64
--> Finished Dependency Resolution
Error: Package: mongodb-enterprise-mongos-3.6.0-1.amzn1.x86_64 (mongodb-enterprise)
           Requires: libsasl2.so.2()(64bit)
Error: Package: mongodb-enterprise-shell-3.6.0-1.amzn1.x86_64 (mongodb-enterprise)
           Requires: libsasl2.so.2()(64bit)
Error: Package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64 (mongodb-enterprise)
           Requires: libnetsnmpmibs.so.20()(64bit)
Error: Package: mongodb-enterprise-tools-3.6.0-1.amzn1.x86_64 (mongodb-enterprise)
           Requires: libsasl2.so.2()(64bit)
Error: Package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64 (mongodb-enterprise)
           Requires: libnetsnmpagent.so.20()(64bit)
Error: Package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64 (mongodb-enterprise)
           Requires: libnetsnmphelpers.so.20()(64bit)
Error: Package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64 (mongodb-enterprise)
           Requires: libnetsnmp.so.20()(64bit)
Error: Package: mongodb-enterprise-server-3.6.0-1.amzn1.x86_64 (mongodb-enterprise)
           Requires: libsasl2.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

I guess the missing dependencies could be manually added but still, Amazon Linux 2 is not officially supported at the moment



 Comments   
Comment by Githook User [ 12/Nov/20 ]

Author:

{'name': 'Zakhar Kleyman', 'email': 'zakhar.kleyman@mongodb.com', 'username': 'zakhark'}

Message: SERVER-32437 add amazon2 to repo_config
Branch: v3.6
https://github.com/mongodb/mongo/commit/78d43fd46ed152bf75396ec114aaf908751b130e

Comment by Githook User [ 12/Nov/20 ]

Author:

{'name': 'Zakhar Kleyman', 'email': 'zakhar.kleyman@mongodb.com', 'username': 'zakhark'}

Message: SERVER-32437 add Amazon Linux 2 platform support
Branch: v3.6
https://github.com/mongodb/mongo/commit/d9d5507ab6a8b117254cca3b5cd74ac3019c0d25

Comment by Brian Leonard [ 14/Feb/19 ]

Yes, I have verified twice that following the Amazon Linux 2 instructions, I am unable to install MongoDB on Amazon Linux 2. For the meantime, I have reverted to using Amazon Linux 1.

Comment by Zakhar Kleyman [ 30/Jan/19 ]

brian.leonard the logs in this ticket were demonstrating that Amazon Linux 1 packages could not be installed on Amazon Linux 2.
If you're receiving the same error, I recommend you check the repo configuration. You can look at installation instructions and make sure you select Amazon Linux 2 tab.

Comment by Brian Leonard [ 30/Jan/19 ]

While researching my failed installation of MongoDB on Amazon Linux 2 I came across this issue. I'm getting the exact same error initially reported? Has this issue possibly regressed?

Comment by Githook User [ 05/Apr/18 ]

Author:

{'email': 'zakhar.kleyman@mongodb.com', 'name': 'Zakhar Kleyman', 'username': 'zakhark'}

Message: SERVER-32437 add amazon2 to repo_config
Branch: master
https://github.com/mongodb/mongo/commit/1796c56878f76a9d2dd3f98b69e5cca9795f90f9

Comment by Githook User [ 04/Apr/18 ]

Author:

{'email': 'zakhar.kleyman@mongodb.com', 'name': 'Zakhar Kleyman', 'username': 'zakhark'}

Message: SERVER-32437 Update Tools builders for amazon2 build variants

Signed-off-by: Zakhar Kleyman <zakhar.kleyman@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/ddf76a853f4afa95441af7f4402e181c5507f30b

Comment by David Golden [ 04/Apr/18 ]

Please update the new Amazon v2 evergreen buildvariants to match the changes made for Amazon v1 in SERVER-34250: https://github.com/mongodb/mongo/commit/6b8b6e0517dc4c06f4224b3644c55c586b347677

Comment by Githook User [ 04/Apr/18 ]

Author:

{'email': 'zakhar.kleyman@mongodb.com', 'name': 'Zakhar Kleyman', 'username': 'zakhark'}

Message: SERVER-32437 add Amazon Linux 2 platform support
Branch: master
https://github.com/mongodb/mongo/commit/cbf3e5344f50e5e84a77e01d8db6e535e1f60c72

Generated at Thu Feb 08 04:30:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.