I have faced some problem after installing MongoDB on my Ubunutu 12.04. Here is the error .
Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84 exception: connect failed
I found some solution on google. Here it is.
sudo rm /var/lib/mongodb/mongod.lock
sudo -u mongodb mongod -f /etc/mongodb.conf --repair
sudo service mongodb start
Please read this for more detail. Continue reading Error on MongoDB: couldn’t connect to server 127.0.0.1 shell/mongo.js