[SERVER-18329] Add Debian 8 (Jessie) builds and associated package repository Created: 05/May/15  Updated: 23/Nov/16  Resolved: 11/Feb/16

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 3.0.13, 3.2.8, 3.3.2

Type: Improvement Priority: Major - P3
Reporter: Marco Franssen Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 20
Labels: code-and-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-24539 Ubuntu 16.04 packages for 3.2 do not ... Closed
is duplicated by SERVER-22213 Officially Support Debian 8 Closed
Related
related to DOCS-5337 Comment on: "manual/tutorial/install-... Closed
related to DOCS-7135 Comment on: "[v.2.6|v.3.0|v.3.2]/manu... Closed
related to DOCS-5497 Update Debian install instructions si... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Build 10 (02/19/16)
Participants:

 Description   

Please add a repository for debian jessie over here. Debian jessie is the current stable debian release which most people start using. Everyone who upgrades from wheezy will have issues with mongodb install.

http://repo.mongodb.org/apt/debian/dists/

I tried using the wheezy repository on jessie but that one does not get the mongodb-org package on jessie.



 Comments   
Comment by Githook User [ 13/Jun/16 ]

Author:

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

Message: SERVER-18329: fix backport of debian8 to match package lists
Branch: v3.2
https://github.com/mongodb/mongo/commit/ad674696e45c72af39f154f2424ac14ea2ee574f

Comment by Githook User [ 13/Jun/16 ]

Author:

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

Message: SERVER-18329: add debian8 packages to builds

(cherry picked from commit 5495e297c683a92da95cd6a6420dde99ad751df7)
Branch: v3.2
https://github.com/mongodb/mongo/commit/17c3285ca400ff407141ff981039c118629e572e

Comment by Githook User [ 13/Jun/16 ]

Author:

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

Message: SERVER-7285 SERVER-18329: add service file for debian packages

(cherry picked from commit 6f01e1c7555e39e3618953c3fc0a5c5c216be09b)
Branch: v3.2
https://github.com/mongodb/mongo/commit/d7d5d7a1cc444e39c645631044fb1663cee46f4a

Comment by Ramon Fernandez Marina [ 09/Jun/16 ]

zajca, unfortunately we're unable to provide Debian 8 packages for 2.6 at this time. You may want to explore other options, like using tarballs and/or mongodump/mongorestore. If you need assistance on that front please post on mongodb-user group.

Thanks,
Ramón.

Comment by Martin Zajic [ 01/Mar/16 ]

Ramon Fernandez, my comment is related to this issue, documentation which you references is for debian 7 not debian 8 which is discussed here.
So if you have installed mongo from official debian 8 repositories (which you most probably have because there is no other choice) you don't have choice how to upgrade to 2.6

I suggest backport 2.6 to allow user switch from official 2.4 version

Comment by Ramon Fernandez Marina [ 01/Mar/16 ]

zajca, please note you first need to upgrade to 2.6, where the package names are different.

Note also that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources.

Regards,
Ramón.

Comment by Martin Zajic [ 29/Feb/16 ]

Hi guys,
this will bring issue for people who using mongodb from debian repository since only available mongo version in debian is 2.4.10. So there is no way to upgrade to 3.x.
Or am I wrong? Is there any way for me to upgrade?

Comment by Ernie Hershey [ 12/Feb/16 ]

A github user asked if we can include BOTH the systemd service and sysvinit file.

Doesn't this mean that the packages for Jessie will not contain the sysvinit script in addition to the systemd service file? Jessie changed the default to systemd, but sysvinit is still actively supported, so it would be neat/helpful if the package contained both to maintain compatibility. :smile:

Also - I downloaded nightly enterprise packages and did a quick smoke test of installing/starting/stopping/uninstalling from this evergreen compile and everything looks ok.

Comment by Githook User [ 11/Feb/16 ]

Author:

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

Message: SERVER-18329: add debian8 packages to builds
Branch: master
https://github.com/mongodb/mongo/commit/5495e297c683a92da95cd6a6420dde99ad751df7

Comment by Githook User [ 09/Feb/16 ]

Author:

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

Message: SERVER-7285 SERVER-18329: add service file for debian packages
Branch: master
https://github.com/mongodb/mongo/commit/6f01e1c7555e39e3618953c3fc0a5c5c216be09b

Comment by Chad Kreimendahl [ 18/Jan/16 ]

I would submit this mongod.service file via github, but I figure that does nothing to get it into the jessie package (which doesn't yet exist). Given that Jessie is now the current stable release, it would be great to get this in 3.2. I think the change below is rather quick and easy.

I don't know that this is any better, but it's what I'm going to use for the time being. It doesn't do all the ulimit stuff and numactl checking that you get with the init.d script, but it fits for now. This is a cut/paste from your RPM mongod.service file, presumably for your systemd RedHat implementations. I assume you could just rewrite your install script for jessie to update-rc.d mongod install this... and it'd be rather quick.

It's a rip of your code, but with the locations used on Debian vs RedHat:

  • /usr instead of /usr/local
  • mongodb user & group instead of mongod
  • no /var/run/mongod directory for mongod.pid

[Unit]
Description=High-performance, schema-free document-oriented database
 
[Service]
User=mongodb
Group=mongodb
Environment="OPTIONS=--quiet -f /etc/mongod.conf"
ExecStart=/usr/bin/mongod $OPTIONS run
PIDFile=/var/run/mongod.pid
 
[Install]
WantedBy=multi-user.target

Comment by Ernie Hershey [ 14/Jan/16 ]

I'm sorry I don't have a lot more detail to share. We've done additional testing and started planning necessary internal infrastructure.

Comment by Chad Kreimendahl [ 14/Jan/16 ]

Any update, Ernie?

Comment by Alex [ 07/Dec/15 ]

+1

a native Jessie package integrated with systemd would be very welcome

Comment by Tom Dworzanski [ 23/Oct/15 ]

I can confirm the Wheezy (Debian 7) repo seems fine for me as well on Jessie (Debian 8) based on the current instructions.

Based on my initial tests, systemd seems to be compatible with the init script /etc/init.d/mongod provided by the Wheezy package.

When this issue was created, the MongoDB repo instructions would not work because they used $(lsb_release -sc) to fill in the package source information. Since there was no Jessie package, filling in jessie would break the instructions as there is a package at repo.mongodb.com/.../wheezy, but not at repo.mongodb.com/.../jessie (yet). Ironically, when someone on the MongoDB team updated the code to explicitly specify wheezy, the instructions worked again.

Of course this isn't a good solution as using a package built for a previous version of Debian could have issues that are not obvious. The good news, though, is that it does not seem like much different to generate an official MongoDB Jessie package. The toughest part might be the systemd script. You'd think the official Debian repo would have a good systemd script for the Debian MongoDB package, but this is all it offers (for MongoDB version 2.4):

[Unit]
Description=An object/document-oriented database
Documentation=man:mongod(1)
 
[Service]
User=mongodb
ExecStart=/usr/bin/mongod --config /etc/mongodb.conf
 
[Install]
WantedBy=multi-user.target

That's obviously incomplete. I'll probably put something better together over the next week or two as I learn to administer MongoDB and contribute it as a suggestion. The init script could also be used, I guess, if taking on systemd is too much right now or if you guys are part of the (futile) resistance to systemd ( jk )

Comment by Ernie Hershey [ 21/Oct/15 ]

Hi - Thanks a lot for the feedback on interest in Debian Jessie. We've done some preliminary testing on it and will post here when we have more progress to report.

Comment by Christiano Anderson [ 11/Oct/15 ]

Using Debian 7 (Wheezy) repository works fine, but it doesn't use the new default init system (Systemd).

Since Debian 8 is the new stable distribution, it would be nice to provide native Debian 8 MongoDB packages.

Comment by Derick Rethans [ 28/May/15 ]

The instructions at: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/?_ga=1.188287976.1943177576.1336128512#install-mongodb won't work on jessie or sid either, as there is no corresponding repository at http://repo.mongodb.org/apt/debian/dists/

As they run fine, perhaps just add a symlink for them?

Comment by Roman [ 12/May/15 ]

using wheezy repository, setting default locale (en_US.UTF-8) and installing the mongodb-org-server first solved my problem:

echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
dpkg-reconfigure locales
apt-get update
apt-get install mongodb-org-server
apt-get install mongodb-org

I hope it helps someone.

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