[SERVER-18516] ubuntu/debian packaging : Release files report wrong Codename Created: 18/May/15  Updated: 16/Sep/22  Resolved: 19/Aug/15

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

Type: Bug Priority: Minor - P4
Reporter: patrice Damezin Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: Bug, Packaging, build-planning
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian Wheezy / Ubuntu Trusty / Ubuntu Precise


Issue Links:
Related
related to SERVER-69746 debmirror not working Closed
is related to SERVER-24862 Unable to mirror your apt repo Open
Backwards Compatibility: Fully Compatible
Operating System: Linux
Backport Completed:
Sprint: BUILD 4 06/05/15, Build 5 06/26/16, Build 6 07/17/15, Build 7 08/10/15, Build 8 08/31/15
Participants:

 Description   

Release files on repo.mongodb.org/apt like http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.0/Release ou http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/Release report a wrong codename.

On http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/Release the Codename should be : "trusty/mongodb-org/3.0" and not "trusty/mongodb-org".

This error seems to not affect Ubuntu or Debian, but it affect tools like debmirror. We use this tool to create our internal mirrors.

Mirroring to /mnt/data/mirrors/mongodb3/ubuntu from http://repo.mongodb.org/apt/ubuntu/
Arches: amd64,i386
Dists: trusty/mongodb-org/3.0
Sections: multiverse
Including source.
Pdiff mode: none
Will clean up after mirroring.
Attempting to get lock ...
Getting meta files ...
[  0%] Getting: dists/trusty/mongodb-org/3.0/Release...          #** GET http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/Release ==> 200 OK
ok
[  0%] Getting: dists/trusty/mongodb-org/3.0/Release.gpg...      #** GET http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.0/Release.gpg ==> 200 OK
ok
Broken Release file: neither Codename nor Suite matches trusty/mongodb-org/3.0.
Exiting subroutine via next at /tmp/debmirror line 2147.
Errors:
 Broken Release file: neither Codename nor Suite matches trusty/mongodb-org/3.0



 Comments   
Comment by Ernie Hershey [ 12/Jan/16 ]

wayne530 - to install specific versions, you have to specify the individual component packages as documented in our installation guide.

Comment by Y. Wayne Huang [ 12/Jan/16 ]

This does not appear to be fixed. I believe a consequence of this is that if a system has both 3.0 and 3.2 repos that installing by version, e.g. apt-get install mongodb-org=3.0.8, doesn't work properly. It pulls the 3.0.8 metapackage but then proceeds to install 3.2.0 component packages. Additionally, it appears there are 3.2.1 packages but it seems it hasn't been added to the Packages/Packages.gz file.

root@test-mongo-01:~# apt-get install mongodb-org=3.0.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
  mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
  mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.9 MB of archives.
After this operation, 211 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-shell amd64 3.2.0 [5,004 kB]
Get:2 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-server amd64 3.2.0 [9,245 kB]
Get:3 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-mongos amd64 3.2.0 [4,082 kB]
Get:4 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-tools amd64 3.2.0 [27.5 MB]
Get:5 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org amd64 3.0.8 [3,560 B]
Fetched 45.9 MB in 3s (12.0 MB/s)
Selecting previously unselected package mongodb-org-shell.
(Reading database ... 76875 files and directories currently installed.)
Preparing to unpack .../mongodb-org-shell_3.2.0_amd64.deb ...
Unpacking mongodb-org-shell (3.2.0) ...
Selecting previously unselected package mongodb-org-server.
Preparing to unpack .../mongodb-org-server_3.2.0_amd64.deb ...
Unpacking mongodb-org-server (3.2.0) ...
Selecting previously unselected package mongodb-org-mongos.
Preparing to unpack .../mongodb-org-mongos_3.2.0_amd64.deb ...
Unpacking mongodb-org-mongos (3.2.0) ...
Selecting previously unselected package mongodb-org-tools.
Preparing to unpack .../mongodb-org-tools_3.2.0_amd64.deb ...
Unpacking mongodb-org-tools (3.2.0) ...
Selecting previously unselected package mongodb-org.
Preparing to unpack .../mongodb-org_3.0.8_amd64.deb ...
Unpacking mongodb-org (3.0.8) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-org-shell (3.2.0) ...
Setting up mongodb-org-server (3.2.0) ...
Adding system user `mongodb' (UID 106) ...
Adding new user `mongodb' (UID 106) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 111) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
mongod start/running, process 1790
Setting up mongodb-org-mongos (3.2.0) ...
Setting up mongodb-org-tools (3.2.0) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-org (3.0.8) ...

Comment by Githook User [ 23/Sep/15 ]

Author:

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

Message: SERVER-18516 Use OS codename in Debian/Ubuntu repo 'Suite' field

(cherry picked from commit 3f8acecab74e520aa1f1564cd0512417a0f3c64e)
Branch: v3.0
https://github.com/mongodb/mongo/commit/1a45f2a48ba66421b51bde364e62e02e38595687

Comment by Githook User [ 19/Aug/15 ]

Author:

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

Message: SERVER-18516 Use OS codename in Debian/Ubuntu repo 'Suite' field
Branch: master
https://github.com/mongodb/mongo/commit/3f8acecab74e520aa1f1564cd0512417a0f3c64e

Comment by Ernie Hershey [ 21/May/15 ]

If I set the suite to "wheezy" it works (in Debian). Despite the error string it's actually comparing against the first part of the distribution, not the entire thing - so in this case I'll set it to "trusty" and that should work.

In this line in debmirror, it's comparing against $dist_raw, which is set here

Comment by patrice Damezin [ 20/May/15 ]

Hello,
here's the command we use :

debmirror -a amd64,i386 --progress --source -h repo.mongodb.org -s multiverse -d trusty/mongodb-org/3.0,trusty/mongodb-org/stable -r apt/ubuntu --method=http --rsync-extra=none --diff=none /mnt/data/mirrors/mongodb3/ubuntu

(we have no problem mirroring the previous repository (downloads-distro.mongodb.org) using debmirror :

debmirror -a amd64,i386 --progress --source -h downloads-distro.mongodb.org -s 10gen -d dist -r repo/ubuntu-upstart --method=http --rsync-extra=none --diff=none /mnt/data/mirrors/mongodb/ubuntu

Comment by Ernie Hershey [ 19/May/15 ]

I tried a test with the codename set to "wheezy/mongodb-org/3.1" instead of "wheezy/mongodb-org" and got this error running apt-get update:

W: Conflicting distribution: http://xxxxxxx wheezy/mongodb-org/3.1 Release (expected wheezy/mongodb-org but got wheezy/mongodb-org/3.1)

patphobos can you share the exact debmirror command line you're using so I can reproduce the error and work on a fix? Perhaps changing the Suite field instead of the Codename will fix the problem without causing this new error.

Comment by patrice Damezin [ 18/May/15 ]

Sorry for the wrong category. As it concern only packaging, i didn't know witch category was the better.

Comment by Ernie Hershey [ 18/May/15 ]

Does this need to be in SECURITY? Can we move to SERVER?

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