[DOCS-4388] Comment on: "manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt" Created: 18/Nov/14  Updated: 03/Nov/17  Resolved: 19/Nov/14

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: v1.3.14

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Michael Paik
Resolution: Cannot Reproduce Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 7.0 64bit server

Location: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:33.0) Gecko/20100101 Firefox/33.0
Referrer: http://docs.mongodb.org/manual/search/?query=repo
Screen Resolution: 2560 x 1440
repo: docs
source: tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux


Participants:
Days since reply: 9 years, 13 weeks ago

 Description   

On 64-bit system running CentOS 7.0, when using the repo file /etc/yum.repos.d/mongodb.repo file as documented on this page, yum returns an error, specifically "http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 400 - Bad Request
Trying other mirror."



 Comments   
Comment by Michael Paik [ 19/Nov/14 ]

--no-cache solving the issue is almost certainly indicative of an HTTP proxy between you and the repository having stale or malformed data (wget's own manual says of the option "This is especially useful for retrieving and flushing out-of-date documents on proxy servers.")

This is the first (and therefore only) time we've seen this problem; more than likely the offending HTTP proxy is somewhere within your organization. Glad you got it sorted, in any case.

Comment by Paul Garneau [ 19/Nov/14 ]

Problematic file turns out to be primary.xml.gz.
I tried to manually download the files listed in repomd.xml to check out the SHA1 sums.
I can manually download the filelists.xml.gz and other.xml.gz files using wget.
Attempting to download primary.xml.gz with wget fails.
Using the --no-cache option for the wget command allows the primary.xml.gz to be downloaded.
I do not know precisely where the file cache is being ignored (i.e., the repo or my server), but from my attempts to understand web pages, I think it is the cache on the repo.

Here is the output of two wget commands attempting to get primary.xml.gz. The first example uses the --no-cache option, the second does NOT use this option:

[root@server7 ~]# wget -no-cache http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/repodata/primary.xml.gz--2014-11-19 17:14:07- http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/repodata/primary.xml.gz
Resolving downloads-distro.mongodb.org (downloads-distro.mongodb.org)... 23.20.48.204
Connecting to downloads-distro.mongodb.org (downloads-distro.mongodb.org)|23.20.48.204|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38193 (37K) [application/x-gzip]
Saving to: ‘primary.xml.gz’

100%[======================================================================================================================>] 38,193 54.3KB/s in 0.7s

2014-11-19 17:14:08 (54.3 KB/s) - ‘primary.xml.gz’ saved [38193/38193]

[root@server7 ~]# wget http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/repodata/primary.xml.gz
-2014-11-19 17:14:16- http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/repodata/primary.xml.gz
Resolving downloads-distro.mongodb.org (downloads-distro.mongodb.org)... 23.20.48.204
Connecting to downloads-distro.mongodb.org (downloads-distro.mongodb.org)|23.20.48.204|:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
2014-11-19 17:14:16 ERROR 400: Bad Request.

Comment by Paul Garneau [ 19/Nov/14 ]

Files at downloads-distro site changed on Nov 4, 2014.

Index of http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/repodata/:
filelists.xml.gz 04-Nov-2014 00:10 8.8K
other.xml.gz 04-Nov-2014 00:10 8.3K
primary.xml.gz 04-Nov-2014 00:10 37K
repomd.xml 04-Nov-2014 00:10 951

I was hoping that there was some change that may have caused the issue I was having.

Comment by Paul Garneau [ 19/Nov/14 ]

Server is NOT using an HTTP proxy.
Can provide whatever information you want.
Cannot run any standard yum commands (e.g., update or install) with the MongoDB repo.
Remove the MongoDB repo and the same commands that could not work, start working.
I can be reached at pgarneau@levelsbeyond.com.

Comment by Michael Paik [ 19/Nov/14 ]

Cannot reproduce - works fine on vanilla RHEL 7.0 install with instructions provided. Probably an issue with a misconfigured HTTP proxy.

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