MongoDB in Ubuntu - pengj/Node-Memo GitHub Wiki

connected exception

the error: Error: couldn't connect to server 127.0.0.1 shell/mongo.js:79 exception: connect failed

fix url: http://www.synchrosinteractive.com/blog/1-software/47-mongodb-repair-on-ubuntu

In detail: Manually remove the lockfile: sudo rm /var/lib/mongodb/mongod.lock

Run the repair script: sudo -u mongodb mongod -f /etc/mongodb.conf --repair

Run the mongo server sudo service mongodb start

check the mongo status sudo service mongodb status