mongodb, replicates and error: { “$err” : “not master and slaveOk=false”, “code” : 13435 }

前端 未结 8 1458
遥遥无期
遥遥无期 2020-11-30 17:24

I tried mongo replica sets for the first time.

I am using ubuntu on ec2 and I booted up three instances. I used the private IP address of each of the instances. I p

8条回答
  •  佛祖请我去吃肉
    2020-11-30 17:49

    I am just adding this answer for an awkward situation from DB provider.

    what happened in our case is the primary and secondary db shifted reversely (primary to secondary and vice versa) and we are getting the same error.

    so please check in the configuration settings for database status which may help you.

提交回复
热议问题