-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect to a replica set using 5.11.12 #9836
Comments
My best guess is that this is a host name issue. I'll look into this some more, but I think that's the issue since the individual MongoDB servers think their hostname is something like |
@vkarpov15 thank you for your response. That is a good point. I investigated it a lot since per their docs they say to provide
Now, I do have the external ports, I do have the IP, but it is not clear what specifically is the I was curious since |
I may have encountered the same problem, v5.10.9 is working for me, but v5.11.14 I can not connect to my single node replica set. |
@MihaiPerju Can you try appending |
@jooeycheng mongoose v5.11.13 |
I'm going to close this one since it looks like the servers are no longer available. As far as I can tell, this is an issue with replica set host names, you need to make sure that the host names in |
I am running my own MongoDb Replica Set on Kubernetes.
It has 3 members, I exposed them all via NodePort.
I can connect to it via shell:
(feel free to connect, it's an empty, isolated example that will be destroyed)
However, I cannot connect to it via mongoose 5.11.12 using the same connection string.
It only works until mongoose 4.5.8
I tried tons of configurations,
gssapiServiceName=mongodb
,replicaSetName=thirty3
(I checked the replica set name by runningrs.conf()
) and many more other configurations.My question is - is there something wrong with mongoose handling these types of communications?
I have found similar issues that indicate downgrading as a solution, but downgrading is not ideal unless impossible to fix it normally.
Please try the code samples above, the database is open for connections with the credentials exposed.
The text was updated successfully, but these errors were encountered: