[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
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] 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" 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 |
| Comment by Ramon Fernandez Marina [ 20/May/16 ] |
|
Lee Gildemeester, can you please post the output of your /etc/yum.conf? Thanks, |
| 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 [ec2-user@ip-172-30-1-129 x86_64]$ sudo yum install --installroot=/home/ec2-user/root/ \ --downloadonly --downloaddir rpms/ [package] |
| 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. |
| 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. |