Primary Preferred Problem

When I open course’s cluster I see this message:

“An error occurred while loading navigation: ‘not master and slaveOk=false’: It is recommended to change your read preference in the connection dialog to Primary Preferred or Secondary Preferred or provide a replica set name for a full topology connection.”

The problem is that I already selected Primary Preferred in the Read Preference box.

What else can I do, please?

Here are few things you can try:

  1. add the following name “Cluster0-shard-0” under “Replica Set Name”
  2. exit Compass, kill the Compass process and restart it.
  3. download a more recent version of Compass.


I had originally copied the replica set name from the hostname, and I did not notice that the replica set name has a capital C at the beginning. I was getting the same error until I figured it out.