Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB Compass - stuck on connecting to Atlas

Tags:

mongodb

Every time I try to connect to MongoDB Atlas cluster, Compass gets stuck in some never-stop-loading bug.
There is no error of any kind, not even in dev-tools.
If I try to connect to localhost, everything works fine.
Atlas connection string is never recognized automatically, if that means something.
I need to paste it manually, and after I click connect, white overlay is shown and that's it.
I disabled firewall, reinstalled mongoDb from my computer, tried to restart service couple of times ...nothing helps.

White overlay after clicking on connect:

enter image description here

ps. I have a cluster created, with mongoDB user and white-listed my IP.
pps. compass version is 1.20.5, windows 10

like image 852
kl123 Avatar asked Feb 08 '20 21:02

kl123


Video Answer


1 Answers

Sorry I just figured it out.

  • You need to go to "Connect" in Atlas, go to "Connect Your Application" (NOT "Connect with MongoDB Compass")

  • Change Node.js version to "2.2.12 or later"

  • Copy connection string as normal, replace password and paste in Compass

Edit: I've come up with even more details - the underlying problem could be your DNS. Try to replace it with the Google DNS for example (8.8.8.8) to see if it fixes the issue and continue using the up-to-date connection string.

like image 120
user12966158 Avatar answered Oct 15 '22 21:10

user12966158