[DOCS-13719] $releaseserver variable Red Hat Enterprise Linux 7 creates a repo URL where mongodb RPMs are absent Created: 18/Jun/20  Updated: 30/Oct/23  Resolved: 30/Jul/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: 4.2.7
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Abhinav Shrivastava Assignee: Andrew Feierabend (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Red Hat Enterprise Linux Workstation release 7.7 (Maipo)


Participants:
Days since reply: 3 years, 33 weeks, 6 days ago
Epic Link: DOCSP-1769

 Description   

Description

In the tutorial it's listed that a repo needs to be created like this:

[mongodb-org-4.2]

name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/ gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc

 

Here $releasever variable points to 7Workstation

{ "arch": "ia32e", "basearch": "x86_64", "osver": "7.7", "uuid": "--------------------------", "releasever": "7Workstation" }

which eventually leads to baseurl  = https://repo.mongodb.org/yum/redhat/7Workstation/mongodb-org/4.2/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

===============================
The Repo URL originally is 
https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.2/x86_64/
or
For server edition
https://repo.mongodb.org/yum/redhat/7Server/mongodb-org/4.2/x86_64/

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Abhinav Shrivastava [ 19/Jun/20 ]

Sure. I have already resolved $releasever by replacing it with 7 and it's working out nicely.

Comment by Ravind Kumar (Inactive) [ 18/Jun/20 ]

Hi abhinavshrivastava1592@gmail.com, thanks for the heads up. Interesting that RHEL Workstation returns a different $releasever , throws a bit of a wrench into things.

We'll need to do a bit of investigation internally on how best to resolve this and circle back.

I'm hoping that you can resolve this in the short term by replacing $releasever with 7 so that you can still grab the packages. This is assuming that RHEL Workstation and RHEL Desktop are not so different that MongoDB would not run as expected (I can't seem to find a resource for comparing directly RHEL Desktop to Workstation that isn't behind some sort of access control :/ )

We appreciate your patience.

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