-
Notifications
You must be signed in to change notification settings - Fork 164
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
Can't connect to a mongo cluster(by IPs) which address is behind a vpn #487
Comments
Oh.... I get similar issue in #478, but in my scenario, I doubt it's because of my mongodb version too low... |
Try using direct connection. |
I don't understand how that option could potentially help. But I tried and got the same result. |
It tells the client not to try to do network topology discovery or any of that stuff and just connect to the given ip/domain. It worked for me, at least. |
The Server Discovery and Monitoring specification (SDAM) requires that drivers connect to and monitor the address provided in the It's possible that the addresses provided via the URI are different than the ones the servers report themselves as being located at, and the driver can't reach the self-reported addresses. When you connect with the shell and run |
Addresses are the same. BTW, I also tried to connect to the mentioned replica set via node.js application(mongodb npm package) and successfully connected(the same connection uri + |
So the issue appears to be that the DNS name provided isn't considered valid according to the TLS libraries the driver uses ( If they are formatted correctly but are just in a format that |
Seems that the issue is related to jasonish/evebox#148. |
Yeah that does seem to be the same issue, the root of which is briansmith/webpki#54. Since this is an issue with the underlying TLS library, I'm going to close it in favor of #499. Hopefully using the SRV URI will work for you, and please let us know if you have any further questions! |
Hi,
I'm trying to connect to a replica set by IPs which is behind VPN.
I receive the following error:
mongo-rust-driver version: 2.0.0
MongoDB version: 3.6.20
using mongo shell with the following format I can successfully connect(self signed cert is used):
What I'm doing wrong?
The text was updated successfully, but these errors were encountered: