My Ubuntu computer had crashed, and when I restarted it MongoDB wasn\'t working. I tried the following commands, and got the following output:
$ mongo
Error:
This is probably not the best solution, but if you're desperate you can try this. It seemed that only the journal was a problem for me, so I took these steps:
After completing these steps (took less than 5 min), I was up and running and all data appeared to be ok.
all I had to do was run: sudo mongod --repair
then:
sudo mongod