
OPERATIONAL DEFECT DATABASE
...

...
vagrant@precise64:~$ sudo service mongodb start mongodb: unrecognized service 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.
dogmatic69 commented on Thu, 13 Nov 2014 10:36:48 +0000: 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 Linux hostname.dh.bytemark.co.uk 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2 x86_64 GNU/Linux $ mongo --version MongoDB shell version: 2.6.5 $ ls -al /etc/init.d/mongod lrwxrwxrwx 1 root root 21 Oct 8 18:25 /etc/init.d/mongod -> /lib/init/upstart-job $ cat /etc/init.d/mongod (nothing here) The output from the install: $ sudo apt-get install mongodb-org Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libaudio2 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libmng1 libmysqlclient18.1 libnet-daemon-perl liborc-0.4-0 libplrpc-perl libqt4-network libqt4-xml libqtcore4 libqtdbus4 libqtgui4 libqtwebkit4 ruby-trollop Use 'apt-get autoremove' to remove them. 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 1 not upgraded. Need to get 0 B/115 MB of archives. After this operation, 290 MB of additional disk space will be used. Do you want to continue [Y/n]? y Selecting previously unselected package mongodb-org-shell. (Reading database ... 67628 files and directories currently installed.) Unpacking mongodb-org-shell (from .../mongodb-org-shell_2.6.5_amd64.deb) ... Selecting previously unselected package mongodb-org-server. Unpacking mongodb-org-server (from .../mongodb-org-server_2.6.5_amd64.deb) ... Selecting previously unselected package mongodb-org-mongos. Unpacking mongodb-org-mongos (from .../mongodb-org-mongos_2.6.5_amd64.deb) ... Selecting previously unselected package mongodb-org-tools. Unpacking mongodb-org-tools (from .../mongodb-org-tools_2.6.5_amd64.deb) ... Selecting previously unselected package mongodb-org. Unpacking mongodb-org (from .../mongodb-org_2.6.5_amd64.deb) ... Processing triggers for man-db ... Setting up mongodb-org-shell (2.6.5) ... Setting up mongodb-org-server (2.6.5) ... insserv: script mongod is not an executable regular file, skipped! Setting up mongodb-org-mongos (2.6.5) ... Setting up mongodb-org-tools (2.6.5) ... Setting up mongodb-org (2.6.5) ... auto commented on Fri, 1 Nov 2013 15:29:52 +0000: Author: {u'username': u'shunwen', u'name': u'shunwen', u'email': u'hsiaoshunwen@gmail.com'} Message: Fixed debian/init.d typo introduced by SERVER-10871 Signed-off-by: Matt Kangas Branch: master https://github.com/mongodb/mongo/commit/991e6a89e5b05b4c6adb5252cb7f803785742f8d auto commented on Fri, 4 Oct 2013 17:26:14 +0000: Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'} Message: SERVER-10871 Change 'mongodb' to 'mongo' to mean the mongod process and service Branch: master https://github.com/mongodb/mongo/commit/09ffdcc9274e20b879710cdb5d1271a65e6c6470 tyler@10gen.com commented on Mon, 30 Sep 2013 15:47:32 +0000: 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. tyler@10gen.com commented on Mon, 30 Sep 2013 15:24:26 +0000: Starting mongod still doesn't work with the latest packages. It seems that there is an extra "--" in the init script exec line. ernie.hershey@10gen.com commented on Thu, 26 Sep 2013 22:17:58 +0000: 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. ernie.hershey@10gen.com commented on Tue, 24 Sep 2013 20:01:45 +0000: Okay, thanks. I'll look at this more. david.storch commented on Tue, 24 Sep 2013 19:49:50 +0000: "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 Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux vagrant@precise64:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise ernie.hershey@10gen.com commented on Tue, 24 Sep 2013 19:38:30 +0000: 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 SERVER-3579. If that works then I think all we need is documentation. david.storch commented on Tue, 24 Sep 2013 19:07:30 +0000: Discovered while performing testing for QA-223
On a fresh vagrant vm: 1) vagrant ssh 2) sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 3) echo 'deb http://distro-deb2.build.10gen.cc/rebrand/ubuntu-upstart/ dist mongodb' | sudo tee /etc/apt/sources.list.d/mongodb.list 4) sudo apt-get update 5) sudo apt-get install mongodb-org-unstable 6) sudo service mongodb start Expected result: mongodb service starts Actual result: vagrant@precise64:~$ sudo service mongodb start mongodb: unrecognized service
Click on a version to see all relevant bugs
MongoDB Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.