Search code examples
azureazure-cosmosdbazure-storage-emulator

Unable to launch Azure Cosmos Emulator on my Windows 10 PC


I am unable to get cosmos emulator started. I keep getting a “This site can’t be reached. Localhost refused to connect” message when it tries to navigate to https://localhost:8081/_explorer/index.html. Several seconds later, I get the below error message:

enter image description here

I'm using the latest version (2.4.5.0). I uninstalled Cosmos Emulator, deleted the %LOCALAPPDATA%\CosmosDBEmulator folder, and reinstalled. Still same issue.

Then, I tried running LODCTR /R in the command prompt twice, but that didn’t do anything for me. I’m out of ideas. This was working for me several months ago, so something happened recently that caused it to stop working. What could be causing this issue? Anything else I can try?


Solution

  • You can follow the steps mentioned here to troubleshoot your issue

    If you installed a new version of the emulator and are experiencing errors, ensure you reset your data. You can reset your data by right-clicking the Azure Cosmos Emulator icon on the system tray, and then clicking Reset Data…. If that does not fix the errors, you can uninstall the emulator and any older versions of the emulator if found, remove "C:\Program files\Azure Cosmos DB Emulator" directory and reinstall the emulator