Mongo: Couldn't Connect to Server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145

Problems with mongo lock?

$ sudo rm /var/lib/mongodb/mongod.lock
$ sudo service mongodb restart