on-internet
← Community

Mongo::Error::NoServerAvailable: No primary server is available in cluster

Stack Overflow ·

I am getting the following error when deploying to production environment (via gitlab): Mongo::Error::NoServerAvailable: No primary server is available in cluster: #<Cluster topology= ReplicaSetNoPrimary[url1:27017,url2:27017,url3:27017,url4:27017,url5:27017,name=mobile01] servers=[ #<Server address=url1:27017 UNKNOWN>, #<Server address=url2:27017 UNKNOWN>, #<Server address=url3:27017 UNKNOWN>, #<Server address=url4:27017 UNKNOWN>, #<Server address=url5:27017 UNKNOWN>]> with timeout=30, LT=0.015 I have been trying to reproduce the error locally in a rails console, here is the configuration I h

Comments

Sign in or sign up to comment and upvote.

No comments yet.