6

I'm using Robo 3T (robomongo) to connect mongo cluster. I'm having this error while editing/deleting a document.

Error when saving document: 1 Not primary while writing to db

I googled for this error, many of the solution saying connect to Primary cluster but I don't know How?

lazzy_ms
  • 1,169
  • 2
  • 18
  • 40
  • Did you select Type: Replica Set in connection dialog? Using new type of connection string? Maybe screenshot your connection dialog might help – Dominic Feb 14 '19 at 11:06

1 Answers1

6

You need to set connection string of primary cluster like this:

1) login to mongo cluster

2) click on cluster

enter image description here

3) click on primary name

enter image description here

4) add primary cluster name as a connection string in robomongo.

enter image description here

Harsh Patel
  • 6,334
  • 10
  • 40
  • 73