Unsuccessful connection to atlas sandbox

Hi,
I have a problem with sandbox connection
It says

Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]

Can someone help me with this?

Thanks

I am able to connect even though i see that error

vagrant@m103:/dataset$ mongo “mongodb://cluster0-shard-00-00-excga.mongodb.net:27017,cluster0-shard-00-01-excga.mongodb.net:27017,cluster0-shard-00-02-excga.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --ssl --authenticationDatabase admin --username m001-student --password xxxx
MongoDB shell version v3.6.9

WARNING: shell and server versions do not match
Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]
2019-01-20T03:39:13.647+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor-0] Successfully connected to cluster0-shard-00-01-excga.mongodb.net:27017 (1 connections now open to cluster0-shard-00-01-excga.mongodb.net:27017 with a 5 second timeout)
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db
test
MongoDB Enterprise Cluster0-shard-0:PRIMARY> use admin
switched to db admin
MongoDB Enterprise Cluster0-shard-0:PRIMARY> show dbs
admin 0.000GB
local 2.886GB
video 0.002GB
MongoDB Enterprise Cluster0-shard-0:PRIMARY>

I also got similar issue is it connected ?

MongoDB server version: 4.0.12
WARNING: shell and server versions do not match
Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]
MongoDB Enterprise Cluster0-shard-0:PRIMARY>

Hi @Aniket_33360,

You can safely ignore this warning and error message.

This prompt means you are successfully connected to the cluster.

Hope it helps!

If you have any other issue, please feel free to get back to us.

Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Support Engineer