[SERVER-10871] starting mongodb as a service fails on ubuntu (precise) with new separated packages Created: 24/Sep/13 Updated: 11/Jul/16 Resolved: 04/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build, Packaging |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Storch | Assignee: | Ernie Hershey |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu, precise 64 |
||
| Issue Links: |
|
||||
| Operating System: | Linux | ||||
| Steps To Reproduce: | On a fresh vagrant vm: Expected result: mongodb service starts Actual result: |
||||
| Participants: | |||||
| Description |
|
vagrant@precise64:~$ sudo service mongodb start Starting mongodb as a service does not work when installing new mongodb-org-unstable package from http://distro-deb2.build.10gen.cc/rebrand/ubuntu-upstart/. See "Steps to Reproduce" for more information. It looks like the control script is missing: there is no /etc/init.d/mongodb. |
| Comments |
| Comment by carl [ 13/Nov/14 ] |
|
Hi Ernie, looks like that might just be the issue. Thanks |
| Comment by Ernie Hershey [ 13/Nov/14 ] |
|
Hi dogmatic69 - it looks like you may be installing the Ubuntu packages in Debian. What are the contents of /etc/apt/sources.list.d/mongodb.list on your system? Based on your uname, you should be using this page - http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/. This ticket is quite old and probably not actually related to the problem you're having. You'll probably get more/better help if you post to the mongodb-user mailing list instead - https://groups.google.com/forum/#!forum/mongodb-user. |
| Comment by carl [ 13/Nov/14 ] |
|
I just installed using the guide on the site and have the same issue. Not using unstable, just the latest stable apt-get install mongodb-org $ uname -a $ mongo --version $ ls -al /etc/init.d/mongod $ cat /etc/init.d/mongod The output from the install: $ sudo apt-get install mongodb-org |
| Comment by auto [ 01/Nov/13 ] |
|
Author: {u'username': u'shunwen', u'name': u'shunwen', u'email': u'hsiaoshunwen@gmail.com'}Message: Fixed debian/init.d typo introduced by Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> |
| Comment by auto [ 04/Oct/13 ] |
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: |
| Comment by Tyler Brock [ 30/Sep/13 ] |
|
Given my recent discussion with Ernie it seems like the "--" is appropriate and necessary to ensure that start-stop-daemon does not interpret the flags for mongo as its own. However the chuid user is incorrect: mongod vs mongodb (which we decided with akshay was better). Starting mongod fails because the logging directory, etc give permissions to the mongodb user instead of mongod as we previously had it. |
| Comment by Tyler Brock [ 30/Sep/13 ] |
|
Starting mongod still doesn't work with the latest packages. It seems that there is an extra "--" in the init script exec line. |
| Comment by Ernie Hershey [ 26/Sep/13 ] |
|
I think this has to do with the filename on the upstart config file, both in the repo and in the intermediate packaging staging directory packager.py and packager-enterprise.py use. I have a change I'm re-generating packages with now. I'll also put up a code review to see what changes I made after I get new packages generated. |
| Comment by Ernie Hershey [ 24/Sep/13 ] |
|
Okay, thanks. I'll look at this more. |
| Comment by David Storch [ 24/Sep/13 ] |
|
"sudo service mongod start" also does not work. The mongodb init.d script is entirely missing, so I don't think it's a naming problem. The same problem does not appear on Redhat, so maybe it has to do with the code that was moved into the rpm/mongo-10gen-unstable.spec file as shown in the code review for the original server ticket (http://codereview.10gen.com/10571011). See below for the uname and lsb_release output. vagrant@precise64:~$ uname -a vagrant@precise64:~$ lsb_release -a |
| Comment by Ernie Hershey [ 24/Sep/13 ] |
|
Nice, thanks! Can you include the output of 'uname -a' and 'lsb_release -a' in general to make it easier to correlate "precise" to "12.04" ? I always use numbers and forget which version is which. Also we'll have exact versions on record that way. It should work as "mongod" instead of "mongodb" which is a change as part of |
| Comment by David Storch [ 24/Sep/13 ] |
|
Discovered while performing testing for QA-223 |