[SERVER-16563] Debian repo component mismatch - mongodb/10gen Created: 16/Dec/14  Updated: 19/May/15  Resolved: 15/May/15

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

Type: Bug Priority: Major - P3
Reporter: Yauhen Artsiukhou Assignee: Ernie Hershey
Resolution: Done Votes: 2
Labels: build-planning, collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
Referrer: https://www.google.by/
Screen Resolution: 1920 x 1080
repo: docs
source: tutorial/install-mongodb-on-debian


Issue Links:
Duplicate
is duplicated by SERVER-17149 Can't mirror your debian repository Closed
Backwards Compatibility: Fully Compatible
Sprint: BUILD 2 04/24/15, BUILD 3 05/15/15
Participants:

 Description   

You have repo with distribution "dist" and component "10gen".
For example:

deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen

But if I go to http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/Release file I see that there is only one component: "mongodb"

It confuses some tools like aptly.

$ aptly mirror create mongodb http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist 10gen
Downloading http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/InRelease...
Downloading http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/Release...
Downloading http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/Release.gpg...
gpgv: Signature made Tue 09 Dec 2014 11:54:46 PM FET using RSA key ID 7F0CEB10
gpgv: Good signature from "Richard Kreuter <richard@10gen.com>"
ERROR: unable to fetch mirror: component 10gen not available in repo [mongodb]: http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist

This block me from doing a local mirror. Probably this is real bug

Reporter: jsirex
E-mail: jsirex@gmail.com



 Comments   
Comment by Githook User [ 15/May/15 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-16563 Change Debian and Ubuntu packaging component to 10gen to match directory structure
Branch: v2.6
https://github.com/mongodb/mongo/commit/69086baf42e89ee16f2c1c01cd8f15473ee6a4f8

Comment by Ernie Hershey [ 27/Apr/15 ]

For anyone experiencing this problem - you should be able to update your mirrors now. The repo has the correct component in the Release files now.

There's a little more internal work to do before I can close the ticket.

Comment by Thilo Neumann [ 27/Feb/15 ]

We have the same problem; mirroring the mongodb repo with aptly would be very smart compared to other possibilities, so please fix it. Thanks a lot!!!
About ernie.hershey@10gen.com's first comment: Yes you are correct, please replace in each of the files http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release and http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/Release the line Components: mongodb with line Components: 10gen to have the files match the directory structure and the documentation at http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/.
Alternatively you may rename the directories from 10gen to mongodb. Don't forget to update the documentation then.
Or just add a (symbolic) link in the file-system named mongodb pointing to 10gen (ln -s 10gen mongodb).
About ernie.hershey@10gen.com's last comment: IMHO every user of the repo should decide by herself whether she wants to download the entire downloads-distro.mongodb.org repo or apply a filter to it so that only defined versions are downloaded. Applying a filter at least works well when using aptly. I do not know if other tools (puppet, Chef, ...) allow filtering of versions. Actually it really does not make sense for most of the users to download the entire repo, but as long as the issue is not solved, no one even has the chance to download parts of the repo.
Thanks a lot again for your great product and your support in this case!!!

Comment by Filip Havlí?ek [ 03/Feb/15 ]

We have the same problem. Please fix it (change component "mongodb" to "10gen").

Comment by Yauhen Artsiukhou [ 28/Jan/15 ]

We need a mirror for mongodb-org=2.6.6 which is unavailable in mentioned repository.

Comment by Ernie Hershey [ 12/Jan/15 ]

Hi jsirex - that sounds unrelated to the component issue in this ticket. We have new smaller repos that will be available for the 2.8 release series under http://repo.mongodb.org/. I don't recommend mirroring the entire downloads-distro.mongodb.org repo.

Comment by Yauhen Artsiukhou [ 12/Jan/15 ]

As MongoDB packages becoming larger this issue becomes blocker: re-downloading 291 MB for 9 servers produces timeouts in Chef-Client. Also bootstrap procedure takes too much time.

Comment by Ernie Hershey [ 16/Dec/14 ]

I believe we need to change the "mongodb" component to "10gen" to match the directory structure.

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