Unable to start MongoDB on Ubuntu 10.10

Solution 1:

If you haven't done so, create a data directory as described at http://www.mongodb.org/display/DOCS/Quickstart+Unix

Check the contents of /etc/mongodb.conf

I would try running the mongodb executable directly and pass it command line options

  • -v -v -v
  • --logpath /tmp/mongotest

and anything else that seems useful from http://www.mongodb.org/display/DOCS/Command+Line+Parameters

Solution 2:

check if there's any mongo.lock file in /var/lib/mongo/ dir or your MONGOLIBDIR setting and remove it.

You should then be able to start the mongodb service.