MongoDB Compass - 一直连接到 Atlas [英] MongoDB Compass - stuck on connecting to Atlas

查看:45
本文介绍了MongoDB Compass - 一直连接到 Atlas的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试连接到 MongoDB Atlas 集群时,Compass 都会陷入一些永不停止加载的错误.
没有任何类型的错误,即使在开发工具中也没有.
如果我尝试连接到本地主机,一切正常.
Atlas 连接字符串永远不会被自动识别,如果这意味着什么.
我需要手动粘贴,点击连接后,显示白色叠加层,就是这样.
我禁用了防火墙,从我的计算机重新安装了 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:

ps.我创建了一个集群,使用 mongoDB 用户并将我的 IP 列入白名单.
pps.指南针版本是 1.20.5,windows 10

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

推荐答案

抱歉,我刚刚想通了.

  • 您需要转到 Atlas 中的Connect",转到Connect Your Application"(不是Connect with MongoDB Compass")

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

将 Node.js 版本更改为2.2.12 或更高版本"

Change Node.js version to "2.2.12 or later"

照常复制连接字符串,替换密码并粘贴到 Compass

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

我想出了更多细节 - 潜在的问题可能是您的 DNS.例如,尝试将其替换为 Google DNS (8.8.8.8) 以查看它是否解决了问题并继续使用最新的连接字符串.

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.

这篇关于MongoDB Compass - 一直连接到 Atlas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆