Reputation: 58
Due to power outage my computer crahsed while working on rails3 app. My mongodb is not restarting ever since.
MongoDB shell version: 2.4.10
connecting to: test
Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145
exception: connect failed
Noticed after reboot /data/db is missing. Went ahead and created it, but for some reason it is still not starting. Appreciate inputs here
Upvotes: 1
Views: 310
Reputation: 1020
I think the issue is due to mongodb lock.
Try this:
sudo rm -rf /var/lib/mongodb/mongod.lock
and restart your service.
Upvotes: 1