Mongo no longer connects
MongoDB was running fine, but now it won’t connect. When I run
mongo, I get this message:
MongoDB shell version: 3.2.12 connecting to: test 2017-06-23T01:56:34.256-0400 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: errno:111 Connection refused 2017-06-23T01:56:34.256-0400 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:229:14 @(connect):1:6 exception: connect failed
I have tried restarting the mongod service, but that doesn’t help. Can you please guide me on how to debug this issue?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×