Skip to content

Restarting Repairing Mongo

Giulio Gratta edited this page Mar 2, 2015 · 2 revisions

Sometimes mongo doesn't start up correctly, and there's a meme floating around that people can run:

sudo mongod --repair --dbpath /edx/var/mongo/mongodb

to fix their instance when Mongo refuses to start up because of database synching problems. This is good.

But people have also been manually invoking mongo like this:

sudo mongod --dbpath /edx/var/mongo/mongodb

I contend that this inferior to invoking mongo like this:

sudo mongod -f /etc/mongodb.conf

This will make sure that the same database gets used, but will also put logs in the places you expect them.

Clone this wiki locally