1

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.

I suspect its an issue with SSL or the server/shell versions but I'm not clear what the fix is. I followed the demo to the T and passed the --sslAllowInvalidCertificates option along with the auth creds and executed in the correct directory.

Here's what I'm seeing in mongoshell, please advise on troubleshooting tips.

1]

0

2 Answers 2

0

You could try to downgrade your mongo db version to 3.4.X.

enter image description here

Then follow the steps from the video and get your mongo shell connect string.

enter image description here

Connect successfully.

enter image description here

Also,you could refer to this case:Mongo shell can not connect to 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.

1
  • Unfortunately no. I had to reach out to Microsoft directly and speak to someone via their [email protected] support inbox. An engineer in that distro told me the mongoshell version 3.4 I had installed didnt support SSL. So I had to actually downgrade again to version 3.2 which apparently does support SSL.
    – emalcolmb
    Mar 27, 2019 at 0:19
0

The default download for v3.2 from MongoDB site will not have support for SSL (not sure why 🙂 ). You need to select the Windows 64-bit version from the OS dropdown box (screenshot below) to get SSL support.

Another way to verify is that the msi executable name contains ssl (i.e. https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.22-signed.msi )

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.