mongodb - 我正在尝试将 Docker 上的 BI 连接器实例连接到 Mongo Atlas 中的数据库
问题描述
我正在尝试不同的方式来连接到 Mongo Atlas,但这是不可能的。我可能忘记了一些东西,但文档不是很详细。也许我需要付费才能拥有该功能?目前这是我的 mongosqld.conf 文件:
systemLog:
path: '/logs/mongosqld.log'
verbosity: 10
mongodb:
net:
uri: 'cluster0-shard-00-02.abcde.mongodb.net:27017/?replicaSet=atlas-24535-shard-0&ssl=true&w=majority&retryWrites=true'
auth:
username: "user"
password: "password"
mechanism: "SCRAM-SHA-1"
source: "dbName"
net:
bindIp: localhost
port: 3307
security:
enabled: true
我不断收到这个错误:
SCHEMA [manager] error initializing schema: unable to execute command: server selection error: context deadline exceeded, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: cluster0-shard-00-02.abcde.mongodb.net:27017, Type: Unknown, Average RTT: 0, Last error: connection() error occured during connection handshake: OCSP verification failed: no OCSP cache provided }, ] }
任何线索或你能指出我正确的方向吗?
我的 BI 连接器版本是 2.14.3 并且是 dockerized。
解决方案
推荐阅读
- angular - Angular 表单以错误的格式收集数据
- oracle-apex - Oracle Apex 身份验证方案登录错误
- oauth-2.0 - 在 OIDC 中实现类似于 SAML 的身份验证流程
- javascript - 显示数字然后删除它的Javascript函数不起作用
- .net - Ghostscript 9.23 和 unicode 文件名(Windows)
- c# - Identityserver4 API 身份验证未按预期工作
- c++ - yaml-cpp 编译错误:“未定义对 YAML::LoadFile 的引用”
- javascript - 理解这个语法 if(obj[x])
- ios - Facebook 无法检索 iPhone 商店 ID
- python - 尝试在 Kivy 中播放 GIF 时出现白色背景