Failed global initialization: BadValue need to either provide sslCAFile or specify sslAllowInvalidCertificates
Please share the command you are using to connect.
mongo “mongodb://cluster0-shard-00-00-hnuzm.mongodb.net:27017,cluster0-shard-00-01-hnuzm.mongodb.net:27017,cluster0-shard-00-02-hnuzm.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --ssl --authenticationDatabase admin --username agamjain14 --password Mongo12
I am new to MongoDB. Cannot connect to atlas cluster.
@Agam_Jain_03758, Kanika doesn’t start work until later in the day so exercise some patience
This is the error I am getting
I am able to connect using the same string. Which version of MongoDB are you using? Make sure its the latest one i.e 4.2.
I am using version 3.0
can we have 2 version of MongoDB at the same time?
If yes, then how do we do it?
Yes, you can. Just download MongoDB from the website here.
Then you can unzip it, and use the binary files from there itself. Example: I use it like this:
Thanks for sharing the screenshot. I see that you are still not able to connect.
It seems like a network issue.
Are you connected to VPN? or is there firewall which might be blocking the issue.
If you are working from your work system, please try from a different machine.
I am getting the same connection error as shown by @agamjain14. I can connect to the cluster via MongoDB Compass but not from my command prompt. Until yesterday, I was able to connect to the cluster from both of them.
Did you whitelist your IP?
Try to use TLS as suggested in the message
I can connect with the string you provided
Please make sure that any firewall is disabled and you are not connected to vpn. You can also try to connect to your cluster from the home network.
Then try to reconnect to the cluster using the connection string:
mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl -u m121 -p aggregations --norc
Please let me know if you have any questions.