user3490997
user3490997

Reputation: 58

mongodb not starting after reboot for my rails3 app

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

Answers (1)

user944938
user944938

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

Related Questions