I am not able to load LoadMovieDetailsDataset into Atlas Cluster0

Hello ,

I am not able to load “loadmoviedetailsdataset” into Atlas Cluster0 , I have MongoDB version 3.6.14 and Mongo Cluster Version is 4.0.13, please assist on the below issue

C:\Users\SwathiRaghu>mongo “mongodb+srv://cluster0-na6i9.mongodb.net/test” --username m001-student --password m001-mongodb-basics
MongoDB shell version v3.6.14
connecting to: mongodb://cluster0-shard-00-00-na6i9.mongodb.net.:27017,cluster0-shard-00-01-na6i9.mongodb.net.:27017,cluster0-shard-00-02-na6i9.mongodb.net.:27017/test?authSource=admin&gssapiServiceName=mongodb&replicaSet=Cluster0-shard-0&ssl=true
2019-11-09T12:59:24.974-0600 I NETWORK [thread1] Starting new replica set monitor for Cluster0-shard-0/cluster0-shard-00-00-na6i9.mongodb.net.:27017,cluster0-shard-00-01-na6i9.mongodb.net.:27017,cluster0-shard-00-02-na6i9.mongodb.net.:27017
2019-11-09T12:59:25.287-0600 I NETWORK [ReplicaSetMonitor-TaskExecutor-0] Successfully connected to cluster0-shard-00-01-na6i9.mongodb.net.:27017 (1 connections now open to cluster0-shard-00-01-na6i9.mongodb.net.:27017 with a 5 second timeout)
2019-11-09T12:59:25.287-0600 I NETWORK [thread1] Successfully connected to cluster0-shard-00-02-na6i9.mongodb.net.:27017 (1 connections now open to cluster0-shard-00-02-na6i9.mongodb.net.:27017 with a 5 second timeout)
2019-11-09T12:59:25.627-0600 I NETWORK [thread1] Successfully connected to cluster0-shard-00-00-na6i9.mongodb.net.:27017 (1 connections now open to cluster0-shard-00-00-na6i9.mongodb.net.:27017 with a 5 second timeout)
2019-11-09T12:59:25.690-0600 I NETWORK [thread1] changing hosts to Cluster0-shard-0/cluster0-shard-00-00-na6i9.mongodb.net:27017,cluster0-shard-00-01-na6i9.mongodb.net:27017,cluster0-shard-00-02-na6i9.mongodb.net:27017 from Cluster0-shard-0/cluster0-shard-00-00-na6i9.mongodb.net.:27017,cluster0-shard-00-01-na6i9.mongodb.net.:27017,cluster0-shard-00-02-na6i9.mongodb.net.:27017
2019-11-09T12:59:25.882-0600 I NETWORK [ReplicaSetMonitor-TaskExecutor-0] Successfully connected to cluster0-shard-00-00-na6i9.mongodb.net:27017 (1 connections now open to cluster0-shard-00-00-na6i9.mongodb.net:27017 with a 5 second timeout)
2019-11-09T12:59:25.916-0600 I NETWORK [thread1] Successfully connected to cluster0-shard-00-02-na6i9.mongodb.net:27017 (1 connections now open to cluster0-shard-00-02-na6i9.mongodb.net:27017 with a 5 second timeout)
2019-11-09T12:59:26.343-0600 I NETWORK [thread1] Marking host cluster0-shard-00-00-na6i9.mongodb.net:27017 as failed :: caused by :: Location40659: can’t connect to new replica set master [cluster0-shard-00-00-na6i9.mongodb.net:27017], err: Location8000: bad auth Authentication failed.
2019-11-09T12:59:26.447-0600 I NETWORK [ReplicaSetMonitor-TaskExecutor-0] Successfully connected to cluster0-shard-00-01-na6i9.mongodb.net:27017 (1 connections now open to cluster0-shard-00-01-na6i9.mongodb.net:27017 with a 5 second timeout)
2019-11-09T12:59:26.462-0600 I NETWORK [thread1] Marking host cluster0-shard-00-02-na6i9.mongodb.net:27017 as failed :: caused by :: Location11002: can’t authenticate against replica set node cluster0-shard-00-02-na6i9.mongodb.net:27017: socket exception [CONNECT_ERROR] for cluster0-shard-00-02-na6i9.mongodb.net:27017
2019-11-09T12:59:26.622-0600 I NETWORK [thread1] Marking host cluster0-shard-00-01-na6i9.mongodb.net:27017 as failed :: caused by :: Location11002: can’t authenticate against replica set node cluster0-shard-00-01-na6i9.mongodb.net:27017: socket exception [CONNECT_ERROR] for cluster0-shard-00-01-na6i9.mongodb.net:27017
2019-11-09T12:59:27.012-0600 I NETWORK [thread1] Marking host cluster0-shard-00-00-na6i9.mongodb.net:27017 as failed :: caused by :: Location40659: can’t connect to new replica set master [cluster0-shard-00-00-na6i9.mongodb.net:27017], err: Location8000: bad auth Authentication failed.
2019-11-09T12:59:27.014-0600 E QUERY [thread1] Error: can’t authenticate against replica set node cluster0-shard-00-00-na6i9.mongodb.net:27017: can’t connect to new replica set master [cluster0-shard-00-00-na6i9.mongodb.net:27017], err: Location8000: bad auth Authentication failed. :
connect@src/mongo/shell/mongo.js:263:13
@(connect):1:6
exception: connect failed

C:\Users\SwathiRaghu>

I am not able to connect to the Cluster0 , I am using below command

mongo “mongodb+srv://cluster0-na6i9.mongodb.net/test” --username m001-student

Getting network/DNShost not found error
I tried even long string command
What is the status of your Sandbox cluster in Atlas
Is it failing with both Compass and shell?
Were you able to connect before or trying for first time?

Hi @Raghu_15789,

Authentication failed means the username and password that you have entered is incorrect. Can you please make sure you have entered the correct username and password ?

If in case you have forgot the credentials of this user then you can delete this user and create a new user by following the steps mentioned below.


Click on the “Database Access” tab and then click on “ADD NEW USER”.

Create a user with the following credentials:

  • username: m001-student
  • password: m001-mongodb-basics

Give this user the privilege to Read and write to any database:

Note: : Please delete the existing user m001 before creating the new user withe the same username otherwise it will throw an error.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

yeah it worked

Thanks,

Raghu