Skip to main content
Unable to start mongo

Error: couldn't connect to server 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 


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?