尝试从MongoDB Atlas迁移到DocumentDB

0

【以下的问题经过翻译处理】 你好,

我目前正在尝试从MongoDB Atlas集群迁移到DocumentDB。我在DMS源端点连接方面遇到了问题。我在测试连接时遇到了一个关于连接到集群的错误:

测试终端点失败:应用程序状态:1020912,应用程序消息:无法创建新的客户端连接无法连接到数据库,应用程序详细消息:错误验证连接:'没有找到合适的服务器(`serverSelectionTryOnce `set):[Server closed connection. calling ismaster on 'next-shard-00-01.xxxxxx.mongodb.net:27017']'

当我尝试使用mongosh或Mongo Compass时,我能够轻松连接。

我更改了 Atlas 网络访问部分中的一些网络设置,以允许来自任何地方的连接。但仍然无法连接。

是否有其他人已成功地从MongoDB Atlas迁移到DocumentDB?

我使用的MongoDB版本是5.0.14(API版本1) DocumentDB正在使用弹性集群设置。

谢谢。

profile picture
EXPERTE
gefragt vor 8 Monaten29 Aufrufe
1 Antwort
0

【以下的回答经过翻译处理】 见鬼,我明白了...

MongoDB Atlas 需要 TLS 连接。我需要将 SSL 模式设置为 require 才能成功连接

profile picture
EXPERTE
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen