Chapter 1 connecting to shell issue

I have everything set up correctly, I had to completely delete all my old info and clusters to get this setup for the shell, and yet I can’t get access. Is there a particular database I need to use? My connection string has myFirstDatabase but I’ve also tried sandbox and a created database named m001. My username, password and allowed IP are all correct. Just keeps failing both request.

Hi @Tony_Abele,

Kindly share the screenshot of the IDE with the error msg, so we can filter out the exact reason behind your issue.

Thanks,
Kushagra

I’ve also tested locally on mongoshell and have access using same info, and yes I have allowed ip 0.0.0.0/0.

Hi @Tony_Abele,

Kindly share the screenshot of the IDE with the error msg and the command you used to connect to the Atlas cluster, so we can filter out the exact reason behind your issue.

And, we can there is no issue within your local shell accessing the cloud cluster.
But you have to use IDE to connect to the cluster in order to pass the lab within the course.

All the Best,
Kushagra

I don’t know if this is helpful…I of course know what is required to pass this part, which is why I am frustrated with such a simple task(that i have done many times before) And it was as I feared I needed to change database to admin. You guys should really update the lab page with that info, or even post the link to this FAQ on the lab itself. Would have saved me a lot of time that I have wasted.

Hi @Tony_Abele,

We at MongoDB University, always strive to make the learning experience super fun and challenging but not frustrating. So, we apologise for the inconveniences caused to you.

Meanwhile, thank you for your suggestion, we will surely look into this.

For now, there is no any specific database to connect within the IDE to pass that lab, just connection to the cloud cluster need to be authenticated and connected. And, similarly to the second task username should be m001-student.

Kindly cross check again. We really appreciate your patience on this.

All the Best,
Kushagra

Yes the following is very useful.

Because we can see what you typed. We can see the error you got.

You need to close this because I already fixed this issue, no thanks to you or whoever the hell Steeve is! The lab needs to say change /myFirstDatabase to admin for the IDE shell to work. Which was my exact question in the first post…bye.

Hi @Tony_Abele,

We understand your frustration here, but we don’t want to misinform any learners out there.

So, I passed the same lab using the myFirstDatabase db, which I earlier mentioned that db name doesn’t matter for this lab.

user@M001# mongo "mongodb+srv://sandbox.hdrnf.mongodb.net/myFirstDatabase" --username m001-student
MongoDB shell version v4.0.5
Enter password: 
connecting to: mongodb://sandbox-shard-00-01.hdrnf.mongodb.net.:27017,sandbox-shard-00-02.hdrnf.mongodb.net.:27017,sandbox-shard-00-00.hdrnf.mongodb.net.:27017/myFirstDatabase?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-5dyod8-shard-0&ssl=true
2021-06-04T08:11:29.856+0000 I NETWORK  [js] Starting new replica set monitor for atlas-5dyod8-shard-0/sandbox-shard-00-01.hdrnf.mongodb.net.:27017,sandbox-shard-00-02.hdrnf.mongodb.net.:27017,sandbox-shard-00-00.hdrnf.mongodb.net.:27017
2021-06-04T08:11:29.907+0000 I NETWORK  [ReplicaSetMonitor-TaskExecutor] Successfully connected to sandbox-shard-00-02.hdrnf.mongodb.net.:27017 (1 connections now open to sandbox-shard-00-02.hdrnf.mongodb.net.:27017 with a 5 second timeout)
2021-06-04T08:11:29.907+0000 I NETWORK  [js] Successfully connected to sandbox-shard-00-01.hdrnf.mongodb.net.:27017 (1 connections now open to sandbox-shard-00-01.hdrnf.mongodb.net.:27017 with a 5 second timeout)
2021-06-04T08:11:29.908+0000 I NETWORK  [ReplicaSetMonitor-TaskExecutor] changing hosts to atlas-5dyod8-shard-0/sandbox-shard-00-00.hdrnf.mongodb.net:27017,sandbox-shard-00-01.hdrnf.mongodb.net:27017,sandbox-shard-00-02.hdrnf.mongodb.net:27017 from atlas-5dyod8-shard-0/sandbox-shard-00-00.hdrnf.mongodb.net.:27017,sandbox-shard-00-01.hdrnf.mongodb.net.:27017,sandbox-shard-00-02.hdrnf.mongodb.net.:27017
2021-06-04T08:11:29.922+0000 I NETWORK  [ReplicaSetMonitor-TaskExecutor] Successfully connected to sandbox-shard-00-02.hdrnf.mongodb.net:27017 (1 connections now open to sandbox-shard-00-02.hdrnf.mongodb.net:27017 with a 5 second timeout)
2021-06-04T08:11:29.925+0000 I NETWORK  [js] Successfully connected to sandbox-shard-00-01.hdrnf.mongodb.net:27017 (1 connections now open to sandbox-shard-00-01.hdrnf.mongodb.net:27017 with a 5 second timeout)
2021-06-04T08:11:29.963+0000 I NETWORK  [ReplicaSetMonitor-TaskExecutor] Successfully connected to sandbox-shard-00-00.hdrnf.mongodb.net:27017 (1 connections now open to sandbox-shard-00-00.hdrnf.mongodb.net:27017 with a 5 second timeout)
Implicit session: session { "id" : UUID("2f8172e3-a3ee-4299-8a49-ec49b24b1504") }
MongoDB server version: 4.4.6
WARNING: shell and server versions do not match
MongoDB Enterprise atlas-5dyod8-shard-0:PRIMARY> show dbs
admin               0.000GB
local               3.196GB
m001                0.000GB
sample_airbnb       0.051GB
sample_analytics    0.009GB
sample_geospatial   0.001GB
sample_mflix        0.041GB
sample_restaurants  0.006GB
sample_supplies     0.001GB
sample_training     0.046GB
sample_weatherdata  0.003GB
test                0.000GB
MongoDB Enterprise atlas-5dyod8-shard-0:PRIMARY>` 

NOW,

After hitting Run Test Button, I got confirmed that I have successfully passed both the task of this lab.

We wish you good luck with the rest of the course.
Kindly feel free to reach out in case of any queries or doubts.

Thanks,
Kushagra