Hi, I am new to Mongo and I have encountered this error in the log of a newly installed database;
:27017","error":"HostUnreachable: Error connecting to mongo3:27017 (127.0.0.1:27017) :: caused by :: Connection refused","replicaSet":"bart","isMasterReply":"{}"}}
{"t":{"$date":"2021-03-01T20:01:18.991+01:00"},"s":"I", "c":"NETWORK", "id":4712102, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":
"Host failed in replica set","attr":{"replicaSet":"bart","host":"mongo3:27017","error"
:{"code":6,"codeName":"HostUnreachable","errmsg":"Error connecting to mongo3:27017 (127.0.0.1:27017) :: caused by :: Connection refused"},
"action":{"dropConnections":true,"requestImmediateCheck":false,"outcome":{"host":"mongo3:27017","success":false,"errorMessage":"HostUnreachable:
Error connecting to mongo3:27017 (127.0.0.1:27017) :: caused by :: Connection refused"}}}}
From what I understand the error is that access is denied by ip 127.0.0.1. In mongod.conf, bindIp is defined: 102.101.232.214.
-
What is the cause of this error, how can it be solved?
-
Can I include multiple ips (add 127.0.0.1) in bindip parameter?
Thanks indeed
Antonio