Unable to start mongo

Error: couldn't connect to server 127.0.0.1:27017 at scr/mongo/shell/mongo.js:145

Ian avatar
Written by Ian
Updated over a week ago
This error will be show if you have insufficient permission.



If experiencing this problem check the rights of 

/var/log/mongo

If they are incorrect, the mongodb user will not be able to write to this location and that can cause the server to fail to start

sudo chown mongodb /var/log/mongodb

can be run to correct this problem but also do check to see what actions may have been taken in the project to cause this change

Did this answer your question?