Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-296

Intermittent "ERROR while connecting to database. Error: Error: No valid replicaset instance servers found"

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      Nodejs, ubuntu(14.04) amazon ec2 instance.Also I'm using load balancer.

      I'm using replicaset with 2 nodes(primary and secondary) and 1 arbiter(total 3).
      Sometimes I get "ERROR while connecting to database. Error: Error: No valid replicaset instance servers found" .I'm not able to reproduce(as it happens on its own and sometimes very frequently).I've added server.on('error',) event to debug but sometimes in my local environment it prints something like connection error printing 1 of the member host name(though I don't know whether it is related to my problem).
      When I connect to one of the instance through mongo shell and check rs.status() I get everything fine,with all members healthy and up.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            shobhit.mishra Shobhit Mishra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: