【问题标题】:Error loading MongoDB Atlas Via Compass on Ubuntu在 Ubuntu 上通过 Compass 加载 MongoDB Atlas 时出错
【发布时间】:2023-03-28 12:56:01
【问题描述】:

最近为 Ubuntu 下载了 MongoDB Compass,然后我从 MongoDB Atlas 复制了连接字符串以使用 MongoDB Compass 进行连接。当我打开 MongoDB Compass 时,它检测到我接受的连接字符串。我必须为数据库输入我的用户名和密码,我还确保我给了它读写访问权限,然后我将身份验证数据库设置为管理员。然后我点击连接按钮,似乎已连接但我收到此错误:

"An error occurred, while loading navigation:(Unauthorized) not authorized on adminto execute command {hostInfo: 1, $clusterTime: { clusterTime:{15968188 1}, signature:{hash:{0 [20 202 80 145 95 128 153 13 117 177 59 15 72 163 143 56 16 217 179 110]}, keyId: 6854717737982230528.0000000 }}, Isid: {4 [140 166 93 131 187 215 73 247 156 156 59 49 80 208 94 140]} } }".

我知道我已连接到 MongoDB,因为我能够从 compass 应用程序创建新数据库,但我无法从 compass 应用程序看到我的 DBS 和 COLLECTIONS。 The screenshot of the error.

【问题讨论】:

  • 您在关注哪些文档?
  • 官方 MongoDB 文档。

标签: node.js mongodb express ubuntu-18.04


【解决方案1】:

我通过更新到最新版本的 MongoDB Compass 解决了这个问题

【讨论】:

【解决方案2】:

在阅读了这篇文章后,我也更新了我的 MongoDB Compass。现在它又可以工作了。我在带有 MongoDB Compass 的 Windows 64b 上使用免费层 MongoDB Atlas,两年后它刚刚停止工作。所以约翰·罗斯伯格有正确的答案,而且答案是,免费层不再使用旧的 MongoDB Compass。我的旧版本是 1.14.6。它现在再次与 MongoDB Compass 1.22.1 一起工作,无需修改 Atlas 帐户。 MongoDB Compass 1.14.6 仍然会抛出错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-12-24
    • 1970-01-01
    • 1970-01-01
    • 2020-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多