Unable to connect to compass

i am getting error “no secondary found in replicaset or invalid replica set name” while connecting from mongo compass.

how to solve this.



What connection information are you giving to Compass? You don’t provide enough details here for me to give you much help. Notice that you must give Compass both the correct Hostname and the Replica Set Name.

Or of course you can follow the instructions and use the shell as suggested. :wink: