Closed yubele closed 1 year ago
@yubele Thanks for your feedback! We will investigate and update as appropriate.
@stefarroyo or @milismsft, can either of you assist with this issue? This seems to be a product question.
I am also running into this issue. It also seems that prefixing the tag :mongodb
to the emulator docker image doesn't change anything. You end up downloading the same image.
> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator latest 7a1d7cebd0d2 8 weeks ago 1.88GB
mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator mongodb 7a1d7cebd0d2 8 weeks ago 1.88GB
I am on Mac OS and I have tried to run the command line as suggested in the documentation Run the Linux Emulator on macOS
docker run \
--publish 8081:8081 \
--publish 10250-10255:10250-10255 \
--name=test-linux-emulator-mongo \
--env AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10 \
--env AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true \
--env AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=$ipaddr \
--env AZURE_COSMOS_EMULATOR_ENABLE_MONGODB_ENDPOINT=4.0 \
--interactive \
--tty \
mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:mongodb
If I remove the line relative to MongoDB --env AZURE_COSMOS_EMULATOR_ENABLE_MONGODB_ENDPOINT=4.0
, the emulator will launch, but the Mongo Connection String won't work.
When trying to connect to it via MongoDB Compass -> Client network socket disconnected before secure TLS connection was established
@StefArroyo or @milismsft, can either of you assist with this issue? This seems to be a product question.
Would be great to have a solution here. I am still stuck with this issue. 🙏
Same.
After some investigation, this seems to be a bug with the product as the :mongodb
tag incorrectly does not expose the mongodb endpoint. Unfortunately, we can't deal with product bugs here as this is a documentation repository and the docs articles are using the correct tag.
I looked at Microsoft Q&A and there doesn't seem to be a question about this issue. I recommend that you post your question over there so the custom support team can escalate this issue as it's blocking your work.
I'm sorry that I was unable to resolve this on the documentation site. Thanks for your patience and I hope this can be resolved quickly for you!
:tada:
We recently released a complete revamp of the emulator documentation to cover many of the content gaps, be more succinct, and enable you to use the emulator quickly.
The new emulator documentation shows how to use the containerized (Docker) or local (Windows) variants of the emulators across five different APIs (NoSQL, MongoDB, Apache Cassandra, Apache Gremlin, Table) and three programming languages (Python, .NET, JavaScript).
We have also retired the outdated legacy emulator documentation as many of the code samples and instructions were out of date relative to the latest SDKs/libraries for each API and programming language.
Here's a few helpful links to get you started with the new emulator docs:
Link | |
---|---|
Emulator landing page | https://learn.microsoft.com/azure/cosmos-db/emulator |
How-to use the emulator guide | https://learn.microsoft.com/azure/cosmos-db/how-to-develop-emulator |
Emulator release notes (local Windows only) | https://learn.microsoft.com/azure/cosmos-db/emulator-release-notes |
**Emulator command-line arguments (local Windows only) | https://learn.microsoft.com/azure/cosmos-db/emulator-windows-arguments |
I hope this helps unblock you. If you need changes to the emulator docs, feel free to open a new GitHub issue.
Thank you for your patience!
same issue
I found https://github.com/MicrosoftDocs/azure-docs/issues/95755 on the issue and still get the same error. How can I use the mongodb version?
As per the documentation, the mongodb tag is used. When I check the image id it appears to be the same as the LATEST, is this correct?
The image id is the same as above.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.