[SERVER-32396] mongo shell failed to connect with 3.6 connection string SRV Created: 19/Dec/17 Updated: 30/Oct/23 Resolved: 20/Dec/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.6.0 |
| Fix Version/s: | 3.6.2, 3.7.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Wan Bachtiar | Assignee: | ADAM Martin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v3.6
|
||||||||
| Steps To Reproduce: | 1. Create/Open MongoDB Atlas Free Tier cluster |
||||||||
| Sprint: | Platforms 2018-01-01 | ||||||||
| Participants: | |||||||||
| Description |
|
Failed to connect using mongo shell to MongoDB Atlas (M0 Free Tier) using the new 3.6. connection URI. Currently in MongoDB Atlas a user is provided with two option to connect, shell 3.6 or later and shell 3.4. or earlier. Using mongo shell version 3.6.0 and 3.6.1-rc0, returns below:
Also tried a different format of mongo "mongodb+srv://<username>:<password>@servername-nesbp.mongodb.net/test" --authenticationDatabase admin with no success. You can observe in the 'starting new replica set monitor' message when using the DNS lookup (3.6 SRV), it returns an extra dot (FQDN). May or may not be related However, using the alternative URI version 3.4 or earlier works:
Testing the same SRV connection using PyMongo v3.6 works fine.
Looking at the Python driver code, it omits the final dot before returning hosts Compared to mongo shell code: |
| Comments |
| Comment by Githook User [ 27/Dec/17 ] |
|
Author: {'email': 'adam.martin@10gen.com', 'username': 'adamlsd', 'name': 'ADAM David Alan Martin'}Message: OpenSSL makes requests with the exact string passed as an SNI. This (cherry picked from commit 149bf3944a6d372e9e7d1c3c16a543fbd3c656f2) |
| Comment by Githook User [ 20/Dec/17 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}Message: OpenSSL makes requests with the exact string passed as an SNI. This |
| Comment by Daniel Pasette (Inactive) [ 19/Dec/17 ] |
|
I can confirm I'm getting the same error from linux on 3.6.0-rc1. Thanks for the detailed report Wan. |