i am using mongo 3.0.2 version suddenly, i have got a problem in mongodb. Till yesterday mongodb is running fine. but today when i start mongo then it gives the following error.
2015-04-29T10:57:47.732+0530 W NETWORK Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2015-04-29T10:57:47.733+0530 E QUERY Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed
at connect (src/mongo/shell/mongo.js:179:14)
at (connect):1:6 at src/mongo/shell/mongo.js:179
exception: connect failed
i have checked on internet. deleted the mongo lock file. but didn't resolve the problem yet.
when i check the service is show waiting and after start it doen't start as
service mongod status
mongod stop/waiting
sudo service mongod start
mongod start/running, process 2520
service mongod status
mongod stop/waiting
and anyone help to solve it out and explain why this problem occur.