简体   繁体   English

Mongoshell无法连接到Cosmos DB

[英]Mongoshell unable to connect to Cosmos DB

I'm looking to migrate data referencing this demo ( https://azure.microsoft.com/en-us/resources/videos/using-mongodb-tools-with-azure-cosmos-db/ ) and I'm unable to connect to cosmos through mongo shell. 我想迁移引用此演示的数据( https://azure.microsoft.com/zh-cn/resources/videos/using-mongodb-tools-with-azure-cosmos-db/ ),但我无法通过mongo shell连接到宇宙。

I suspect its an issue with SSL or the server/shell versions but I'm not clear what the fix is. 我怀疑它与SSL或服务器/外壳版本有关,但我不清楚解决方法是什么。 I followed the demo to the T and passed the --sslAllowInvalidCertificates option along with the auth creds and executed in the correct directory. 我将演示放在T后面,并通过了--sslAllowInvalidCertificates选项和auth --sslAllowInvalidCertificates ,并在正确的目录中执行。

Here's what I'm seeing in mongoshell, please advise on troubleshooting tips. 这是我在mongoshell中看到的内容,请提供有关故障排除提示的建议。

1]

You could try to downgrade your mongo db version to 3.4.X. 您可以尝试将mongo db版本降级为3.4.X。

在此处输入图片说明

Then follow the steps from the video and get your mongo shell connect string. 然后按照视频中的步骤操作,获取mongo shell连接字符串。

在此处输入图片说明

Connect successfully. 连接成功。

在此处输入图片说明

Also,you could refer to this case: Mongo shell can not connect to Azure CosmosDB . 另外,您可以参考这种情况: Mongo Shell无法连接到Azure CosmosDB

Same steps can't be done with Mongo DB 4.0 version,you could commit feedback here to get the official reply from comsos db team. Mongo DB 4.0版本无法执行相同的步骤,您可以在此处提交反馈以获取comsos数据库团队的正式答复。

The default download for v3.2 from MongoDB site will not have support for SSL (not sure why 🙂 ). 从MongoDB站点下载的v3.2的默认版本不支持SSL(不确定为什么使用🙂)。 You need to select the Windows 64-bit version from the OS dropdown box (screenshot below) to get SSL support. 您需要从OS下拉框中选择Windows 64位版本(下面的屏幕截图)以获得SSL支持。

Another way to verify is that the msi executable name contains ssl (ie https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.22-signed.msi ) 验证的另一种方法是msi可执行文件名称包含ssl(即https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.22-signed.msi

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure Cosmos DB 数据迁移工具无法连接到 Cosmos DB - Azure Cosmos DB Data Migration Tool unable to connect to Cosmos DB Azure Function V4 Do.net隔离无法连接cosmos db - Azure Function V4 Dotnet Isolated unable to connect to cosmos db 无法使用 Microsoft.EntityFrameworkCore.Cosmos 连接到 Azure Cosmos Db 帐户 - 响应状态代码 - Unable to connect to Azure Cosmos Db Account using Microsoft.EntityFrameworkCore.Cosmos - Response status code 无法从 Azure Function 连接到 Azure Cosmos DB。 获取“Microsoft.Azure.Cosmos.Direct:Object 引用未设置为 object 的实例 - Unable to Connect from Azure Function to Azure Cosmos DB. Getting "Microsoft.Azure.Cosmos.Direct: Object reference not set to an instance of an object 无法使用MongoDB驱动程序.Net C#连接到Azure Cosmos DB - Unable to connect to Azure Cosmos DB using the MongoDB Driver .Net C# 通过 Visual Studio 创建 Azure function 时无法连接到 Cosmos DB - Unable to connect to Cosmos DB while creating Azure function through Visual Studio CqlSession 无法连接到 Azure Cosmos DB Cassandra - CqlSession cannot connect to Azure Cosmos DB Cassandra 自动连接到最近的 Azure Cosmos DB 位置? - Automatically connect to closest Azure Cosmos DB location? Azure Function 没有连接到 Cosmos DB - Azure Function does not connect to Cosmos DB 如何在 ruby 文件中连接到 cosmos db - How to connect to cosmos db in ruby file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM