Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

连接mongo集群实例失败 #1671

Open
ChengJiuSu opened this issue Jul 11, 2022 · 2 comments
Open

连接mongo集群实例失败 #1671

ChengJiuSu opened this issue Jul 11, 2022 · 2 comments

Comments

@ChengJiuSu
Copy link

重现步骤

1.连接单机mongo 是没有任何问题的
2.尝试连接MongoDB Atles 副本级集群时报错
经代码复现以pymongo==3.11.0版本以 'client.db.authenticate'方式连接是行不通的,所以是否现在还不支持mongo 副本级集群或者集群呢?

预期外的结果

image

日志文本

pymongo.errors.ServerSelectionTimeoutError: connection closed, Timeout: 30s, Topology Description: <TopologyDescription id: 62cbccxxxxxb16668d10c21ae3, topology_type: Single, servers: [<ServerDescription ('pl-0-us-west-xxxxx.mongodb.net.', 1026) server_type: Unknown, rtt: None, error=AutoReconnect('connection closed',)>]>

版本

1.8.5

部署方式

Docker

是否还有其他可以辅助定位问题的信息?比如数据库版本等

mongo: 4.4

@ChengJiuSu ChengJiuSu changed the title 连接mongo集群示例失败 连接mongo集群实例失败 Jul 12, 2022
@Aaron199
Copy link

当我点击”SQL检测“也出现了类似的报错
image

@nick2wang
Copy link
Collaborator

当我点击”SQL检测“也出现了类似的报错 image

这个pr应该可以修复这个问题 #1845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants