Chapter 1, setup issue

Hello,

I’m trying to connect to my cluster, and this is the output I get:

MongoDB shell version v4.0.5
connecting to: mongodb://cluster0-shard-00-01-15god.mongodb.net.:27017,cluster0-shard-00-00-15god.mongodb.net.:27017,cluster0-shard-00-02-15god.mongodb.net.:27017/test?authSource=
dmin&gssapiServiceName=mongodb&replicaSet=Cluster0-shard-0&ssl=true
2019-01-16T20:08:31.838+0100 I NETWORK [js] Starting new replica set monitor for Cluster0-shard-0/cluster0-shard-00-01-15god.mongodb.net.:27017,cluster0-shard-00-00-15god.mongodb
net.:27017,cluster0-shard-00-02-15god.mongodb.net.:27017
2019-01-16T20:08:32.135+0100 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to cluster0-shard-00-01-15god.mongodb.net.:27017 (1 connections now open to cluster
-shard-00-01-15god.mongodb.net.:27017 with a 5 second timeout)
2019-01-16T20:08:32.144+0100 I NETWORK [js] Successfully connected to cluster0-shard-00-02-15god.mongodb.net.:27017 (1 connections now open to cluster0-shard-00-02-15god.mongodb.
et.:27017 with a 5 second timeout)
2019-01-16T20:08:32.159+0100 I NETWORK [ReplicaSetMonitor-TaskExecutor] changing hosts to Cluster0-shard-0/cluster0-shard-00-00-15god.mongodb.net:27017,cluster0-shard-00-01-15god
mongodb.net:27017,cluster0-shard-00-02-15god.mongodb.net:27017 from Cluster0-shard-0/cluster0-shard-00-00-15god.mongodb.net.:27017,cluster0-shard-00-01-15god.mongodb.net.:27017,cl
ster0-shard-00-02-15god.mongodb.net.:27017
2019-01-16T20:08:32.298+0100 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to cluster0-shard-00-01-15god.mongodb.net:27017 (1 connections now open to cluster0
shard-00-01-15god.mongodb.net:27017 with a 5 second timeout)
2019-01-16T20:08:32.312+0100 I NETWORK [js] Successfully connected to cluster0-shard-00-02-15god.mongodb.net:27017 (1 connections now open to cluster0-shard-00-02-15god.mongodb.n
t:27017 with a 5 second timeout)
2019-01-16T20:08:32.517+0100 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to cluster0-shard-00-00-15god.mongodb.net:27017 (1 connections now open to cluster0
shard-00-00-15god.mongodb.net:27017 with a 5 second timeout)
2019-01-16T20:08:32.539+0100 I NETWORK [js] Marking host cluster0-shard-00-01-15god.mongodb.net:27017 as failed :: caused by :: Location40659: can’t connect to new replica set ma
ter [cluster0-shard-00-01-15god.mongodb.net:27017], err: Location8000: Authentication failed.
2019-01-16T20:08:32.781+0100 I NETWORK [js] Marking host cluster0-shard-00-02-15god.mongodb.net:27017 as failed :: caused by :: SocketException: can’t authenticate against replic
set node cluster0-shard-00-02-15god.mongodb.net:27017 :: caused by :: socket exception [CONNECT_ERROR] server [cluster0-shard-00-02-15god.mongodb.net:27017] connection pool error
network error while attempting to run command ‘isMaster’ on host ‘cluster0-shard-00-02-15god.mongodb.net:27017
2019-01-16T20:08:32.874+0100 I NETWORK [js] Marking host cluster0-shard-00-00-15god.mongodb.net:27017 as failed :: caused by :: SocketException: can’t authenticate against replic
set node cluster0-shard-00-00-15god.mongodb.net:27017 :: caused by :: socket exception [CONNECT_ERROR] server [cluster0-shard-00-00-15god.mongodb.net:27017] connection pool error
network error while attempting to run command ‘isMaster’ on host ‘cluster0-shard-00-00-15god.mongodb.net:27017
2019-01-16T20:08:33.114+0100 I NETWORK [js] Marking host cluster0-shard-00-01-15god.mongodb.net:27017 as failed :: caused by :: Location40659: can’t connect to new replica set ma
ter [cluster0-shard-00-01-15god.mongodb.net:27017], err: Location8000: Authentication failed.
2019-01-16T20:08:33.116+0100 E QUERY [js] Error: can’t authenticate against replica set node cluster0-shard-00-01-15god.mongodb.net:27017 :: caused by :: can’t connect to new r
plica set master [cluster0-shard-00-01-15god.mongodb.net:27017], err: Location8000: Authentication failed. :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed

I can see in the beginning of the message that it is connecting to my cluster, but later it fails.
Anything I did wrong?

The message Authentication failed means you do not have the correct user or password.

1 Like