[SERVER-33941] 3.7 master MongoDB Shell cannot connect to Atlas Free Tier Created: 16/Mar/18  Updated: 29/Oct/23  Resolved: 02/Apr/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.7.2
Fix Version/s: 3.7.4

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2018-04-09
Participants:

 Description   

When I try to connect to Atlas Free Tier, it retries endlessly:

> ./mongo "mongodb+srv://<XXXXXX>.mongodb.net/test" --username <USER>
MongoDB shell version v3.7.2-424-gf60edb06e7
Enter password:
connecting to: mongodb+srv://<XXXXXX>.mongodb.net/test
2018-03-16T15:26:00.956-0400 I NETWORK  [js] Starting new replica set monitor for Cluster0-shard-0/<XXXXXXXX>.mongodb.net.:27017,<XXXXXXXX>.mongodb.net.:27017,<XXXXXXXX>.mongodb.net.:27017
2018-03-16T15:26:01.156-0400 W NETWORK  [js] Unable to reach primary for set Cluster0-shard-0
2018-03-16T15:26:01.156-0400 I NETWORK  [js] Cannot reach any nodes for set Cluster0-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2018-03-16T15:26:01.761-0400 W NETWORK  [js] Unable to reach primary for set Cluster0-shard-0
2018-03-16T15:26:01.761-0400 I NETWORK  [js] Cannot reach any nodes for set Cluster0-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.
2018-03-16T15:26:02.363-0400 W NETWORK  [js] Unable to reach primary for set Cluster0-shard-0
2018-03-16T15:26:02.363-0400 I NETWORK  [js] Cannot reach any nodes for set Cluster0-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
^C
2018-03-16T15:26:02.918-0400 E -        [main] Error saving history file: FileOpenFailed: Unable to open() file : No such file or directory
2018-03-16T15:26:02.918-0400 I CONTROL  [main] shutting down with code:0

By comparing against a working implementation, it is clear that the `server_name` extension is not sent in `ClientHello`:

Example of correct extension:

            Extension: server_name (len=43)
                Type: server_name (0)
                Length: 43
                Server Name Indication extension
                    Server Name list length: 41
                    Server Name Type: host_name (0)
                    Server Name length: 38
                    Server Name: xxxxxxxxxxxxxxxxxxxxxxxxxx.mongodb.net



 Comments   
Comment by Githook User [ 29/Mar/18 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}

Message: SERVER-33941 Add SNI support for all ASIO SSL engines
Branch: master
https://github.com/mongodb/mongo/commit/c6ee159c915ce44ed095adc0b371bc4226b68ec6

Comment by Gregory McKeon (Inactive) [ 22/Mar/18 ]

Bumped to "3.7 Required".

Generated at Thu Feb 08 04:35:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.