[DOCS-3243] Enterprise repo doesn't work as-is with https Created: 23/Apr/14  Updated: 05/Feb/17  Resolved: 06/May/14

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

Type: Task Priority: Major - P3
Reporter: Ernie Hershey Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-13691 yum and apt "stable" repositories con... Closed
is related to DOCS-5411 securely download the mongodb packages Closed
is related to SERVER-9246 Create Yum and Apt repositories for e... Closed
Participants:
Days since reply: 8 years, 37 weeks, 2 days ago

 Description   

We should either point people to http://repo.mongodb.com/ instead of https, or add something to the docs about installing apt-transport-https, which seems to be required in Ubuntu 12.04 before using https apt source repos will work.

(Here - http://docs.mongodb.org/manual/tutorial/install-mongodb-enterprise-on-ubuntu/)



 Comments   
Comment by Ernie Hershey [ 01/Jun/15 ]

I just verified this in Debian Wheezy. Installing apt-transport-https fixed the problem.

Comment by Githook User [ 06/May/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-3243: fix for https in deb repos
Branch: master
https://github.com/mongodb/docs/commit/4754c085c46f8ef6e0c471a22a88fd3f1bab05d6

Comment by Ernie Hershey [ 06/May/14 ]

Per conversation with samk and daniel.medina we should change the docs for just Ubuntu to http instead of https.

Comment by Ernie Hershey [ 06/May/14 ]

I don't think this is fixed.

Comment by Sam Kleinman (Inactive) [ 06/May/14 ]

Cool. Based on this I'm going to close this ticket.

Comment by Gianfranco Palumbo [ 06/May/14 ]

the yum issue was fixed last week.

the apt-get seems to be working now with https in the repo url

Comment by Gianfranco Palumbo [ 29/Apr/14 ]

The Docs for Redhat/Centos don't even have the repo config information:
http://docs.mongodb.org/manual/tutorial/install-mongodb-enterprise-on-red-hat-or-centos/

like the community doc:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/

I tried using the ubuntu repo url for yum on centos (with http and https), but doesn't work.

/etc/yum.repos.d/mongodb-enterprise.repo

[mongodb]
name=MongoDB Repository
baseurl=http://repo.mongodb.com/redhat/os/x86_64/
gpgcheck=0
enabled=1

$ sudo yum install mongodb-enterpriseFailed to set locale, defaulting to C
Loaded plugins: fastestmirror
Repository mongodb is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: ftp.heanet.ie
 * epel: ftp.heanet.ie
 * extras: ftp.heanet.ie
 * updates: ftp.heanet.ie
http://repo.mongodb.com/redhat/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Setting up Install Process
No package mongodb-enterprise available.
Error: Nothing to do

Comment by Sam Kleinman (Inactive) [ 24/Apr/14 ]

Is this for all versions of ubuntu? All before 12.04? All after?

Comment by Ernie Hershey [ 23/Apr/14 ]

The error I get without apt-transport-https is:

$ sudo apt-get update
...
Fetched 1,155 kB in 2s (404 kB/s)
Reading package lists... Done
W: Size of file /var/lib/apt/lists/partial/repo.mongodb.com_apt_ubuntu_dists_precise_mongodb-enterprise_2.6_Release.gpg is not what the server reported 0 490
W: Size of file /var/lib/apt/lists/partial/repo.mongodb.com_apt_ubuntu_dists_precise_mongodb-enterprise_2.6_Release is not what the server reported 0 2127
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.mongodb.com precise/mongodb-enterprise/2.6 Release: The following signatures were invalid: NODATA 2
W: Failed to fetch https://repo.mongodb.com/apt/ubuntu/dists/precise/mongodb-enterprise/2.6/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.
ubuntu@ip-10-47-149-34:/etc/apt/sources.list.d$

And this if I install apt-transport-https and uninstall it:

$ sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
E: The method driver /usr/lib/apt/methods/https could not be found.
$

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