Posts

Showing posts from January, 2016

MongoDB Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused

mongo MongoDB shell version: 3.0.7 connecting to: test 2016-01-23T21:14:51.955+0530 W NETWORK  Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused 2016-01-23T21:14:51.957+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      [initandlisten] 

***aborting after invariant() failure


Solution:
Run mongodb with sufficient permissions.

$ sudo mongod