From last few days, I am facing connectivity issues with MongoDB Replica Sets deployed in google cloud. Interesting fact is these issues are appeared at Development machines and not on the production. Most common issues are:
- Cannot connect to replica set "xxx"[xxx:27017]. Set's primary is
unreachable. - A primary with different host name [:27017] found in
server side. Different members found under same replica set name
"XXX"
These error are appeared frequently. How to resolve this?
Best Answer
As per Robomongo Tool error shows like that
As per github blog documentation here it seems like the problem is Robomongo cannot learn the
set name
which is a critical information for connections to replica sets.For Example Workaround
For further your ref here