[SERVER-17992] RHEL6 enterprise repo fails to install 2.6 Created: 10/Apr/15  Updated: 20/May/16  Resolved: 29/Apr/15

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

Type: Bug Priority: Major - P3
Reporter: James Kerr Assignee: Ernie Hershey
Resolution: Cannot Reproduce Votes: 0
Labels: build-planning
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Installing 2.6 enterprise on RHEL6.6 following instructions here http://docs.mongodb.org/v2.6/tutorial/install-mongodb-enterprise-on-red-hat/ for the 2.6 repo gave me a 404 from yum

https://repo.mongodb.com/yum/redhat/%24releasever/mongodb-enterprise/2.6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

I used the workaround and replaced "$releasever" with "6" as they are on RHEL 6.6 and it installed successfully.



 Comments   
Comment by Lee Gildemeester [X] [ 20/May/16 ]

This isn't related just to Mongo. I changed the baseurl=https://repo.mongodb.org/yum/redhat/6/mongodb-org/3.2/x86_64/

[ec2-user@ip-172-30-1-129 x86_64]$ sudo yum install --installroot=/home/ec2-user/root/ \ --downloadonly --downloaddir rpms/ [package]
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos, security
Setting up Install Process
mongodb-org-3.2 | 2.5 kB 00:00
mongodb-org-3.2/primary_db | 33 kB 00:00
rhui-REGION-client-config-server-6 | 2.9 kB 00:00
rhui-REGION-client-config-server-6/primary_db | 6.0 kB 00:00
https://rhui2-cds02.us-west-1.aws.ce.redhat.com/pulp/repos//content/dist/rhel/rhui/server/6/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

https://rhui2-cds01.us-west-1.aws.ce.redhat.com/pulp/repos//content/dist/rhel/rhui/server/6/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.

Just happened Mongo was the first alphabetically to use a Yum variable.

Comment by Lee Gildemeester [X] [ 20/May/16 ]

[ec2-user@ip-172-30-1-129 x86_64]$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

Comment by Ramon Fernandez Marina [ 20/May/16 ]

Lee Gildemeester, can you please post the output of your /etc/yum.conf?

Thanks,
Ramón.

Comment by Lee Gildemeester [X] [ 20/May/16 ]

This issue still exists, I'm seeing it on a mongo 3.2 community installation running on rhel6 running on AWS.

[ec2-user@ip-172-30-1-129 x86_64]$ cat /etc/yum.repos.d/mongodb-org-3.2.repo
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc

[ec2-user@ip-172-30-1-129 x86_64]$ sudo yum install --installroot=/home/ec2-user/root/ \ --downloadonly --downloaddir rpms/ [package]
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos, security
Setting up Install Process
http://repo.mongodb.org/yum/redhat/%24releasever/mongodb-org/3.2/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
...
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mongodb-org-3.2. Please verify its path and try again

Comment by Ernie Hershey [ 24/Apr/15 ]

I can't reproduce this. The $releasever variable is from the yum docs so I believe it should be pretty safe.

I can imagine cases of it not working if maybe the yum.conf file or redhat-release package are corrupt or have invalid data about the OS version. In those cases if fixing the file/package isn't an option, I think hardcoding the version number is a valid workaround.

james.kerr@10gen.com or mark.helmstetter@10gen.com do you have any ideas of reasonable ways to get a system into a state where this happens? Can you reproduce reliably?

Comment by Ernie Hershey [ 13/Apr/15 ]

mark.helmstetter@10gen.com I'd be interested in more details about cases where $releasever doesn't work.

Comment by Ernie Hershey [ 13/Apr/15 ]

The file is included in the docs page as its intended to be created, verbatim. With "$releasevar" in the file, not %24releasever or any manual substitution.

I would support a DOCS ticket to add a note saying that to the installation page.

Comment by Mark Helmstetter [ 10/Apr/15 ]

I think the assumption was that the $releasever variable would actually work as-is (without manual substitution), but seems to not work in most cases in my experience.

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Using_Yum_Variables.html

Comment by Charlie Page [ 10/Apr/15 ]

I think this should be a docs ticket to highlight more clearly that $release is a variable that needs to be replaced?

Comment by Mark Helmstetter [ 10/Apr/15 ]

I've run into this issue several times on several different installations.

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