Getting error saying User is not allowed to access while trying to connect to Sandbox

C:\Users\sakonjet>mongo “mongodb://cluster0-shard-00-00-9ekpj.mongodb.net:27017,cluster0-shard-00-01-9ekpj.mongodb.net:27017,cluster0-shard-00-02-9ekpj.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --ssl --authenticationDatabase admin --username m001-student --password m001-mongodb-basics
MongoDB shell version v4.0.6
connecting to: mongodb://cluster0-shard-00-00-9ekpj.mongodb.net:27017,cluster0-shard-00-01-9ekpj.mongodb.net:27017,cluster0-shard-00-02-9ekpj.mongodb.net:27017/test?authSource=admin&gssapiServiceName=mongodb&replicaSet=Cluster0-shard-0
2019-02-09T23:21:20.222-0600 I NETWORK [js] Starting new replica set monitor for Cluster0-shard-0/cluster0-shard-00-00-9ekpj.mongodb.net:27017,cluster0-shard-00-01-9ekpj.mongodb.net:27017,cluster0-shard-00-02-9ekpj.mongodb.net:27017
2019-02-09T23:21:20.519-0600 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to cluster0-shard-00-00-9ekpj.mongodb.net:27017 (1 connections now open to cluster0-shard-00-00-9ekpj.mongodb.net:27017 with a 5 second timeout)
2019-02-09T23:21:20.520-0600 I NETWORK [js] Successfully connected to cluster0-shard-00-02-9ekpj.mongodb.net:27017 (1 connections now open to cluster0-shard-00-02-9ekpj.mongodb.net:27017 with a 5 second timeout)
2019-02-09T23:21:20.762-0600 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to cluster0-shard-00-01-9ekpj.mongodb.net:27017 (1 connections now open to cluster0-shard-00-01-9ekpj.mongodb.net:27017 with a 5 second timeout)
Implicit session: session { “id” : UUID(“eaa92bef-ce2f-4681-9ab3-254ed558feb8”) }
MongoDB server version: 4.0.6
Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]

No, you connected just fine. Look for that message in the thread linked below :slight_smile:

1 Like