Hi everyone,
Does someone have the answer to this question? I have the same problem and I fix “Connection refused” by ensuring that:
- Can ping each other (open port ICMP inbound)
- Same keyFile and chmod 400 (read-only)
But I still have error “stateStr” : “(not reachable/healthy)” and I check my mongod.log show error code 18 AuthenticationFailed. Details in the topic:
[MongoDB replicaSet error AuthenticationFailed (code 18)]
Many thanks!!