Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: network error while attempting to run command 'isMaster' on host '127.0.0.1:27017'

Tags:

mongodb

enter image description here .> mongo

MongoDB shell version v3.6.5
connecting to: mongodb://127.0.0.1:27017
2018-06-26T17:37:13.313+0530 I NETWORK  [thread1] Socket recv() An established connection was aborted by the software in your host machine. 127.0.0.1:27017
2018-06-26T17:37:13.313+0530 I NETWORK  [thread1] SocketException: remote: (NONE):0 error: SocketException socket exception [RECV_ERROR] server [127.0.0.1:27017]
2018-06-26T17:37:13.313+0530 E QUERY    [thread1] Error: network error while attempting to run command 'isMaster' on host '127.0.0.1:27017'  :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed
like image 917
Amit Nayak Avatar asked Jun 26 '18 12:06

Amit Nayak


1 Answers

This problem can happen when trying to connect to a database which requires SSL.

like image 96
Salem Avatar answered Sep 19 '22 12:09

Salem