[SERVER-17742] Support for Ubuntu 15.04 Created: 25/Mar/15  Updated: 31/May/16  Resolved: 26/Mar/15

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

Type: New Feature Priority: Major - P3
Reporter: Ernie Hershey Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: build-planning
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-20280 Ubuntu 15.4 compatible with mongodb 3.0 Closed
Related
related to SERVER-7285 Support systemd in future compatible ... Closed
related to DOCS-5192 Highlight that only Ubuntu LTS releas... Closed
Participants:

 Description   

Add new community and enterprise builds with associated new .deb packages.



 Comments   
Comment by Ramon Fernandez Marina [ 31/May/16 ]

LizanLycan, 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 Lizandro Zerpa [X] [ 28/May/16 ]

Excuse me, I have the same problem but does not work nothing is done, the same thing appears :
Failed to start mongod.service : Unit mongod.service not found.

Comment by Ernie Hershey [ 14/May/15 ]

It should start on boot by default. I bet that is a side effect of the sysv compatibility. If you have trouble with it starting on boot though, let us know.

Comment by Roman Gaufman [ 08/May/15 ]

Ah, thank you, that worked!

Mongod wasn't automatically started when installing mongodb-org - I am hoping it will start on boot though?

I tried to run this, but it fails:

sudo systemctl enable mongod
Synchronizing state for mongod.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d mongod defaults
Executing /usr/sbin/update-rc.d mongod enable
Failed to execute operation: No such file or directory

I am guessing this is also the side effect of using system V compatibility?

Comment by Ernie Hershey [ 08/May/15 ]

Hi hackeron - it should work if you run with "mongod" as the service name, not "mongodb." And there's no service file under /etc/systemd because it's using system V compatibility with an init script under /etc/init.d.

Comment by Roman Gaufman [ 08/May/15 ]

I installed the Debian wheezy version and I still cannot start the service with system:

  root@dev:~# systemctl start mongodb
  Failed to start mongodb.service: Unit mongodb.service failed to load: No such file or directory.
  root@dev:~# find /etc/systemd/ | grep -i mongo
  root@dev:~# 

Any ideas?

Comment by Sebastian Paul [ 07/May/15 ]

I think you're kind of killing the developer experience,
Developers like to use not only LTS releases, In fact i for example run ubuntu on the next (dev) version when they open development.

Why not just provide an addon-package that just installs the systemd scripts?

Comment by Stoney Meyerhoeffer [X] [ 01/May/15 ]

@Ernie Hershey - You just bailed me out from what I suspect would have been hours of headaches. Thank You Sir!

Comment by Ernie Hershey [ 26/Apr/15 ]

Another option is to run the Debian packages provided by MongoDB which should work in Vivid. The Ubuntu packages with Upstart configs don't work well under Systemd. That way you can run the latest stable version. I don't recommend using 2.6.3 for anything.

To use the debian packages, follow the Debian installation docs but replace the source list file update with this command:

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

Comment by Bruce Pieterse [ 26/Mar/15 ]

Thanks Ernie,

Just for reference for anybody that stumbles upon this, 15.04 currently has 2.6.3 of MongoDB and a working systemd service file. Downgrading to MongoDB 2.6.3 works fine. In my case I downgraded from 2.7.9.

Comment by Ernie Hershey [ 26/Mar/15 ]

Instead of this, we'll probably add support for 16.04, which will presumably be LTS.

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